Checking The State Of The I/O Lines; Checking The State Of A Single Line - Basler Racer User Manual

Camera link cameras
Hide thumbs Also See for Racer:
Table of Contents

Advertisement

AW00118508000
5.6

Checking the State of the I/O Lines

5.6.1

Checking the State of a Single Line

Checking the State of an I/O Line
To check the state of a line using Basler pylon:
1. Use the LineSelector parameter to select a line.
2. Read the value of the LineStatus parameter to determine the current state of the line. A value
of True means the line's state is currently high and a value of False means the line's state is
currently low.
You can set the LineSelector parameter and read the LineStatus parameter value from within your
application software by using the Basler pylon API. The following code snippet illustrates using the
API to set and read the parameter values:
// Select the CC1 line and read the state
camera.LineSelector.SetValue(LineSelector_CC1);
bool CC1 = camera.LineStatus.GetValue();
// Select the CLSpare line and read the state
camera.LineSelector.SetValue(LineSelector_ClSpare);
bool ClSpareState = camera.LineStatus.GetValue();
For detailed information about using the pylon API, refer to the Basler pylon Programmer's Guide
and API Reference.
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
To check the state of a line via direct register access:
For the CC1 line, read the value of the Line Status CC1 register. The value will indicate 1 (true)
or 0 (false).
For the CC2 line, read the value of the Line Status CC2 register.
For the CC3 line, read the value of the Line Status CC3 register.
For the CC4 line, read the value of the Line Status CC4 register.
For the CL Spare line, read the value of the Line Status CL Spare register.
For more information about direct register access, see Section 3.2 on
Basler racer Camera Link
Physical Interface
page
26.
page
28.
52

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents