Trigger Delay#
Using the Feature#
To add a trigger delay:
- Set the
TriggerSelectorparameter to the desired trigger type, e.g.,FrameStart. - Set the
TriggerDelayparameter to the desired delay (in µs).
Info
If you want to add a delay longer than the maximum possible value, use the Timer feature (if available).
Sample Code#
ace Classic/U/L GigE Cameras#
/* 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 */
/* Select the frame start trigger */
errRes = PylonDeviceFeatureFromString(hdev, "TriggerSelector", "FrameStart");
CHECK(errRes);
/* Set the delay for the frame start trigger to 300 µs */
errRes = PylonDeviceSetFloatFeature(hdev, "TriggerDelayAbs", 300.0);
CHECK(errRes);
Other Cameras#
/* 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 */
/* Select the frame start trigger */
errRes = PylonDeviceFeatureFromString(hdev, "TriggerSelector", "FrameStart");
CHECK(errRes);
/* Set the delay for the frame start trigger to 300 µs */
errRes = PylonDeviceSetIntegerFeature(hdev, "TriggerDelay", 300);
CHECK(errRes);
You can also use the pylon Viewer to easily set the parameters.