Example 2 - National Instruments SCXI-1320 User Manual

Hide thumbs Also See for SCXI-1320:
Table of Contents

Advertisement

Chapter 5
Programming

Example 2

SCXI-1121 User Manual
3.
Follow the steps outlined in the
Circuitry
section earlier in this chapter, where step 3, Write the Slot 0
scan list to the FIFO, consists of the following:
Write
00000000 00000010
corresponds to Slot 1 for three samples.
4.
Follow the procedure given in the
and Servicing
section earlier in this chapter.
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
2.
Following the procedure given in the
00000000 00000000
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
100XXX00 00001111
SCXI-1121 in Slot 4.
4.
Following the procedure given in the
010XXX01 00001111
SCXI-1121 in Slot 1.
5.
Following the procedure given in the
010XXX11 00001111
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
Circuitry
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
corresponds to Slot 1 for three samples.
b.
Write
00000001 10000001
corresponds to Slot 4 for two samples.
3. Programming the Slot 0 Hardscan
to the FIFO Register. This
4. Acquisition Enable, Triggering,
Register Writes
to the Configuration Register of the
Register Writes
to the Configuration Register of the
Register Writes
to the Configuration Register of the
Register Writes
to the Configuration Register of the
3. Programming the Slot 0 Hardscan
to the FIFO Register. This
to the FIFO Register. This
5-16
1. Data
section.
section, write
section, write
section, write
section, write
ni.com

Advertisement

Table of Contents
loading

Table of Contents