User`s manual

AW00098504000 I/O Control
Basler ace Camera Link 63
6.4 Checking the Line Logic
Checking the Line Logic Using Basler Pylon
You can determine the type of line logic for each I/O line using Basler Pylon:
Use the Line Selector parameter to select a line.
Read the value of the Line Logic parameter to determine the type of line logic used by the line.
The parameter will indicate whether the logic is positive or negative.
You can set the Line Selector and read the Line Logic 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 read the parameter value:
// Select the GPIO line and read the line logic type
Camera.LineSelector.SetValue( LineSelector_Line1 );
LineLogicEnums lineLogicLine1 = Camera.LineLogic.GetValue( );
// Select the CLSpare line and read line logic type
Camera.LineSelector.SetValue( LineSelector_ClSpare );
LineLogicEnums lineLogicClSpare = Camera.LineLogic.GetValue( );
// Select the CC1 line and read the line logic type
Camera.LineSelector.SetValue( LineSelector_CC1 );
LineLogicEnums lineLogicCC1 = Camera.LineLogic.GetValue( );
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.
Checking the Line Logic Using Direct Register Access
To check the Line Logic of an I/O line via direct register access:
For the GPIO line, read the value of the Line Logic Line 1 register. The value will indicate 1
(positive) or 0 (negative).
For the CL Spare line, read the value of the Line Logic CL Spare register.
For the CC1 line, read the value of the Line Logic CC1 register.
For the CC2 line, read the value of the Line Logic CC2 register.
For the CC3 line, read the value of the Line Logic CC3 register.
For more information about direct register access, see Section 3.2 on page 21.