imgSessionTriggerDrive2
- Updated2023-02-21
- 1 minute(s) read
Usage
rval imgSessionTriggerDrive2(SESSION_ID sid, IMG_SIGNAL_TYPE triggerType, uInt32 triggerNumber, uInt32 polarity, uInt32 source);
Purpose
Configures the specified trigger line to drive a signal out.
Parameters
| Name | Type | Direction |
| sid | SESSION_ID | input |
| triggerType | IMG_SIGNAL_TYPE | input |
| triggerNumber | uInt32 | input |
| polarity | uInt32 | input |
| source | uInt32 | input |
| rval | Int32 | output |
Parameter Discussion
sid: valid SESSION_ID.
triggerType: type of trigger line to use. triggerType can be one of the following constants:
![]() |
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_EXTERNAL |
| IMG_SIGNAL_RTSI |
| IMG_SIGNAL_ISO_OUT |
triggerNumber: number of the trigger line to use.
polarity: polarity of the trigger line. polarity can be one of the following constants:
| IMG_TRIG_POLAR_ACTIVEL | Drives the line low when the signal is true. |
| IMG_TRIG_POLAR_ACTIVEH | Drives the line high when the signal is true. |
source: specifies the signal that drives the trigger line as specified by the following constants:
| IMG_TRIG_DRIVE_DISABLED |
| IMG_TRIG_DRIVE_AQ_IN_PROGRESS |
| IMG_TRIG_DRIVE_AQ_DONE |
| IMG_TRIG_DRIVE_ASSERTED |
| IMG_TRIG_DRIVE_UNASSERTED |
| IMG_TRIG_DRIVE_HSYNC |
| IMG_TRIG_DRIVE_VSYNC |
| IMG_TRIG_DRIVE_FRAME_START |
| IMG_TRIG_DRIVE_FRAME_DONE |
| IMG_TRIG_DRIVE_SCALED_ENCODER |
Return Value
This function returns 0 on success. On failure, this function returns an error code. For information about the error code, call imgShowError.
