
Chapter 5
Programming
5-16
ni.com
3.
Follow the steps outlined in the
3. Programming the Slot 0 Hardscan
section earlier in this chapter, where step 3,
Write the Slot 0
scan list to the FIFO
, consists of the following:
–
Write
00000000 00000010
to the FIFO Register. This
corresponds to Slot 1 for three samples.
4.
Follow the procedure given in the
4. Acquisition Enable, Triggering,
section earlier in this chapter.
Example 2
An SCXI-1000 chassis has four SCXI-1121s in Slots 1, 2, 3, and 4. The
SCXI-1121 in Slot 4 is cabled to the data acquisition board. You want to
scan channels 1 through 3 on the SCXI-1121 in Slot 1, channels 0 and 1 on
the SCXI-1121 in Slot 4, and channels 3 and 2 on the SCXI-1121 in Slot 3.
The programming steps are as follows:
1.
Program your data acquisition board as described in the
Acquisition Board Setup Programming
section.
2.
Following the procedure given in the
Register Writes
section, write
00000000 00000000
to the Configuration Register of the
SCXI-1121 in Slot 2. This step resets the module, including the
clearing of the AB0EN bit (bit 0). Notice that a complete reset of this
module is not necessary, but is used for simplicity.
3.
Following the procedure given in the
section, write
100XXX00 00001111
to the Configuration Register of the
SCXI-1121 in Slot 4.
4.
Following the procedure given in the
section, write
010XXX01 00001111
to the Configuration Register of the
SCXI-1121 in Slot 1.
5.
Following the procedure given in the
section, write
010XXX11 00001111
to the Configuration Register of the
SCXI-1121 in Slot 3. Notice that after Channel 3, the SCXI-1121 will
wrap around
to Channel 0.
6.
Follow the steps given in the
3. Programming the Slot 0 Hardscan
section earlier in this chapter, where step 3,
Write the Slot 0
scan list to the FIFO
, consists of the following:
a.
Write
00000000 00000010
to the FIFO Register. This
corresponds to Slot 1 for three samples.
b.
Write
00000001 10000001
to the FIFO Register. This
corresponds to Slot 4 for two samples.