User`s manual

Image Acquisition Control
68 Basler aviator Camera Link
5.3.2.3 Setting the Parameters Related to Software Frame Start
Triggering and Applying a Software Trigger Signal
Setting the Parameters and Applying the Signal Using Basler pylon
You can set all of the parameters needed to perform software frame start triggering from within your
application software by using the pylon API. The following code snippet illustrates using the API to
set the parameter values and execute the commands related to software frame start triggering. In
this example, the acquisition start trigger mode will be set to off:
// Select the acquisition start trigger
Camera.TriggerSelector.SetValue( TriggerSelector_AcquisitionStart );
// Set the mode for the selected trigger
Camera.TriggerMode.SetValue( TriggerMode_Off );
// 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
// software frame start trigger signals)
Camera.AcquisitionFrameRateEnable.SetValue( false );
// Select the frame start trigger
Camera.TriggerSelector.SetValue( TriggerSelector_FrameStart );
// 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( 3000 );
while ( ! finished )
{
// Execute a trigger software command to apply a frame start
// trigger signal to the camera
Camera.TriggerSoftware.Execute( );
// Retrieve acquired frame here
}
// Note: as long as the Trigger Selector is set to FrameStart, executing
// a Trigger Software command will apply a software frame 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_FrameTriggerWait );
// Read the acquisition status
bool IsWaitingForFrameTrigger = Camera.AcquisitionStatus.GetValue();