User`s manual
Features
172 Basler ace Camera Link
Setting the Sequencer Using Basler Pylon
You can use the pylon API to set the parameters associated with the sequencer feature from within
your application software.
The following code snippet illustrates using the API to populate sequence parameter set 0 and
sequence parameter set 1 by storing the sequenceable parameter values from the active set in the
sequence sets:
// Disable the sequencer feature
Camera.SequenceEnable.SetValue( false );
// Set up the first acquisition scenario (lighting, object position, etc.) and
// adjust the camera parameters for the best image quality.
// Select sequence parameter set 0
Camera.SequenceSetSelector.SetValue( 0 );
// Store the sequenceable parameters from the active set in the selected sequence
// set
Camera.SequenceSetStore.Execute( );
// Set up the second acquisition scenario (lighting, object position, etc.) and
// adjust the camera parameters for the best image quality.
// Select sequence parameter set 1
Camera.SequenceSetSelector.SetValue( 1 );
// Store the sequenceable parameters from the active set in the selected sequence
// set
Camera.SequenceSetStore.Execute( );
The following code snippet illustrates using the API to set the source signal for Control A and
Control B to CC1 and CC2 respectively:
// Select Control A
Camera.SequenceControlSelector.SetValue( SequenceControlSelector_ControlA );
// Set the signal source for the selected input
Camera.SequenceControlSource.SetValue( SequenceControlSource_CC1 );
// Select Control B
Camera.SequenceControlSelector.SetValue( SequenceControlSelector_ControlB );
// Set the signal source for the selected input
Camera.SequenceControlSource.SetValue( SequenceControlSource_CC2 );
The following code snippet illustrates using the API to load the sequenceable parameter values
from sequence set 0 into the active set:
// Select sequence parameter set 0
Camera.SequenceSetSelector.SetValue( 0 );