Setting The Parameters Related To Hardware Acquisition Start Triggering And Applying A Hardware Trigger Signal - Basler SCOUT LIGHT User Manual

Gige vision cameras
Hide thumbs Also See for SCOUT LIGHT:
Table of Contents

Advertisement

AW00104701000
9.6.3.4
Setting the Parameters Related to Hardware Acquisition Start
Triggering and Applying a Hardware Trigger Signal
You can set all of the parameters needed to perform hardware acquisition start triggering from within
your application by using the Basler pylon API. The following code snippet illustrates using the API
to set the camera for single frame acquisition mode.
We will use the timed exposure mode with input line 1 as the trigger source and with rising edge
triggering. In this example, we will use a trigger delay:
// Set the acquisition mode to single frame
Camera.AcquisitionMode.SetValue( AcquisitionMode_SingleFrame );
// Select the acquisition start trigger
Camera.TriggerSelector.SetValue( TriggerSelector_AcquisitionStart );
// Set the mode for the selected trigger
Camera.TriggerMode.SetValue( TriggerMode_On );
// Set the source for the selected trigger
Camera.TriggerSource.SetValue ( TriggerSource_Line1 );
// Set the trigger activation mode to rising edge
Camera.TriggerActivation.SetValue( TriggerActivation_RisingEdge );
// Set the trigger delay for one millisecond (1000us == 1ms == 0.001s)
double TriggerDelay_us = 1000.0;
Camera.TriggerDelayAbs.SetValue( TriggerDelay_us );
// Set for the timed exposure mode
Camera.ExposureMode.SetValue( ExposureMode_Timed );
// Set the exposure time
Camera.ExposureTimeAbs.SetValue( 3000 );
// Execute an acquisition start command to prepare for frame acquisition
Camera.AcquisitionStart.Execute( );
// Frame acquisition will start when the externally generated
// acquisition start trigger signal (ExASTrig signal)goes high
The following code snippet illustrates using the API to set the parameter values and execute the
commands related to hardware acquisition start triggering with the camera set for continuous frame
acquisition mode.
We will use the trigger width exposure mode with input line 1 as the trigger source and with rising
edge triggering:
// Set the acquisition mode to continuous frame
Camera.AcquisitionMode.SetValue( AcquisitionMode_Continuous );
// Disable the acquisition frame rate parameter (this will disable the camera's
// internal frame rate control and allow you to control the frame rate with
// external acquisition start trigger signals)
Camera.AcquisitionFrameRateEnable.SetValue( false );
// Select the acquisition start trigger
Camera.TriggerSelector.SetValue( TriggerSelector_AcquisitionStart );
// Set the mode for the selected trigger
Camera.TriggerMode.SetValue( TriggerMode_On );
Basler scout light GigE
Image Acquisition Control
119

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SCOUT LIGHT and is the answer not in the manual?

Questions and answers

Table of Contents