imaqIOGetShutdownState

NI-IMAQ I/O C Function

imaqIOGetShutdownState

Format

rval = imaqIOGetShutdownState(IMAQIO_SESSION id, IMAQIOSignalType signalType, unsigned long signalNumber, IMAQIOSignalState* value);

Purpose

Gets the shutdown state of one of the output signals on the NI-IMAQ I/O device.

Parameters

Name Type Direction
id IMAQIO_SESSION input
signalType IMAQIOSignalType input
signalNumber unsigned long input
value IMAQIOSignalState* output

Parameter Discussion

id is the ID of the session to get the shutdown state for.

signalType is the type of signal to associated with the NI-IMAQ I/O device. The following values are valid for this parameter:

NameConstantDescription
IMAQIO_SIGNAL_ISO_OUT 3ISO output signals are general-purpose outputs.
IMAQIO_SIGNAL_TTL_OUT 6TTL output signals are general-purpose outputs.

signalNumber is the line number of the signal associated with the NI-IMAQ I/O device.

value is a pointer to the state of the NI-IMAQ I/O device. 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.