User`s manual
I/O Control  AW00098504000
56 Basler ace Camera Link
Selecting the Source Signal Using Basler Pylon
To select a camera output signal as the source signal for the GPIO line (assuming it is set as an 
output) or for the CL Spare line, or to designate a line as user settable:
 Use the Line Selector to select the line.
 Set the value of the Line Source Parameter to one of the available output signals or to user 
settable. This will set the source signal for the output line.
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:
// Select the GPIO line
Camera.LineSelector.SetValue( LineSelector_Line1 );
// Set the source signal for the selected line
Camera.LineSource.SetValue( LineSource_ExposureActive );
// Select the CL Spare line
Camera.LineSelector.SetValue( LineSelector_ClSpare );
// Set the source signal for the selected line
Camera.LineSource.SetValue( LineSource_UserOutput );
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.
Selecting the Source Signal Using Direct Register Access
To select a camera output signal as the source signal for the GPIO line (assuming that it is set as 
an output) or to designate the line as user settable via direct register access:
 Set the value of the Line Source Line 1 register to Acquisition Trigger Wait, Frame Trigger 
Wait, Exposure Active, Frame Cycle, or User as desired.
To select a camera output signal as the source signal for the CL Spare line or to designate the line 
as user settable via direct register access:
 Set the value of the Line Source Line CL Spare register to Acquisition Trigger Wait, Frame 
Trigger Wait, Exposure Active, Frame Cycle, or User as desired.
For more information about direct register access, see Section 3.2 on page 21.










