Trigger Delay#
Using the Feature#
To add a trigger delay:
- Set the
TriggerSelector
parameter to the desired trigger type, e.g.,FrameStart
. - Set the
TriggerDelay
parameter 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#
// Select the frame start trigger
camera.TriggerSelector.SetValue(TriggerSelector_FrameStart);
// Set the delay for the frame start trigger to 300 µs
camera.TriggerDelayAbs.SetValue(300.0);
INodeMap& nodemap = camera.GetNodeMap();
// Select the frame start trigger
CEnumParameter(nodemap, "TriggerSelector").SetValue("FrameStart");
// Set the delay for the frame start trigger to 300 µs
CFloatParameter(nodemap, "TriggerDelayAbs").SetValue(300.0);
// Select the frame start trigger
camera.Parameters[PLCamera.TriggerSelector].SetValue(PLCamera.TriggerSelector.FrameStart);
// Set the delay for the frame start trigger to 300 µs
camera.Parameters[PLCamera.TriggerDelayAbs].SetValue(300.0);
/* 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#
// Select the frame start trigger
camera.TriggerSelector.SetValue(TriggerSelector_FrameStart);
// Set the delay for the frame start trigger to 300 µs
camera.TriggerDelay.SetValue(300);
INodeMap& nodemap = camera.GetNodeMap();
// Select the frame start trigger
CEnumParameter(nodemap, "TriggerSelector").SetValue("FrameStart");
// Set the delay for the frame start trigger to 300 µs
CIntegerParameter(nodemap, "TriggerDelay").SetValue(300);
// Select the frame start trigger
camera.Parameters[PLCamera.TriggerSelector].SetValue(PLCamera.TriggerSelector.FrameStart);
// Set the delay for the frame start trigger to 300 µs
camera.Parameters[PLCamera.TriggerDelay].SetValue(300);
/* 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.