跳转到内容

Trigger Mode (BCON for MIPI)#

The Trigger Mode camera feature allows you to enable or disable triggered image acquisition.

该功能的使用#

设置触发模式#

To set the trigger mode, set the TriggerMode parameter to one of the following values:

  • On: Enables triggered image acquisition.
  • Off (default): Disables triggered image acquisition. Trigger signals are generated automatically by the camera ("free run" image acquisition).

示例代码#

// Enable triggered image acquisition for the Frame Start trigger
camera.TriggerMode.SetValue(TriggerMode_On);
INodeMap& nodemap = camera.GetNodeMap();
// Enable triggered image acquisition for the Frame Start trigger
CEnumParameter(nodemap, "TriggerMode").SetValue("On");
/* 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 */
/* Enable triggered image acquisition for the Frame Start trigger */
errRes = PylonDeviceFeatureFromString(hdev, "TriggerMode", "On");
CHECK(errRes);

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