User`s manual

AW00098504000 I/O Control
Basler ace Camera Link 55
Setting the Line Mode Using Basler Pylon
You can set the Line Mode parameter value from within your application software by using the pylon
API.
The following code snippet illustrates using the API to set the line mode:
// Configure the GPIO line as an output
Camera.LineSelector.SetValue( LineSelector_Line1 );
Camera.LineMode.SetValue( LineMode_Output );
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.
Setting the Line Mode Using Direct Register Access
To configure the GPIO line as an output via direct register access:
Set the value of the Line Mode Line 1 register to Output.
For more information about direct register access, see Section 3.2 on page 21.
6.2.3 Selecting the Source Signal for an Output Line
You can select any one of the camera’s standard output signals to act as the source signal for the
GPIO line (assuming it is set as an output) or for the CL Spare line. The camera has four standard
output signals available:
Acquisition Trigger Wait
Frame Trigger Wait
Exposure Active
Frame Cycle
You can also designate an output line as "user settable". If an output line is designated as user
settable, you can use the camera’s API to set the state of the line as desired.
For more information about the acquisition trigger and frame trigger wait signals, see Section 7.1
on page 65.
For more information about the exposure active signal, see Section 7.6.1 on page 99.
For more information about the frame cycle signal, see Section 7.6.4 on page 112.
For more information about setting the state of a user settable output line, see Section 6.2.4 on
page 57.
For more information about the electrical characteristics of the GPIO line when it is set as an output,
see Section 5.7.4 on page 41.