Checking The State Of All Lines - Basler Racer User Manual

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

Advertisement

AW00118508000
Physical Interface
5.6.2

Checking the State of All Lines

Checking the State Using Basler pylon
You can determine the current state of all input and output lines by reading the value of the
LineStatusAll parameter. You can read the LineStatusAll parameter value from within your
application software by using the pylon API. The following code snippet illustrates using the API to
read the parameter value:
int64_t lineState = camera.LineStatusAll.GetValue();
The LineStatusAll parameter is a 32 bit value. As shown in Fig. 16, certain bits in the value are
associated with each I/O line, and each of these bits will indicate the state of the associated line. If
a bit is 0, it indicates that the state of the associated line is currently low. If a bit is 1, it indicates that
the state of the associated line is currently high.
Indicates CC4 state
Indicates CC3 state
Indicates CL Spare state
Indicates CC2 state
Indicates CC1 state
Fig. 16: Line Status All Parameter Bits
You can also use the Basler pylon Viewer application to easily read the parameter.
Checking the State Using Direct Register Access
To check the current state of all I/O lines via direct register access, read the value of the Line Status
All register. The register holds a 32 bit value that indicates the state of each I/O line. The mapping
of the bits in the value to I/O lines is similar to the mapping described above for access via Basler
pylon.
For more information about direct register access, see Section 3.2 on
page
28.
Basler racer Camera Link
53

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents