Channels, Config, Latch – Measurement Computing DAQFlex User Guide User Manual

Page 88

Advertising
background image

DAQFlex Software User's Guide

DAQFlex Message Reference – Reflection messages – DIO

88

DIO

Gets the digital I/O properties of a device.

Properties

CHANNELS, CONFIG, LATCH, MAXCOUNT

CHANNELS

Get the number of digital channels (ports) on a device.
Message

"@DIO:CHANNELS"

Response

"DIO:CHANNELS=<implementation>value"

implementation

FIXED%, or not specified if value is NOT_SUPPORTED.

value

The number of digital channels (ports) on a device, or returns

NOT_SUPPORTED if the device has no digital channels.

Example

"DIO:CHANNELS=FIXED%3"

CONFIG

Get the options supported by a specified port in which no configuration is required.
Message

"@DIO{ch}:CONFIG"

Response

"DIO{ch}:CONFIG=<implementation>value"

ch

The digital port number.

implementation

PROG% (programmable), AUTO%, or not specified if value is

NOT_SUPPORTED.

value

BITIN, BITOUT, PORTIN, PORTOUT, or returns NOT_SUPPORTED if

the device has no digital channels.

Example

"DIO{0}: CONFIG= AUTO%BITIN,BITOUT,PORTIN,PORTOUT"

LATCH

Get a value indicating whether the latch associated with a specified port has read and/or write

access.
Message

"@DIO{ch}:LATCH"

Response

"DIO{ch}:LATCH=<implementation>value"

ch

The digital port number.

implementation PROG% (programmable), or not specified if value is

NOT_SUPPORTED.

value

READ, WRITE, or returns NOT_SUPPORTED if the device has no

digital channels.

Example

"DIO{0}:LATCH=PROG%READ,WRITE"

Advertising