Setting The Parameters Related To Software Line Start Triggering And Applying A Software Trigger Signal - Basler Racer User Manual

Camera link cameras
Hide thumbs Also See for Racer:
Table of Contents

Advertisement

AW00118508000
6.1.4.2
Setting the Parameters Related to Software Line Start
Triggering and Applying a Software Trigger Signal
You can set all of the parameters needed to perform software line start triggering from within your
application software by using the Basler pylon API. The following code snippet illustrates using the
API to set the parameter values and execute the commands related to software line start triggering.
// Disable the acquisition line rate parameter (this will disable the camera's
// internal line rate control and allow you to control the line rate with
// software line start trigger signals)
camera.AcquisitionLineRateEnable.SetValue(false);
// Select the line start trigger
camera.TriggerSelector.SetValue(TriggerSelector_LineStart);
// Set the mode for the selected trigger
camera.TriggerMode.SetValue(TriggerMode_On);
// Set the source for the selected trigger
camera.TriggerSource.SetValue (TriggerSource_Software);
// Set for the timed exposure mode
camera.ExposureMode.SetValue(ExposureMode_Timed);
// Set the exposure time
camera.ExposureTimeAbs.SetValue(300);
while (! finished)
{
// Execute a trigger software command to apply a line start
// trigger signal to the camera
camera.TriggerSoftware.Execute();
// Retrieve acquired line here
}
// Note: as long as the Trigger Selector is set to LineStart, executing
// a Trigger Software command will apply a software line start trigger
// signal to the camera
The following code snippet illustrates using the API to check the acquisition status:
// Set the acquisition status selector
camera.AcquisitionStatusSelector.SetValue
(AcquisitionStatusSelector_LineTriggerWait);
// Read the acquisition status
bool IsWaitingForLineTrigger = camera.AcquisitionStatus.GetValue();
You can also use the Basler pylon Viewer application to easily set the parameters.
For more information about the pylon API and the pylon Viewer, see Section 3.1 on
Basler racer Camera Link
Acquisition Control
page
26.
62

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents