Using A Hardware Frame Start Trigger - Basler DART BCON SERIES User Manual

Table of Contents

Advertisement

AW00136902000
Configuring and Executing a Software Frame Start Trigger Command
The following code snippet illustrates using the API to set the parameter values and to execute the
commands related to software frame start triggering with the camera set for continuous frame
acquisition mode:
// Set the acquisition mode to Continuous
camera.AcquisitionMode.SetValue(AcquisitionMode_Continuous);
// Set the trigger mode to On
camera.TriggerMode.SetValue(TriggerMode_On);
// Enable software triggering
camera.TriggerSource.SetValue(TriggerSource_Software);
// Set the immediate trigger mode to Off
camera.ImmediateTriggerMode.SetValue(ImmediateTriggerMode_Off);
// Set the timed exposure mode
camera.ExposureMode.SetValue(ExposureMode_Timed);
// Set the exposure time
camera.ExposureTime.SetValue(3000.0);
// Execute an AcquisitionStart command to prepare for frame acquisition
camera.AcquisitionStart.Execute();
while (!finished)
{
// Execute a TriggerSoftware command to apply a frame start
// trigger signal to the camera
camera.TriggerSoftware.Execute();
// Retrieve acquired frame here
}
camera.AcquisitionStop.Execute();
9.2.3

Using a Hardware Frame Start Trigger

If the TriggerMode parameter is set to On and the TriggerSource parameter is set to Line 3, an
externally generated electrical signal injected into input line CC0 will act as the frame start trigger
signal for the camera.
This type of trigger signal is generally referred to as a hardware trigger signal or as a hardware
frame start trigger signal.
A rising edge or a falling edge of the hardware trigger signal can be used to trigger frame
acquisition.
If you are using hardware trigger signals, the period of the hardware trigger signal will determine
the rate at which the camera is acquiring frames:
1
------------------------------------------------------------------------ -
ExFSTrig period in seconds
Basler dart BCON
=
frame rate
Image Acquisition Control
63

Advertisement

Table of Contents
loading

Table of Contents