beautypg.com

Scale – Measurement Computing DAQFlex User Guide User Manual

Page 53

background image

DAQFlex Software User's Guide

DAQFlex Message Reference – Programming messages – AO

53

REG

Set the value of a DAC channel that supports simultaneous output without updating the output.
Message

"AO{ch}:REG=value"

Response "AO{ch}:REG"

ch

0, 1

value

0 to 65535

Example

"AO{0}:REG=1455"

Note

This message is only supported by devices with simultaneous DAC output capability.

Use with AO:UPDATE to simultaneous update the DAC outputs.

Use AO:VALUE to set the DAC value on devices with non-simultaneous output.

Get the value of a DAC channel that supports simultaneous output.
Message

"?AO{ch}:REG "

Response "AO{ch}:REG=value "

ch

0, 1

value

0 to 65535

Example

"?AO{1}:REG"

RES

Get the resolution of the D/A converter.
Message

"?AO:RES"

Response "AO:RES=value"

value

U16

Note

The first character indicates if the value is signed (S) or unsigned (U). The second value

indicates the resolution in bits.

SCALE

Enable or disable scaling of all D/A channels.
Message

"AO:SCALE=value"

Response "AO:SCALE"

value

ENABLE, DISABLE

Example

"AO:SCALE=ENABLE"

Note

When enabled, the device accepts voltage values. When disabled, the device accepts

count values.

This message is processed by the DAQFlex Software library, and is not sent to the

device.