Value – Measurement Computing DAQFlex User Guide User Manual
Page 67

DAQFlex Software User's Guide
DAQFlex Message Reference – Programming messages – DIO
67
port
The port number (0).
value
The port value (0 to 255).
Example
"DIO{0}:LATCH=128"
Get the latch value of a port.
Message
"?DIO{port}:LATCH"
Response "DIO{port}:LATCH=value"
port
The port number.
value
The port value.
Example
"?DIO{0}:LATCH"
Set the latch value of a bit.
Message
"DIO{port/bit}:LATCH=value"
Response "DIO{port/bit}:LATCH"
port
The port number.
bit
The bit number.
value
The bit value.
Example
"DIO{0/1}:LATCH=1"
Get the latch value of a bit.
Message
"?DIO{port/bit}:LATCH"
Response "DIO{port/bit}:LATCH=value"
port
The port value.
bit
The bit number.
value
The bit value.
Example
"?DIO{0/1}:LATCH"
VALUE
Set the value of a port.
Message
"DIO{port}:VALUE=value"
Response "DIO{port}:VALUE"
port
The port number.
value
The value of the port.
Example
"DIO{0}:VALUE=128"
Note
Performing an output operation on a programmable port that has not been configured
for output will generate an error.