User`s manual
AW00098504000 Image Acquisition Control
Basler ace Camera Link 113
Selecting the Frame Cycle Signal as the Source Signal for an Output Line Using
Basler Pylon
You can select the frame cycle signal as the source signal for the camera’s GPIO line (assuming it
is set as an output) or the CL Spare output line. Selecting a source signal for the output line is a
three step process:
Configure the GPIO line as an output (if you want to use the GPIO line).
Use the Line Selector to select the desired line.
Set the value of the Line Source Parameter to the frame cycle output signal.
You can set the Line Selector and the Line Source parameter value from within your application
software by using the Basler pylon API. The following code snippet illustrates using the API to set
the selector and the parameter value:
// Configure the GPIO line as an output
Camera.LineSelector.SetValue( LineSelector_Line1 );
Camera.LineMode.SetValue( LineMode_Output );
//Select the GPIO line
Camera.LineSelector.SetValue( LineSelector_Line1 );
//Set the source signal for the selected line
Camera.LineSource.SetValue( LineSource_FrameCycle );
//Select the CL Spare line
Camera.LineSelector.SetValue( LineSelector_ClSpare );
//Set the source signal for the selected line
Camera.LineSource.SetValue( LineSource_FrameCycle );
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 page 19.
For more detailed information about the camera’s GPIO line, see Section 5.7 on page 35.
Selecting the Frame Cycle Signal as the Source Signal for an Output Line Using
Direct Register Access
You can select the frame cycle signal as the source signal for the camera’s GPIO line (assuming it
is set as an output) or the CL Spare output line.
To select the frame cycle signal as the source signal for the GPIO line via direct register access:
Set the GPIO line to operate as an output by setting the value of the Line Mode Line 1 register
to Output.
Set the value of the Line Source Line 1 register to Frame Cycle.
To select the frame cycle signal as the source signal for the CL Spare line via direct register access:
Set the value of the Line Source CL Spare register to Frame Cycle.