Update Analog Outputs

FieldPoint Optomux Programming

Update Analog Outputs

[cmdchars] = S

Recommended Extended Commands

National Instruments recommends that you use the Write 16-Bit Data (!H) extended command or the Write 16-Bit Data with Status (!I) extended command instead of the Update Analog Outputs command.

Description

The Update Analog Outputs command sets the targeted channels on the addressed module to specified output levels. Each output level is represented by a 12-bit value. If the targeted module has 16-bit resolution, use the extended commands.

Syntax

S[positions][data]

[positions]Four ASCII-hex characters specify the channels. A "1" in any bit means that the command sets the corresponding channel to an output level specified by [data]. A zero in any bit means that the corresponding channel is unaffected.

This command does not affect input channels.
[data]Three ASCII-hex characters specify a 12-bit value for each targeted output channel. The first three characters specify the value for the channel corresponding to the most significant "1" in [data], and so on. The range of values is from 0x000 (0 decimal) to 0xFFF (4095 decimal). 0x000 represents the zero output level (or the full-scale negative value for bipolar ranges), and 0xFFF represents the full-scale output level.

Success Response

A

Error Responses

E_INVALID_CMDUndefined command.
E_INV_LIMS_GOTSpecified limits invalid for the command.

Refer to FieldPoint Responses for other possible error responses, error numbers, and error descriptions.

Example

33S0224FFF0C01F0[checksum][cr]

This command instructs the FieldPoint module at address 51 (0x33) to write 0x1F0 to channel 2, 0x0C0 to channel 5, and 0xFFF to channelĀ 9.