
Table 4- 3. Input Range Coding
70 to 1.25V1110
60 to 2.5V0110
50 to 5V1010
40 to 10V0010
3+/-0.6251100
2+/-1.25V0100
1+/-2.5V1000
0+/-5V0000
8+/-10V0001
DecimalInput RangeG0G1Uni/BipRange
To set the analog input range of the CIO-DAS16/330 programmatically, write the correct input range code to the base
address + 11. For example, from BASIC:
If the board's base address is 300h (768 decimal), then the gain register is at 768 + 11 = 779
100 OUT 779, 5 'Set analog output range to 0 to 5V
The decimal range codes are in the far right column above.
BASE ADDRESS +11 - Enhanced Mode
A write to this register sets the analog input range for all 8/16 analog inputs as well as enabling and disabling extended
features and controlling extended features for pre-triggering and DT-CONNECT. The lower four bits set the analog input
range. The upper four bits control and provide status of enhanced features.
G0G1Uni/BipRangeSet/Read
Mode
Overrun
Status
Pre-
Trigger
Enable
DT-
Connect
Enable
01234567
GAINS: Gain control is identical in both compatible and enhanced mode.
BIT 4 - Set Compatible/Enhanced Mode. Read Mode Status
WRITE: 0 = disable enhanced mode. 1 = enable enhanced mode (mode switch must be down).
READ: 0 = Switch 7 of base address switch, the mode switch, is up. It is not possible to enable enhanced features
when the mode switch is up. When Bit 4 = 1, the mode switch is down and enhanced features can be enabled.
BIT 5 - Set Pretrigger, DT-Connect. Read FIFO, Overrun
READ: 0 = No overrun. 1 = FIFO buffer full (> 1024 samples) or DT-CONNECT overrun if DT-CONNECT is
enabled. This signal is the logical OR of these two possible overrun signals. To determine the source of the overrun
error: If DT-Connect is not enabled then the overrun is FIFO. If DT-CONNECT is enabled, issue a clear to the FIFO
then reread the status bit. If still active, the overrun was at the DT-CONNECT.
WRITE: Enable channel gain queue mode. Access to Base + 2 is inhibited when the channel gain queue is enabled.
14
Comentários a estes Manuais