For a description of the Timer feature for ace 2 and boost cameras, click here.
In this topic Hide
This is how the timer works:
On some camera models, you may have to increase the maximum timer duration and timer delay values.
On some camera models, the TimerDurationAbsTimerDuration and TimerDelayAbsTimerDelay parameters are limited to a default maximum value of 4 095.
To increase the maximum timer duration on these models:
To increase the maximum timer delay on these models:
Depending on the TimerDurationTimebaseAbs
and TimerDelayTimebaseAbs
parameter values, the camera may not be able to achieve the exact
timer duration and delay desired.
For example, if you set the TimerDurationTimebaseAbs
parameter to 13, the camera can only achieve timer durations that
are a multiple of 13. Therefore, if you set the TimerDurationAbsTimerDuration
parameter to 50 000 and the TimerDurationTimebaseAbs
parameter to 13, the camera will automatically change the setting
to the nearest possible value (e.g., 49 998, which is the nearest
multiple of 13).
Camera Model | Default Maximum Value for Timer Duration and Delay | Available Trigger Source Event |
---|---|---|
All ace 2 GigE camera models | See Timer (ace 2, boost) | - |
All ace 2 USB 3.0 camera models | See Timer (ace 2, boost) | - |
acA640-90gm | 4 095 | Exposure Start |
acA640-90gc | 4 095 | Exposure Start |
acA640-120gm | 4 095 | Exposure Start |
acA640-120gc | 4 095 | Exposure Start |
acA640-121gm | 16 777 215 | Exposure Start |
acA640-300gm | 16 777 215 | Exposure Start |
acA640-300gc | 16 777 215 | Exposure Start |
acA720-290gm | 16 777 215 | Exposure Start |
acA720-290gc | 16 777 215 | Exposure Start |
acA780-75gm | 4 095 | Exposure Start |
acA780-75gc | 4 095 | Exposure Start |
acA800-200gm | 16 777 215 | Exposure Start |
acA800-200gc | 16 777 215 | Exposure Start |
acA1280-60gm | 4 095 | Exposure Start |
acA1280-60gc | 4 095 | Exposure Start |
acA1300-22gm | 4 095 | Exposure Start |
acA1300-22gc | 4 095 | Exposure Start |
acA1300-30gm | 4 095 | Exposure Start |
acA1300-30gc | 4 095 | Exposure Start |
acA1300-60gm | 4 095 | Exposure Start |
acA1300-60gmNIR | 4 095 | Exposure Start |
acA1300-60gc | 4 095 | Exposure Start |
acA1300-75gm | 16 777 215 | Exposure Start |
acA1300-75gc | 16 777 215 | Exposure Start |
acA1440-73gm | 16 777 215 | Exposure Start |
acA1440-73gc | 16 777 215 | Exposure Start |
acA1600-20gm | 4 095 | Exposure Start |
acA1600-20gc | 4 095 | Exposure Start |
acA1600-60gm | 4 095 | Exposure Start |
acA1600-60gc | 4 095 | Exposure Start |
acA1920-25gm | 4 095 | Exposure Start |
acA1920-25gc | 4 095 | Exposure Start |
acA1920-40gm | 16 777 215 | Exposure Start |
acA1920-40gc | 16 777 215 | Exposure Start |
acA1920-48gm | 16 777 215 | Exposure Start |
acA1920-48gc | 16 777 215 | Exposure Start |
acA1920-50gm | 16 777 215 | Exposure Start |
acA1920-50gc | 16 777 215 | Exposure Start |
acA2000-50gm | 4 095 | Exposure Start |
acA2000-50gmNIR | 4 095 | Exposure Start |
acA2000-50gc | 4 095 | Exposure Start |
acA2040-25gm | 4 095 | Exposure Start |
acA2040-25gmNIR | 4 095 | Exposure Start |
acA2040-25gc | 4 095 | Exposure Start |
acA2040-35gm | 16 777 215 | Exposure Start |
acA2040-35gc | 16 777 215 | Exposure Start |
acA2440-20gm | 16 777 215 | Exposure Start |
acA2440-20gc | 16 777 215 | Exposure Start |
acA2500-14gm | 4 095 | Exposure Start |
acA2500-14gc | 4 095 | Exposure Start |
acA2500-20gm | 16 777 215 | Exposure Start |
acA2500-20gc | 16 777 215 | Exposure Start |
acA2500-20gmMED | 16 777 215 | Exposure Start |
acA2500-20gcMED | 16 777 215 | Exposure Start |
acA3088-16gm | 16 777 215 | Exposure Start |
acA3088-16gc | 16 777 215 | Exposure Start |
acA3800-10gm | 4 095 | Flash Window Start |
acA3800-10gc | 4 095 | Flash Window Start |
acA4024-8gm | 16 777 215 | Exposure Start |
acA4024-8gc | 16 777 215 | Exposure Start |
acA4096-11gm | 16 777 215 | Exposure Start |
acA4096-11gc | 16 777 215 | Exposure Start |
acA4112-8gm | 16 777 215 | Exposure Start |
acA4112-8gc | 16 777 215 | Exposure Start |
acA4600-7gc | 4 095 | Flash Window Start |
acA5472-5gm | 16 777 215 | Exposure Start |
acA5472-5gc | 16 777 215 | Exposure Start |
acA640-750um | 16 777 215 | Exposure Start |
acA640-750uc | 16 777 215 | Exposure Start |
acA640-90um | 16 777 215 | Exposure Start |
acA640-90uc | 16 777 215 | Exposure Start |
acA640-120um | 16 777 215 | Exposure Start |
acA640-120uc | 16 777 215 | Exposure Start |
acA720-520um | 16 777 215 | Exposure Start |
acA720-520uc | 16 777 215 | Exposure Start |
acA800-510um | 16 777 215 | Exposure Start |
acA800-510uc | 16 777 215 | Exposure Start |
acA1300-200um | 16 777 215 | Exposure Start |
acA1300-200uc | 16 777 215 | Exposure Start |
acA1300-30um | 16 777 215 | Exposure Start |
acA1300-30uc | 16 777 215 | Exposure Start |
acA1440-220um | 16 777 215 | Exposure Start |
acA1440-220uc | 16 777 215 | Exposure Start |
acA1600-20um | 16 777 215 | Exposure Start |
acA1600-20uc | 16 777 215 | Exposure Start |
acA1920-25um | 16 777 215 | Exposure Start |
acA1920-25uc | 16 777 215 | Exposure Start |
acA1920-40um | 16 777 215 | Exposure Start |
acA1920-40uc | 16 777 215 | Exposure Start |
acA1920-40umMED | 16 777 215 | Exposure Start |
acA1920-40ucMED | 16 777 215 | Exposure Start |
acA1920-150um | 16 777 215 | Exposure Start |
acA1920-150uc | 16 777 215 | Exposure Start |
acA1920-155um | 16 777 215 | Exposure Start |
acA1920-155uc | 16 777 215 | Exposure Start |
acA1920-155umMED | 16 777 215 | Exposure Start |
acA1920-155ucMED | 16 777 215 | Exposure Start |
acA2040-90um | 16 777 215 | Exposure Start |
acA2040-90umNIR | 16 777 215 | Exposure Start |
acA2040-90uc | 16 777 215 | Exposure Start |
acA2000-165um | 16 777 215 | Exposure Start |
acA2000-165umNIR | 16 777 215 | Exposure Start |
acA2000-165uc | 16 777 215 | Exposure Start |
acA2040-55um | 16 777 215 | Exposure Start |
acA2040-55uc | 16 777 215 | Exposure Start |
acA2040-120um | 16 777 215 | Exposure Start |
acA2040-120uc | 16 777 215 | Exposure Start |
acA2440-35um | 16 777 215 | Exposure Start |
acA2440-35uc | 16 777 215 | Exposure Start |
acA2440-35umMED | 16 777 215 | Exposure Start |
acA2440-35ucMED | 16 777 215 | Exposure Start |
acA2440-75um | 16 777 215 | Exposure Start |
acA2440-75uc | 16 777 215 | Exposure Start |
acA2440-75umMED | 16 777 215 | Exposure Start |
acA2440-75ucMED | 16 777 215 | Exposure Start |
acA2500-14um | 16 777 215 | Exposure Start |
acA2500-14uc | 16 777 215 | Exposure Start |
acA2500-60um | 16 777 215 | Exposure Start |
acA2500-60uc | 16 777 215 | Exposure Start |
acA3088-57um | 16 777 215 | Exposure Start |
acA3088-57uc | 16 777 215 | Exposure Start |
acA3800-14um | 16 777 215 | Flash Window Start |
acA3800-14uc | 16 777 215 | Flash Window Start |
acA4024-29um | 16 777 215 | Exposure Start |
acA4024-29uc | 16 777 215 | Exposure Start |
acA4096-30um | 16 777 215 | Exposure Start |
acA4096-30uc | 16 777 215 | Exposure Start |
acA4096-30umMED | 16 777 215 | Exposure Start |
acA4096-30ucMED | 16 777 215 | Exposure Start |
acA4096-40um | 16 777 215 | Exposure Start |
acA4096-40uc | 16 777 215 | Exposure Start |
acA4096-40umMED | 16 777 215 | Exposure Start |
acA4096-40ucMED | 16 777 215 | Exposure Start |
acA4112-20um | 16 777 215 | Exposure Start |
acA4112-20uc | 16 777 215 | Exposure Start |
acA4112-20umMED | 16 777 215 | Exposure Start |
acA4112-20ucMED | 16 777 215 | Exposure Start |
acA4112-30um | 16 777 215 | Exposure Start |
acA4112-30uc | 16 777 215 | Exposure Start |
acA4112-30umMED | 16 777 215 | Exposure Start |
acA4112-30ucMED | 16 777 215 | Exposure Start |
acA4600-10uc | 16 777 215 | Flash Window Start |
acA5472-17um | 16 777 215 | Exposure Start |
acA5472-17uc | 16 777 215 | Exposure Start |
All boost CXP-12 camera models | See Timer (ace 2, boost) | - |
All dart BCON for LVDS camera models | Timer feature not supported | Timer feature not supported |
All dart BCON for MIPI camera models | Timer feature not supported | Timer feature not supported |
All dart USB 3.0 camera models | Timer feature not supported | Timer feature not supported |
All pulse USB 3.0 camera models | Timer feature not supported | Timer feature not supported |
// Select Line 2 (output line)
camera.LineSelector.SetValue(LineSelector_Line2);
// Specify that the timer signal is output on Line 2
camera.LineSource.SetValue(LineSource_TimerActive);
// Specify that the timer starts when exposure starts
camera.TimerTriggerSource.SetValue(TimerTriggerSource_ExposureStart);
// Set the timer duration to 1000 microseconds
camera.TimerDurationAbs.SetValue(1000.0);
// Set the timer delay to 500 microseconds
camera.TimerDelayAbs.SetValue(500.0);
// Select Line 2 (output line)
camera.LineSelector.SetValue(LineSelector_Line2);
// Specify that the timer signal is output on Line 2
camera.LineSource.SetValue(LineSource_Timer1Active);
// Specify that the timer starts when exposure starts
camera.TimerTriggerSource.SetValue(TimerTriggerSource_ExposureStart);
// Set the timer duration to 1000 microseconds
camera.TimerDuration.SetValue(1000.0);
// Set the timer delay to 500 microseconds
camera.TimerDelay.SetValue(500.0);
INodeMap& nodemap = camera.GetNodeMap();
// Select Line 2 (output line)
CEnumerationPtr(nodemap.GetNode("LineSelector"))->FromString("Line2");
// Specify that the timer signal is output on Line 2
CEnumerationPtr(nodemap.GetNode("LineSource"))->FromString("TimerActive");
// Specify that the timer starts when exposure starts
CEnumerationPtr(nodemap.GetNode("TimerTriggerSource"))->FromString("ExposureStart");
// Set the timer duration to 1000 microseconds
CFloatPtr(nodemap.GetNode("TimerDurationAbs"))->SetValue(1000.0);
// Set the timer delay to 500 microseconds
CFloatPtr(nodemap.GetNode("TimerDelayAbs"))->SetValue(500.0);
// Select Line 2 (output line)
CEnumerationPtr(nodemap.GetNode("LineSelector"))->FromString("Line2");
// Specify that the timer signal is output on Line 2
CEnumerationPtr(nodemap.GetNode("LineSource"))->FromString("Timer1Active");
// Specify that the timer starts when exposure starts
CEnumerationPtr(nodemap.GetNode("TimerTriggerSource"))->FromString("ExposureStart");
// Set the timer duration to 1000 microseconds
CFloatPtr(nodemap.GetNode("TimerDuration"))->SetValue(1000.0);
// Set the timer delay to 500 microseconds
CFloatPtr(nodemap.GetNode("TimerDelay"))->SetValue(500.0);
// Select Line 2 (output line)
camera.Parameters[PLCamera.LineSelector].SetValue(PLCamera.LineSelector.Line2);
// Specify that the timer signal is output on Line 2
camera.Parameters[PLCamera.LineSource].SetValue(PLCamera.LineSource.TimerActive);
// Specify that the timer starts when exposure starts
camera.Parameters[PLCamera.TimerTriggerSource].SetValue(PLCamera.TimerTriggerSource.ExposureStart);
// Set the timer duration to 1000 microseconds
camera.Parameters[PLCamera.TimerDurationAbs].SetValue(1000.0);
// Set the timer delay to 500 microseconds
camera.Parameters[PLCamera.TimerDelayAbs].SetValue(500.0);
// Select Line 2 (output line)
camera.Parameters[PLCamera.LineSelector].SetValue(PLCamera.LineSelector.Line2);
// Specify that the timer signal is output on Line 2
camera.Parameters[PLCamera.LineSource].SetValue(PLCamera.LineSource.Timer1Active);
// Specify that the timer starts when exposure starts
camera.Parameters[PLCamera.TimerTriggerSource].SetValue(PLCamera.TimerTriggerSource.ExposureStart);
// Set the timer duration to 1000 microseconds
camera.Parameters[PLCamera.TimerDuration].SetValue(1000.0);
// Set the timer delay to 500 microseconds
camera.Parameters[PLCamera.TimerDelay].SetValue(500.0);
// Select Line 2 (output line)
Pylon.DeviceFeatureFromString(hdev, "LineSelector", "Line2");
// Specify that the timer signal is output on Line 2
Pylon.DeviceFeatureFromString(hdev, "LineSource", "TimerActive");
// Specify that the timer starts when exposure starts
Pylon.DeviceFeatureFromString(hdev, "TimerTriggerSource", "ExposureStart");
// Set the timer duration to 1000 microseconds
Pylon.DeviceSetFloatFeature(hdev, "TimerDurationAbs", 1000.0);
// Set the timer delay to 500 microseconds
Pylon.DeviceSetFloatFeature(hdev, "TimerDelayAbs", 500.0);
// Select Line 2 (output line)
Pylon.DeviceFeatureFromString(hdev, "LineSelector", "Line2");
// Specify that the timer signal is output on Line 2
Pylon.DeviceFeatureFromString(hdev, "LineSource", "Timer1Active");
// Specify that the timer starts when exposure starts
Pylon.DeviceFeatureFromString(hdev, "TimerTriggerSource", "ExposureStart");
// Set the timer duration to 1000 microseconds
Pylon.DeviceSetFloatFeature(hdev, "TimerDuration", 1000.0);
// Set the timer delay to 500 microseconds
Pylon.DeviceSetFloatFeature(hdev, "TimerDelay", 500.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 Line 2 (output line) */
errRes = PylonDeviceFeatureFromString(hdev, "LineSelector", "Line2");
CHECK(errRes);
/* Specify that the timer signal is output on Line 2 */
errRes = PylonDeviceFeatureFromString(hdev, "LineSource", "TimerActive");
CHECK(errRes);
/* Specify that the timer starts when exposure starts */
errRes = PylonDeviceFeatureFromString(hdev, "TimerTriggerSource", "ExposureStart");
CHECK(errRes);
/* Set the timer duration to 1000 microseconds */
errRes = PylonDeviceSetFloatFeature(hdev, "TimerDurationAbs", 1000.0);
CHECK(errRes);
/* Set the timer delay to 500 microseconds */
errRes = PylonDeviceSetFloatFeature(hdev, "TimerDelayAbs", 500.0);
CHECK(errRes);
/* Select Line 2 (output line) */
errRes = PylonDeviceFeatureFromString(hdev, "LineSelector", "Line2");
CHECK(errRes);
/* Specify that the timer signal is output on Line 2 */
errRes = PylonDeviceFeatureFromString(hdev, "LineSource", "Timer1Active");
CHECK(errRes);
/* Specify that the timer starts when exposure starts */
errRes = PylonDeviceFeatureFromString(hdev, "TimerTriggerSource", "ExposureStart");
CHECK(errRes);
/* Set the timer duration to 1000 microseconds */
errRes = PylonDeviceSetFloatFeature(hdev, "TimerDuration", 1000.0);
CHECK(errRes);
/* Set the timer delay to 500 microseconds */
errRes = PylonDeviceSetFloatFeature(hdev, "TimerDelay", 500.0);
CHECK(errRes);
You can also use the pylon Viewer to easily set the parameters.