Measurement Computing DAQFlex User Guide User Manual

Page 68

Advertising
background image

DAQFlex Software User's Guide

DAQFlex Message Reference – Programming messages – TMR

68

Get the value of a port.
Message

"?DIO{port}:VALUE"

Response "DIO{port}:VALUE=value"

port

The port number.

value

The value of the port.

Example

"?DIO{0}:VALUE"

Set the value of a bit.
Message

"DIO{port/bit}:VALUE=value"

Response "DIO{port/bit}:VALUE"

port

The port number.

bit

The bit number.

value

The value of the bit.

Example

"DIO{0/1}:VALUE=1"

Note

Performing an output operation on a programmable port that has not been configured

for output will generate an error.

Get the value of a bit.
Message

"?DIO{port/bit}:VALUE"

Response "DIO{port/bit}:VALUE=value"

port

The port number.

bit

The bit number.

value

The value of the bit.

Example

"?DIO{0/1}:VALUE"

TMR

Sets and gets property values for a timer output channel.

Refer to the device-specific information in the Hardware Reference section for the component properties

and commands supported by each DAQ device.

Properties

DELAY, DUTYCYCLE, IDLESTATE, PERIOD, PULSE, PULSECOUNT, START, STOP

(Component only)

Get the number of timer output channels on the device.
Message

"?TMR"

Response "TMR=value"

value

The number of timer output channels.

Advertising