Setting The Acquisition Start Trigger Mode And Related Parameters - Basler ace acA640-90gm User Manual

Gige cameras
Table of Contents

Advertisement

7.3.3
Setting The Acquisition Start Trigger Mode and
Related Parameters
You can set the Trigger Mode and Trigger Source parameters for the acquisition start trigger and
also set the Acquisition Frame Count parameter value from within your application software by
using the Basler pylon API.
The following code snippet illustrates using the API to set the Trigger Mode to on, the Trigger
Source to software, and the Acquisition Frame Count to 5:
// Set the acquisition mode to continuous(the acquisition mode must
// be set to continuous when acquisition start triggering is on)
Camera.AcquisitionMode.SetValue( AcquisitionMode_Continuous );
// 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_Software );
// Set the acquisition frame count
Camera.AcquisitionFrameCount.SetValue( 5 );
The following code snippet illustrates using the API to set the Trigger Mode to on, the Trigger
Source to line 1, the Trigger Activation to rising edge, and the Acquisition Frame Count to 5:
// Set the acquisition mode to continuous(the acquisition mode must
// be set to continuous when acquisition start triggering is on)
Camera.AcquisitionMode.SetValue( AcquisitionMode_Continuous );
// 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 activation mode for the selected trigger to rising edge
Camera.TriggerActivation.SetValue( TriggerActivation_RisingEdge );
// Set the acquisition frame count
Camera.AcquisitionFrameCount.SetValue( 5 );
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 on
Basler ace GigE
Image Acquisition Control
page
27.
71

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ace aca640-90gcAce aca640-100gmAce aca640-100gc

Table of Contents