SetTrigger Method
Syntax
CWIMAQ.SetTrigger Line, Action, Polarity
Return Type
This method returns 0 on success, a negative number on an error, and a positive number on a warning.
Purpose
Obsolete—Use CWIMAQSignals instead.
Sets the action and polarity for a trigger line.
Remarks
Call this method to configure the specified trigger with an action and a polarity. To configure the CWIMAQ control to begin acquisition on a trigger, set the StartCondition property to cwimaqHardwareTrigger.

Note This method returns an error if you use it to set a fifth RTSI line while four are already in use.
NI-IMAQ 1.5 does not support using a trigger to start an asynchronous acquisition. If you are using NI-IMAQ 1.5, always use the AcquireImage method to begin your triggered acquisition. Future versions of NI-IMAQ do support triggered asynchronous acquisitions using the Start method.
Parameters
Line As CWIMAQTriggerLines
Trigger line.
Action As CWIMAQTriggerActions
Trigger action.
Polarity As CWIMAQTriggerPolarities
Trigger polarity.