imgSessionTriggerRoute2

NI IMAQ Function

imgSessionTriggerRoute2

Usage

rval imgSessionTriggerRoute2(SESSION_ID sid, IMG_SIGNAL_TYPE srcTrigType, uInt32 srcTrigNumber, IMG_SIGNAL_TYPE dstTrigType, uInt32 dstTrigNumber);

Purpose

Drives the destination trigger line with the signal on the source trigger line.

Parameters

Name Type Direction
sid SESSION_ID input
srcTrigType IMG_SIGNAL_TYPE input
srcTrigNumber uInt32 input
dstTrigType IMG_SIGNAL_TYPE input
dstTrigNumber uInt32 input

Parameter Discussion

sid: valid SESSION_ID.

srcTrigType: type of source trigger line. To stop driving, set the srcTrigType to IMG_SIGNAL_NONE. srcTrigType can be one of the following constants:

Note Note  To use the ISO_IN or RS422_IN signals on the NI PCI-1426, select External as the Trigger Type for your function and choose ISO In or RS-422 In as the Signal Level for the trigger line in Measurement & Automation Explorer (MAX).
IMG_SIGNAL_NONE
IMG_SIGNAL_EXTERNAL
IMG_SIGNAL_RTSI
IMG_SIGNAL_ISO_IN

srcTrigNumber: number of the source trigger line to use.

dstTrigType: type of destination trigger line. dstTrigType can be one of the following constants:

Note Note  To use the ISO_IN or RS422_IN signals on the NI PCI-1426, select External as the Trigger Type for your function and choose ISO In or RS-422 In as the Signal Level for the trigger line in MAX.
IMG_SIGNAL_EXTERNAL
IMG_SIGNAL_RTSI
IMG_SIGNAL_ISO_OUT

dstTrigNumber: number of the destination trigger to use.

Return Value

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