跳转到内容

Trigger Activation (BCON for MIPI)#

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

该功能的使用#

设置触发激活模式#

要设置触发激活模式:

  1. Make sure the TriggerSource parameter is set to Line1. Otherwise, the TriggerActivation parameter is not available.
  2. 设置 TriggerActivation 参数设置为以下值:
    • 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.

信息

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

示例代码#

// 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.