User`s manual

I/O Control AW00098504000
62 Basler ace Camera Link
6.3.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 Line
Status All parameter. You can read the Line Status All 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 Line Status All parameter is a 32 bit value. As shown in Figure 19, certain bits in the value are
associated with each I/O line, and each of these bits will indicate the state of the assocaited 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.
You can also use the Basler pylon Viewer application to easily read the parameter.
For more information about the pylon API and the pylon Viewer, see Section 3.1 on page 19.
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 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 21.
Indicates CL Spare state
Indicates CC2 state
Indicates CC3 state
Indicates line 1 (GPIO) state
Indicates CC1 state
Fig. 19: Line Status All Parameter Bits