beautypg.com

Rate – Measurement Computing DAQFlex User Guide User Manual

Page 47

background image

DAQFlex Software User's Guide

DAQFlex Message Reference – Programming messages – AISCAN

47

element The position of the element in the gain queue.

ch

The channel number.

value

The range value.

Example

"AISCAN:RANGE{0/1}=BIP20V"

Note

If element is greater than the size of the queue, the size of the queue is expanded to

element + 1.

Get the range value for a specified element or channel.
Message

"?AISCAN:RANGE{x}"

Response "AISCAN:RANGE{element/ch}=value" when QUEUE is enabled, or

"AISCAN:RANGE{ch}=value" when QUEUE is disabled.

x

When QUEUE is disabled, x denotes the channel for which the range is

returned.

When QUEUE is enabled, x denotes the element in the queue for which the

range is returned.

element The position of the element in the gain queue.

ch

The channel number.

value

The range value.

If all channels are not set to the same range, value returns MIXED.

RATE

Set the A/D pacer rate in Hz.
Message

"AISCAN:RATE=value"

Response "AISCAN:RATE"

value

0 to N

Example

"AISCAN:RATE=1000"

Note

If value is set is less than the device's minimum sampling rate, the minimum rate is

used. If value is set is greater than the device's maximum sampling rate, the maximum

rate is used.

Check the actual scan rate set using the "?AISCAN:RATE" query after setting the RATE.

Get the A/D pacer rate in Hz.
Message

"?AISCAN:RATE"

Response "AISCAN:RATE=value"

value

A value between the device's minimum and maximum rate.

Note

The value returned may not match the value requested using the

"AISCAN:RATE=value" message due to device limitations.
If the value returned is at or near the device's maximum sampling rate, you should

keep to a minimum other messages sent to the device. Otherwise, a data overrun may

occur. A data overrun occurs when the device fills its buffer with data faster than it is

read back.