Latch – Measurement Computing DAQFlex User Guide User Manual
Page 66
DAQFlex Software User's Guide
DAQFlex Message Reference – Programming messages – DIO
66
value
IN, OUT
Example
"DIO{0}:DIR=IN"
Note
For devices that support this message, the default power up value is "IN".
Get the direction of a port.
Message
"?DIO{port}:DIR"
Response "DIO{port}:DIR=value"
port
The port number.
value
IN, OUT, or a number between 0 and 2n -1, where n is the number of bits
in the port.
Note
If the digital bits are not individually configurable, the value returned is either "IN" or
"OUT."
If each digital bit is individually configurable, value is a bit mask, in which 1 indicates
that the bit is configured for input, and 0 indicates that the bit is configured for
output.
Set the direction of a bit.
Message
"DIO{port/bit}:DIR=value"
Response "DIO{port/bit}:DIR"
port
The port number.
bit
The bit number.
value
IN, OUT
Example
"DIO{0/1}:DIR=IN"
Note
For devices that support this message, the default power up value is "IN".
Get the direction of a bit.
Message
"?DIO{port/bit}:DIR"
Response "DIO{port/bit}:DIR=value"
port
The port number.
bit
The bit number.
value
IN, OUT
Example
"?DIO{0/1}:DIR"
LATCH
LATCH applies to programmable ports. This property lets you set a digital output value while in input
mode. When programmed for output mode the latch value will be at the output.
Set the latch value of a port.
Message
"DIO{port}:LATCH=value"
Response "DIO{port}:LATCH"