National Instruments SCXI-1121 Manuel D’Utilisation

Page de 162
Chapter 5
Programming
5-16
www.natinst.com
2.
Following the procedure given in the 
 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 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.
c.
Write 
00000001 00000011
 to the FIFO Register. This 
corresponds to Slot 3 for four samples.
Make sure to toggle SLOT0SEL* or reselect the FIFO Register from 
scratch between steps 6a, 6b, and 6c.
7.
Follow the procedure given in the 
 section earlier in this chapter.
Example 3
You want to scan four channels on an SCXI-1121 in Slot 4 of Chassis 1, 
then two channels of an SCXI-1121 in Slot 11 of Chassis 2, one channel of 
an SCXI-1121 in Slot 3 in Chassis 3, and three channels of an SCXI-1121 
in Slot 8 of Chassis 3.