imaqIOSetShutdownState
Format
rval = imaqIOSetShutdownState(IMAQIO_SESSION id, IMAQIOSignalType signalType, unsigned long signalNumber, IMAQIOSignalState value);
Purpose
Sets the shutdown state of one of the output signals on the NI-IMAQ I/O device. The default shutdown state is IMAQIO_SIGNAL_STATE_LOW.
Parameters
Name | Type | Direction |
id | IMAQIO_SESSION | input |
signalType | IMAQIOSignalType | input |
signalNumber | unsigned long | input |
value | IMAQIOSignalState | input |
Parameter Discussion
id is the ID of the session to set the shutdown state on.
signalType is the type of signal to set the shutdown state on. The following values are valid for this parameter:
Name | Constant | Description |
IMAQIO_SIGNAL_ISO_OUT | 3 | ISO output signals are general-purpose outputs. |
IMAQIO_SIGNAL_TTL_OUT | 6 | TTL output signals are general-purpose outputs. |
signalNumber is the line number to set the shutdown state on.
value is the shutdown state to set the device to. The following values are valid:
IMAQIO_SIGNAL_STATE_HIGH | Drives the line high when the signal is TRUE. |
IMAQIO_SIGNAL_STATE_LOW | Drives the line low when the signal is TRUE. |
IMAQIO_SIGNAL_STATE_HI_Z | Disables output on the line. This option is valid only for TTL output signals. |
Return Value
This function returns 0 on success. On failure, this function returns an error code. For information about the error code, call imaqIOGetErrorText.