User manual

13
DIG_In_Port
When the software reads output ports, the returned data is simply the
last data written, and the returned status is the badChanDirError
warning.
DIG_Out_Port
Ports must be 8–15.
DIG_Line_Config
Lines in ports 0–7 are always input lines and lines in ports 8–15 are
always output lines.
There are eight lines per port numbered 0–7.
You must set Direction to input for lines in ports 0–7 and to output
for lines in ports 8–15.
DIG_In_Line
When the software reads output lines, the returned data is simply the
last data written, and the returned status is the
badDirOnSomeLinesError warning.
DIG_Out_Line
Ports must be 8–15.
Set_DAQ_Device_Info
The VXI-DIO-128 supports an adjustable threshold for the input ports.
The logical 0-to-logical 1 transition can occur anywhere in the range of
-32.00 to +31.75 V in 250 mV steps. Set this threshold with the
Set_DAQ_Device_Info function as shown in the following example,
which sets the threshold of input port 3 to TTL level (1.5 V):
status = Set_DAQ_Device_Info(device,
ND_DIO128_SELECT_INPUT_PORT, 3);
status = Set_DAQ_Device_Info(device,
ND_DIO128_SET_PORT_THRESHOLD, 1500);
The first Set_DAQ_Device_Info call selects which input port threshold
to modify. The definitions for
ND_DIO128_SELECT_INPUT_PORT and
ND_DIO128_SET_PORT_THRESHOLD are in the NIDAQCNS include
file. The value for ND_DIO128_SET_PORT_THRESHOLD is in millivolts.
The input port thresholds of input ports 0–7 are automatically initialized