Skip to content

Trigger Activation (BCON for MIPI)#

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

Using the Feature#

Setting the Trigger Activation Mode#

To set the trigger activation mode:

  1. Make sure the TriggerSource parameter is set to Line1. Otherwise, the TriggerActivation parameter is not available.
  2. Set the TriggerActivation parameter to one of the following values:
    • LevelHigh: The trigger is active as long as the trigger signal is high.
    • LevelLow: The trigger is active as long as the trigger signal is low.

Info

If you want to use edge triggering and if you want to trigger the camera at periodic intervals, use the Periodic Signal feature.

Sample Code#

// Set the trigger activation mode to level high
camera.TriggerActivation.SetValue(TriggerActivation_LevelHigh);
INodeMap& nodemap = camera.GetNodeMap();
// Set the trigger activation mode to level high
CEnumParameter(nodemap, "TriggerActivation").SetValue("LevelHigh");
// Set the trigger activation mode to level high
camera.Parameters[PLCamera.TriggerActivation].SetValue(PLCamera.TriggerActivation.LevelHigh);
/* 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 */
/* Set the trigger activation mode to level high */
errRes = PylonDeviceFeatureFromString(hdev, "TriggerActivation", "LevelHigh");
CHECK(errRes);

You can also use the pylon Viewer to easily set the parameters.

Back to top