Checking The Status Of An Individual I/O Line - Basler acA2040-55 User Manual

Basler ace
Table of Contents

Advertisement

Physical Interface
See Section 5.13.1 on
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
and Section 5.12.4 on
To check the status of all I/O lines with a single operation using the pylon API:
1. Read the value of the LineStatusAll parameter to determine the current status of all 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:
// 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

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.
To check the status of an I/O line:
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 LineSelector and read the LineStatus parameter values 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
108
page 103
for details about the relation between line status and its
page
99.
AW00123409000
page 98
page
61.
page
61.
Basler ace USB 3.0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aca2440-35Aca2040-120Aca2440-75

Table of Contents