Trigger Activation

The Trigger Activation camera feature allows you to define which signal transition activates the selected trigger.

For example, you can specify that a trigger becomes active when the trigger signal falls.

In this topic Hide

Using the Feature

Prerequisites

The trigger currently selected must be set to a hardware trigger source, e.g., Line1, or an "Active" software trigger source, e.g., Counter1Active.

Setting the Trigger Activation Mode

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.

Specifics

Camera Model Trigger Activation Modes
All ace 2 GigE camera models
  • Rising Edge
  • Falling Edge
  • Any Edge
  • Level High
  • Level Low
All ace 2 USB 3.0 camera models
  • Rising Edge
  • Falling Edge
  • Any Edge
  • Level High
  • Level Low

All ace USB 3.0 camera models

  • Rising Edge
  • Falling Edge
All ace GigE camera models
  • Rising Edge
  • Falling Edge
All boost CXP-12 camera models
  • Rising Edge
  • Falling Edge
  • Any Edge
  • Level High
  • Level Low
All dart BCON for LVDS camera models
  • Rising Edge
  • Falling Edge
All dart BCON for MIPI cameras models Trigger Activation feature not supported
All dart USB 3.0 camera models
  • Rising Edge
  • Falling Edge
All pulse USB 3.0 camera models 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");
// 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.