
I/O Control
AW00136902000
56
Basler dart BCON
Fig. 24: Bit Field of the LineStatusAll Parameter: Bit Numbers and Assignment of I/O Lines
The following table refers to the bit field shown in
and lists all possible LineStatusAll
parameter values (hexadecimal numbers) and related binary numbers.
1. Read the value of the LineStatusAll parameter to determine the current status of both I/O lines.
You can read the LineStatusAll parameter value from within your application software by using the
Basler pylon API. The following code snippet illustrates using the API to read the parameter value:
// Read the line status of both I/O lines. Because the GenICam interface does not
// support 32-bit words, the line status is reported as a 64-bit value.
int64_t i = camera.LineStatusAll.GetValue();
LineStatusAll Parameter Value
Binary Expression of the
LineStatusAll Parameter Value
Hexadecimal
Number
Binary Number
Line 1
(Output Line)
Line 2
(Output Line)
Line 3
(Input Line)
0x0
000
0
0
0
0x1
001
1
0
0
0x2
010
0
1
0
0x3
011
1
1
0
0x4
100
0
0
1
0x5
101
1
0
1
0x6
110
0
1
1
0x7
111
1
1
1
Table 1: LineStatusAll Parameter Values and Corresponding Binary Expressions
To check the status of all I/O lines with a single operation:
x x
x
Indicates line status for line 1
Indicates line status for line 2
Reserved
Bit 1
Bit 0
Bi
t 2
Indicates line status for line 3