Measurement Computing CIO-DAS16/330 User Manual
Page 18
![background image](https://www.manualsdir.com/files/797405/content/doc018.png)
Table 4- 3. Input Range Coding
7
0 to 1.25V
1
1
1
0
6
0 to 2.5V
0
1
1
0
5
0 to 5V
1
0
1
0
4
0 to 10V
0
0
1
0
3
+/-0.625
1
1
0
0
2
+/-1.25V
0
1
0
0
1
+/-2.5V
1
0
0
0
0
+/-5V
0
0
0
0
8
+/-10V
0
0
0
1
Decimal
Input Range
G0
G1
Uni/Bip
Range
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.
G0
G1
Uni/Bip
Range
Set/Read
Mode
Overrun
Status
Pre-
Trigger
Enable
DT-
Connect
Enable
0
1
2
3
4
5
6
7
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