Range – Measurement Computing DAQFlex User Guide User Manual

Page 46

Advertising
background image

DAQFlex Software User's Guide

DAQFlex Message Reference – Programming messages – AISCAN

46

Example

"AISCAN:QUEUE=ENABLE"

Note

RESET resets the queue count to 0, and disables the gain queue.

Read whether the gain queue is used in the scanning operation.
Message

"?AISCAN:QUEUE"

Response "AISCAN:QUEUE=value"

value

ENABLE, DISABLE

RANGE

Set the range for all analog input channels to be scanned.
Message

"AISCAN:RANGE=value"

Response "AISCAN:RANGE"

value

The range value.

Note

Call an AI:RANGES Reflection message to get the supported ranges. If the message

returned does not include PROG%, then the message does not apply to the device.

Get the range that is set for the analog input channels to be scanned.
Message

"?AISCAN:RANGE"

Response "AISCAN:RANGE=value"

value

The range value.

Note

If all channels are not set to the same range the device returns "MIXED".

Add the range value as the next element in the gain queue, or set the range value for a specified

channel (depending on the queue setting).
Message

"AISCAN:RANGE{ch}=value"

Response "AISCAN:RANGE{qcnt/ch}" (when QUEUE is enabled)

"AISCAN:RANGE{ch}" (when QUEUE is disabled.)

The response behavior is dependent on the QUEUE setting:

When QUEUE is enabled, an element is added to the queue and the specified channel

is set to the range specified.

When QUEUE is disabled, the specified channel is set to the range specified.

qcnt

The position of the element in the gain queue. This number increments by 1

for each successive message sent.

ch

The channel number.

value

The range value (see values listed above).

Example

"AISCAN:RANGE{2}=BIP20V"

Set a specified element in the queue to a specified range (value) and channel (ch).
Message

"AISCAN:RANGE{element/ch}=value"

Response "AISCAN:RANGE{element/ch}"

Advertising