Activate Outputs
[cmdchars] = K
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 Activate Outputs command.
Description
The Activate Outputs command drives targeted output channels ON on the addressed FieldPoint module.
Syntax
K[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 means that the corresponding channel is unaffected. 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. This command does not affect input channels. |
Success Response
A
Error Responses
E_INVALID_CMD | Undefined command. |
E_INV_LIMS_GOT | Specified limits invalid for the command. |
Refer to FieldPoint Responses for other possible error responses, error numbers, and error descriptions.
Example
>33K55CC[checksum][cr]
This command turns outputs 2, 3, 6, 7, 8, 10, 12, and 14 ON on the FieldPoint module at address 51 (0x33). All other channels are unaffected.