Trigger Activation#
For example, you can specify that a trigger becomes active when the trigger signal falls.
Using the Feature#
Setting the Trigger Activation Mode#
To set the trigger activation mode:
- Set the
TriggerSelector
parameter to a hardware trigger source, e.g.,Line1
, or an "Active" software trigger source, e.g.,Counter1Active
. - Set the
TriggerActivation
parameter to one of the following values:RisingEdge
: The trigger becomes active when the trigger signal rises, i.e., when the signal status changes from low to high.FallingEdge
: The trigger becomes active when the trigger signal falls, i.e., when the signal status changes from high to low.AnyEdge
(if available): The trigger becomes active when the trigger signal falls or rises.LevelHigh
(if available): The trigger is active as long as the trigger signal is high.LevelLow
(if available): The trigger is active as long as the trigger signal is low.
Info
If you set the TriggerSelector
parameter to an "Active" trigger, e.g., ExposureActive
, only the LevelHigh
and LevelLow
activation modes are available.
Specifics#
Camera Model | Trigger Activation Modes |
---|---|
a2A1920-51gcBAS | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A1920-51gcPRO | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A1920-51gmBAS | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A1920-51gmPRO | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A1920-160ucBAS | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A1920-160ucPRO | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A1920-160umBAS | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A1920-160umPRO | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A2590-22gcBAS | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A2590-22gcPRO | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A2590-22gmBAS | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A2590-22gmPRO | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A2590-60ucBAS | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A2590-60ucPRO | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A2590-60umBAS | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A2590-60umPRO | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A3840-13gcBAS | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A3840-13gcPRO | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A3840-13gmBAS | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A3840-13gmPRO | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A3840-45ucBAS | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A3840-45ucPRO | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A3840-45umBAS | Rising Edge Falling Edge Any Edge Level High Level Low |
a2A3840-45umPRO | Rising Edge Falling Edge Any Edge Level High Level Low |
acA640-90gc | Rising Edge Falling Edge |
acA640-90gm | Rising Edge Falling Edge |
acA640-90uc | Rising Edge Falling Edge |
acA640-90um | Rising Edge Falling Edge |
acA640-120gc | Rising Edge Falling Edge |
acA640-120gm | Rising Edge Falling Edge |
acA640-120uc | Rising Edge Falling Edge |
acA640-120um | Rising Edge Falling Edge |
acA640-121gm | Rising Edge Falling Edge |
acA640-300gc | Rising Edge Falling Edge |
acA640-300gm | Rising Edge Falling Edge |
acA640-750uc | Rising Edge Falling Edge |
acA640-750um | Rising Edge Falling Edge |
acA720-290gc | Rising Edge Falling Edge |
acA720-290gm | Rising Edge Falling Edge |
acA720-520uc | Rising Edge Falling Edge |
acA720-520um | Rising Edge Falling Edge |
acA780-75gc | Rising Edge Falling Edge |
acA780-75gm | Rising Edge Falling Edge |
acA800-200gc | Rising Edge Falling Edge |
acA800-200gm | Rising Edge Falling Edge |
acA800-510uc | Rising Edge Falling Edge |
acA800-510um | Rising Edge Falling Edge |
acA1280-60gc | Rising Edge Falling Edge |
acA1280-60gm | Rising Edge Falling Edge |
acA1300-22gc | Rising Edge Falling Edge |
acA1300-22gm | Rising Edge Falling Edge |
acA1300-30gc | Rising Edge Falling Edge |
acA1300-30gm | Rising Edge Falling Edge |
acA1300-30uc | Rising Edge Falling Edge |
acA1300-30um | Rising Edge Falling Edge |
acA1300-60gc | Rising Edge Falling Edge |
acA1300-60gm | Rising Edge Falling Edge |
acA1300-60gmNIR | Rising Edge Falling Edge |
acA1300-75gc | Rising Edge Falling Edge |
acA1300-75gm | Rising Edge Falling Edge |
acA1300-200uc | Rising Edge Falling Edge |
acA1300-200um | Rising Edge Falling Edge |
acA1440-73gc | Rising Edge Falling Edge |
acA1440-73gm | Rising Edge Falling Edge |
acA1440-220uc | Rising Edge Falling Edge |
acA1440-220um | Rising Edge Falling Edge |
acA1600-20gc | Rising Edge Falling Edge |
acA1600-20gm | Rising Edge Falling Edge |
acA1600-20uc | Rising Edge Falling Edge |
acA1600-20um | Rising Edge Falling Edge |
acA1600-60gc | Rising Edge Falling Edge |
acA1600-60gm | Rising Edge Falling Edge |
acA1920-25gc | Rising Edge Falling Edge |
acA1920-25gm | Rising Edge Falling Edge |
acA1920-25uc | Rising Edge Falling Edge |
acA1920-25um | Rising Edge Falling Edge |
acA1920-40gc | Rising Edge Falling Edge |
acA1920-40gm | Rising Edge Falling Edge |
acA1920-40uc | Rising Edge Falling Edge |
acA1920-40ucMED | Rising Edge Falling Edge |
acA1920-40um | Rising Edge Falling Edge |
acA1920-40umMED | Rising Edge Falling Edge |
acA1920-48gc | Rising Edge Falling Edge |
acA1920-48gm | Rising Edge Falling Edge |
acA1920-50gc | Rising Edge Falling Edge |
acA1920-50gm | Rising Edge Falling Edge |
acA1920-150uc | Rising Edge Falling Edge |
acA1920-150um | Rising Edge Falling Edge |
acA1920-155uc | Rising Edge Falling Edge |
acA1920-155ucMED | Rising Edge Falling Edge |
acA1920-155um | Rising Edge Falling Edge |
acA1920-155umMED | Rising Edge Falling Edge |
acA2000-50gc | Rising Edge Falling Edge |
acA2000-50gm | Rising Edge Falling Edge |
acA2000-50gmNIR | Rising Edge Falling Edge |
acA2000-165uc | Rising Edge Falling Edge |
acA2000-165um | Rising Edge Falling Edge |
acA2000-165umNIR | Rising Edge Falling Edge |
acA2040-25gc | Rising Edge Falling Edge |
acA2040-25gm | Rising Edge Falling Edge |
acA2040-25gmNIR | Rising Edge Falling Edge |
acA2040-35gc | Rising Edge Falling Edge |
acA2040-35gm | Rising Edge Falling Edge |
acA2040-55uc | Rising Edge Falling Edge |
acA2040-55um | Rising Edge Falling Edge |
acA2040-90uc | Rising Edge Falling Edge |
acA2040-90um | Rising Edge Falling Edge |
acA2040-90umNIR | Rising Edge Falling Edge |
acA2040-120uc | Rising Edge Falling Edge |
acA2040-120um | Rising Edge Falling Edge |
acA2440-20gc | Rising Edge Falling Edge |
acA2440-20gm | Rising Edge Falling Edge |
acA2440-35uc | Rising Edge Falling Edge |
acA2440-35ucMED | Rising Edge Falling Edge |
acA2440-35um | Rising Edge Falling Edge |
acA2440-35umMED | Rising Edge Falling Edge |
acA2440-75uc | Rising Edge Falling Edge |
acA2440-75ucMED | Rising Edge Falling Edge |
acA2440-75um | Rising Edge Falling Edge |
acA2440-75umMED | Rising Edge Falling Edge |
acA2500-14gc | Rising Edge Falling Edge |
acA2500-14gm | Rising Edge Falling Edge |
acA2500-14uc | Rising Edge Falling Edge |
acA2500-14um | Rising Edge Falling Edge |
acA2500-20gc | Rising Edge Falling Edge |
acA2500-20gcMED | Rising Edge Falling Edge |
acA2500-20gm | Rising Edge Falling Edge |
acA2500-20gmMED | Rising Edge Falling Edge |
acA2500-60uc | Rising Edge Falling Edge |
acA2500-60um | Rising Edge Falling Edge |
acA3088-16gc | Rising Edge Falling Edge |
acA3088-16gm | Rising Edge Falling Edge |
acA3088-57uc | Rising Edge Falling Edge |
acA3088-57um | Rising Edge Falling Edge |
acA3800-10gc | Rising Edge Falling Edge |
acA3800-10gm | Rising Edge Falling Edge |
acA3800-14uc | Rising Edge Falling Edge |
acA3800-14um | Rising Edge Falling Edge |
acA4024-8gc | Rising Edge Falling Edge |
acA4024-8gm | Rising Edge Falling Edge |
acA4024-29uc | Rising Edge Falling Edge |
acA4024-29um | Rising Edge Falling Edge |
acA4096-11gc | Rising Edge Falling Edge |
acA4096-11gm | Rising Edge Falling Edge |
acA4096-30uc | Rising Edge Falling Edge |
acA4096-30ucMED | Rising Edge Falling Edge |
acA4096-30um | Rising Edge Falling Edge |
acA4096-30umMED | Rising Edge Falling Edge |
acA4096-40uc | Rising Edge Falling Edge |
acA4096-40ucMED | Rising Edge Falling Edge |
acA4096-40um | Rising Edge Falling Edge |
acA4096-40umMED | Rising Edge Falling Edge |
acA4112-8gc | Rising Edge Falling Edge |
acA4112-8gm | Rising Edge Falling Edge |
acA4112-20uc | Rising Edge Falling Edge |
acA4112-20ucMED | Rising Edge Falling Edge |
acA4112-20um | Rising Edge Falling Edge |
acA4112-20umMED | Rising Edge Falling Edge |
acA4112-30uc | Rising Edge Falling Edge |
acA4112-30ucMED | Rising Edge Falling Edge |
acA4112-30um | Rising Edge Falling Edge |
acA4112-30umMED | Rising Edge Falling Edge |
acA4600-7gc | Rising Edge Falling Edge |
acA4600-10uc | Rising Edge Falling Edge |
acA5472-5gc | Rising Edge Falling Edge |
acA5472-5gm | Rising Edge Falling Edge |
acA5472-17uc | Rising Edge Falling Edge |
acA5472-17um | Rising Edge Falling Edge |
boA4096-93cc | Rising Edge Falling Edge Any Edge Level High Level Low |
boA4096-93cm | Rising Edge Falling Edge Any Edge Level High Level Low |
boA4112-68cc | Rising Edge Falling Edge Any Edge Level High Level Low |
boA4112-68cm | Rising Edge Falling Edge Any Edge Level High Level Low |
daA1280-54lc | Rising Edge Falling Edge |
daA1280-54lm | Rising Edge Falling Edge |
daA1280-54uc | Rising Edge Falling Edge |
daA1280-54um | Rising Edge Falling Edge |
daA1600-60lc | Rising Edge Falling Edge |
daA1600-60lm | Rising Edge Falling Edge |
daA1600-60uc | Rising Edge Falling Edge |
daA1600-60um | Rising Edge Falling Edge |
daA1920-15um | Rising Edge Falling Edge |
daA1920-30uc | Rising Edge Falling Edge |
daA1920-30um | Rising Edge Falling Edge |
daA2500-14lc | Rising Edge Falling Edge |
daA2500-14lm | Rising Edge Falling Edge |
daA2500-14uc | Rising Edge Falling Edge |
daA2500-14um | Rising Edge Falling Edge |
daA2500-60mc | Trigger Activation feature not supported |
daA2500-60mci | Trigger Activation feature not supported |
daA4200-30mci | Trigger Activation feature not supported |
puA1280-54uc | Trigger Activation feature not supported |
puA1280-54um | Trigger Activation feature not supported |
puA1600-60uc | Trigger Activation feature not supported |
puA1600-60um | Trigger Activation feature not supported |
puA1920-30uc | Trigger Activation feature not supported |
puA1920-30um | Trigger Activation feature not supported |
puA2500-14uc | Trigger Activation feature not supported |
puA2500-14um | Trigger Activation feature not supported |
Sample Code#
// Select the Frame Start trigger
camera.TriggerSelector.SetValue(TriggerSelector_FrameStart);
// Set the trigger activation mode to rising edge
camera.TriggerActivation.SetValue(TriggerActivation_RisingEdge);
INodeMap& nodemap = camera.GetNodeMap();
// Select the Frame Start trigger
CEnumerationPtr(nodemap.GetNode("TriggerSelector"))->FromString("FrameStart");
// Set the trigger activation mode to rising edge
CEnumerationPtr(nodemap.GetNode("TriggerActivation"))->FromString("RisingEdge");
INodeMap& nodemap = camera.GetNodeMap();
// Select the Frame Start trigger
CEnumParameter(nodemap, "TriggerSelector").SetValue("FrameStart");
// Set the trigger activation mode to rising edge
CEnumParameter(nodemap, "TriggerActivation").SetValue("RisingEdge");
// Select the Frame Start trigger
camera.Parameters[PLCamera.TriggerSelector].SetValue(PLCamera.TriggerSelector.FrameStart);
// Set the trigger activation mode to rising edge
camera.Parameters[PLCamera.TriggerActivation].SetValue(PLCamera.TriggerActivation.RisingEdge);
// Select the Frame Start trigger
Pylon.DeviceFeatureFromString(hdev, "TriggerSelector", "FrameStart");
// Set the trigger activation mode to rising edge
Pylon.DeviceFeatureFromString(hdev, "TriggerActivation", "RisingEdge");
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK; /* Return value of pylon methods */
/* Select the Frame Start trigger */
errRes = PylonDeviceFeatureFromString(hdev, "TriggerSelector", "FrameStart");
CHECK(errRes);
/* Set the trigger activation mode to rising edge */
errRes = PylonDeviceFeatureFromString(hdev, "TriggerActivation", "RisingEdge");
CHECK(errRes);
You can also use the pylon Viewer to easily set the parameters.