EasyManuals Logo

Basler acA2040-55 User Manual

Basler acA2040-55
373 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #118 background imageLoading...
Page #118 background image
Physical Interface AW00123409000
108 Basler ace USB 3.0
See Section 5.13.1 on page 103 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 98
and Section 5.12.4 on page 99.
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 page 61.
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 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 page 61.
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:

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Basler acA2040-55 and is the answer not in the manual?

Basler acA2040-55 Specifications

General IconGeneral
BrandBasler
ModelacA2040-55
CategoryDigital Camera
LanguageEnglish

Related product manuals