Write Outputs

FieldPoint Optomux Programming

Write Outputs

[cmdchars] = J

Recommended Extended Commands

National Instruments recommends that you use the Write Discrete (!L) extended command or the Write Discrete with Status (!M) extended command instead of the Write Outputs command. The extended commands provide more flexibility. For example, they enable you to write to any or all channels and leave any other channels unaffected.

Description

The Write Outputs command drives outputs ON or OFF on the addressed FieldPoint module.

Syntax

J[positions]

[positions]Zero to four ASCII-hex characters specify the channels. A "1" in any bit turns the corresponding output ON. A zero in any bit turns the corresponding output OFF.

This command does not affect input channels.

If [positions] contains one to three characters, the channels corresponding to missing bits are unaffected.

If [positions] is empty, the command supplies "FFFF" for the value.

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

>33J0[checksum][cr]

This command turns outputs 0, 1, 2, and 3 OFF on the FieldPoint module at address 51 (0x33). Outputs 4–15 are unaffected.