
AW00123404000
Physical Interface
Basler ace USB 3.0
95
See Section 5.13.1 on
page 90
for details about the relation between line status and its determining
factors, e.g. electrical signal level, line inverter setting, and user output setting.
For information about checking and setting the status of output lines, see Section 5.12.3 on
page 84
and Section 5.12.4 on
page 85
.
1. Read the value of the LineStatusAll parameter to determine the current status of all I/O lines.
You can read the Line Status All 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:
// Getting informed about the line status of all I/O lines
int64_t i = camera.LineStatusAll.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 43
.
5.14.2
Checking the Status of an Individual I/O Line
The following example illustrates checking the line status of output line Line 2.
1. Use the Line Selector parameter to select, for example, the opto-isolated output line Line 2
(pin 4).
2. Read the value of the Line Status parameter to determine the current status of the line. "True"
means the line’s status is currently high and "false" means the line’s status is currently low.
You can set the Line Selector and read the Line Status 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 output line Line 2 and read the status
camera.LineSelector.SetValue(LineSelector_Line2);
bool b = camera.LineStatus.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 43
.
To check the status of all I/O lines with a single operation using the pylon API:
To check the status of an I/O line:
Summary of Contents for ace acA1920-155
Page 4: ......
Page 50: ...Specifications Requirements and Precautions AW00123404000 40 Basler ace USB 3 0...
Page 56: ...Camera Drivers and Tools for Changing Camera Parameters AW00123404000 46 Basler ace USB 3 0...
Page 106: ...Physical Interface AW00123404000 96 Basler ace USB 3 0...
Page 186: ...Image Acquisition Control AW00123404000 176 Basler ace USB 3 0...