beautypg.com

Temp, Vext – Measurement Computing DAQFlex User Guide User Manual

Page 65

background image

DAQFlex Software User's Guide

DAQFlex Message Reference – Programming messages – DIO

65

TEMP

Get the device internal temperature in °C.
Message

"?DEV:TEMP{tempnum}"

Response

"DEV:TEMP{tempnum}=value"

tempnum The number of the temperature sensor on the device.

value

The internal temperature in °C.

Example

"DEV:TEMP{0}=21"

VEXT

Get a value indicating whether external power is supplied to the device.
Message

"?DEV:VEXT"

Response

"DEV: VEXT =value"

value

True, False

DIO

Sets and gets property values for digital I/O channels.

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

and commands supported by each DAQ device.

Properties

DIR, LATCH, VALUE

(Component only)

Get the number of digital ports on a device.
Message

"?DIO"

Response "DIO=value"

value

The number of digital ports.

Get the number of bits on a port.
Message

"?DIO{port}"

Response "DIO{port}=value"

value

The number of bits on the port.

Example

"?DIO{0}"

DIR

Set the direction of a port.
Message

"DIO{port}:DIR=value"

Response "DIO{port}:DIR"

port

The port number.