EasyManuals Logo

Basler GigE SERIES User Manual

Basler GigE SERIES
376 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 #92 background imageLoading...
Page #92 background image
I/O Control AW00089317000
82 Basler ace GigE
6.3 Checking the State of the I/O Lines
6.3.1 Checking the State of the Output Line
You can determine the current state of the output line.
1. Use the Line Selector parameter to select output line 1.
2. Read the value of the Line Status parameter to determine the current state of the line. A value
of true means the line’s state is currently high and a value of false means the line’s state 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 1 and read the state
Camera.LineSelector.SetValue( LineSelector_Out1 );
bool outputLine1State = 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.1 on page 45.
6.3.2 Checking the State of All Lines
You can determine the current state of the input line and the output line with a single operation.
1. Read 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
Basler 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 49, certain bits in the value are
associated with each line and the bits will indicate the state of the lines. 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.
To check the state of the output line:
To check the state of both lines:
Indicates output line 1 state
Indicates input line 1 state
Fig. 49: Line Status All Parameter Bits

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Basler GigE SERIES and is the answer not in the manual?

Basler GigE SERIES Specifications

General IconGeneral
InterfaceGigE
Lens MountC-Mount, CS-Mount
SensorCMOS
MountC-mount, CS-mount
Power SupplyPower over Ethernet (PoE)
DimensionsVaries by model
WeightVaries by model
Operating TemperatureVaries by model

Related product manuals