User`s manual

AW00098504000 I/O Control
Basler ace Camera Link 53
6.1.5 Setting an Input Line for Invert
You can set CC1, CC2, CC3, and the GPIO line to invert or not to invert the incoming electrical
signal.
Setting an Input Line for Invert Using Basler Pylon
To set the invert function on an input line:
Use the Line Selector to select CC1, CC2, CC3, or Line1 (Line1 designates the GPIO line).
Set the value of the Line Inverter parameter to true to enable inversion on the selected line or
to false to disable inversion.
You can set the Line Selector and the Line Inverter parameter value from within your application
software by using the 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 );
// Enable the inverter on the selected line
Camera.LineInverter.SetValue( true );
// Select the CC1 line
Camera.LineSelector.SetValue( LineSelector_CC1 );
// Disable the inverter on the selected line
Camera.LineInverter.SetValue( false );
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 an Input Line for Invert Using Direct Register Access
To set the invert function on an input line via direct register access:
For the GPIO line, set the value of the Line Inverter Line 1 register to 0 (false) or 1 (true) as
desired.
For the CC1 line, set the value of the Line Inverter CC1 register.
For the CC2 line, set the value of the Line Inverter CC2 register.
For the CC3 line, set the value of the Line Inverter CC2 register.
For more information about direct register access, see Section 3.2 on page 21.