Trigger Activation (BCON for MIPI)#
Using the Feature#
Setting the Trigger Activation Mode#
To set the trigger activation mode:
- Make sure the
TriggerSourceparameter is set to
Line1. Otherwise, the
TriggerActivationparameter is not available.
- Set the
TriggerActivationparameter 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.
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.