For example, you can specify that a trigger becomes active when the trigger signal falls.
In this topic Hide
The trigger currently selected must be set to a hardware trigger source, e.g., Line1, or an "Active" software trigger source, e.g., Counter1Active.
To set the trigger activation mode, set the TriggerActivation parameter to one of the following values:
If you set the TriggerSelector parameter to an "Active" trigger, e.g., ExposureActive, only the LevelHigh and LevelLow activation modes are available.
Camera Model | Trigger Activation Modes |
---|---|
All ace 2 GigE camera models |
|
All ace 2 USB 3.0 camera models |
|
All ace USB 3.0 camera models |
|
All ace GigE camera models |
|
All boost CXP-12 camera models |
|
All dart BCON for LVDS camera models |
|
All dart BCON for MIPI cameras models | Trigger Activation feature not supported |
All dart USB 3.0 camera models |
|
All pulse USB 3.0 camera models | Trigger Activation feature not supported |
// 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");
// 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.