Trigger Source (BCON for MIPI)#
Using the Feature#
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.
Sample Code#
// 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.