beautypg.com

Unlock, Value – Measurement Computing DAQFlex User Manual

Page 19

background image

DAQFlex Message-based Firmware Specification

Analog output calibration messages

19

Set the slope in hexadecimal bytes for the current AICAL:RANGE setting.
Message

"AICAL{ch}:SLOPE/HEX=0xhex value"

Response "AICAL{ch}:SLOPE"

ch

The channel number.

hex value

The calibration slope in hexadecimal bytes.

Example

"AICAL{0}:SLOPE/HEX=0x14B525A3"

Note

The hex value is used to preserve the precision of the double precision floating point
value.

Get the slope in hexadecimal bytes for the current AICAL:RANGE setting.
Message

"?AICAL{ch}:SLOPE/HEX" or "?AICAL{ch}:SLOPE"


Refer to the device-specific topics to see whether "/HEX" is supported.

Response "AICAL{ch}:SLOPE=0xhex value"

ch

The channel number.

hex value

The calibration slope in hexadecimal bytes.

UNLOCK

Unlock the AOCAL component.
Message

"AOCAL:UNLOCK"

Response "AOCAL:UNLOCK"

Note

The AOCAL component must be unlocked in order to change calibration settings on a

device's analog outputs.

When AOCAL is unlocked, sending a message to any component other than AOCAL

will lock the AOCAL component.

VALUE

Set the value of the analog output channel being calibrated.
Message

"?AOCAL{ch}:VALUE=value"

Response "AOCAL{ch}:VALUE"

ch

The AO channel being calibrated.

value

The AO channel value in counts.

Example

"AOCAL{0}:VALUE=4095"

Get the value of the analog output channel being calibrated.
Message

"?AOCAL{ch}:VALUE"

Response "AOCAL{ch}:VALUE=value"

ch

The AO channel being calibrated.

value

The AO channel value in counts.