
Physical Interface AW00118501000
42 Basler racer Camera Link
5.8 Checking the Line Logic of the I/O
Lines
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 CC1 line and read the line logic type
Camera.LineSelector.SetValue( LineSelector_CC1 );
LineLogicEnums lineLogicCC1 = Camera.LineLogic.GetValue( );
// Select the CLSpare line and read line logic type
Camera.LineSelector.SetValue( LineSelector_ClSpare );
LineLogicEnums lineLogicClSpare = 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 15.
Checking the Line Logic Using Direct Register Access
To check the Line Logic of an I/O line via direct register access:
For the CC1 line, read the value of the Line Logic CC1 register. The value will indicate 1
(positive) or 0 (negative).
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 the CC4 line, read the value of the Line Logic CC4 register.
For the CL Spare line, read the value of the Line Logic CL Spare register.
For more information about direct register access, see Section 3.2 on page 16.
Comentários a estes Manuais