
Programming
Chapter 5
SCXI-1160 User Manual
5-4
© National Instruments Corporation
Example 1
You want to set all the relays in their NC position that are connected to their COM position on an
SCXI-1160 in Slot 1 of an SCXI-1000 chassis. The SCXI-1160 is directly cabled to a data
acquisition board.
The programming steps are as follows:
1. Select the Status Register and check to make sure the relays are not switching. Refer to
Chapter 4, Register Descriptions, and to the section Timing Requirements and
Communication Protocol in Chapter 2, Configuration and Installation.
2. Following the procedure given in the Register Writes section of this chapter, write
11111111 11111111 00000000 00000000
to the Data Register of the SCXI-1160
in Slot 1.
Example 2
An SCXI-1000 chassis has four SCXI-1160 modules in Slots 1, 2, 3, and 4. The SCXI-1160 in
Slot 4 is cabled to the data acquisition board. You want to connect the NO position to the COM
position on all of the modules and leave all the other channels unchanged. The channels of
interest in each slot are as follows:
•
Channel 3 on the SCXI-1160 in Slot 1
•
Channels 0 through 2 on the SCXI-1160 in Slot 4
•
Channels 10, 7, 5, and 3 on the SCXI-1160 in Slot 3
The programming steps are as follows:
1. Following the procedure given in the Register Writes section of this chapter, write
00000000 00000000 00000000 00001000
to the Data Register of the SCXI-1160
in Slot 1.
2. Following the procedure given in the Register Writes section of this chapter, write
00000000 00000000 00000000 00000111
to the Data Register of the SCXI-1160
in Slot 4.
3. Following the procedure given in the Register Writes section of this chapter, write
00000000 00000000 00000100 10101000
to the Data Register of the SCXI-1160
in Slot 3.