imaqIODrive

NI-IMAQ I/O C Function

imaqIODrive

Format

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

Purpose

Drives general-purpose digital outputs with the static I/O on the NI-IMAQ I/O device.

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 drive.

signalType is the type of signal to drive. 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 you want to drive.

value is the state you want to drive the line 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 Outs.

Return Value

This function returns 0 on success. On failure, this function returns an error code. For information about the error code, call imaqIOGetErrorText.