跳转到内容

Trigger Source (BCON for MIPI)#

The Trigger Source camera feature allows you to configure how the Frame Start trigger can be triggered.

该功能的使用#

To configure how the Frame Start trigger can be triggered, set the TriggerSource parameter to one of the following values:

  • Line1: The trigger selected can be triggered by applying an electrical signal to I/O line 1.
  • PeriodicSignal1: The trigger selected can be triggered using the Periodic Signal feature.

示例代码#

// Set the trigger source to Line 1
camera.TriggerSource.SetValue(TriggerSource_Line1);
INodeMap& nodemap = camera.GetNodeMap();
// Set the trigger source to Line 1
CEnumParameter(nodemap, "TriggerSource").SetValue("Line1");
/* 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 source to Line 1 */
errRes = PylonDeviceFeatureFromString(hdev, "TriggerSource", "Line1");
CHECK(errRes);

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