
I/O Control
96
Basler scout light
8.3
Checking the State of the I/O Lines
8.3.1
Checking the State of the Output Line
You can determine the current state of the output line. To check the state of the output line:
Use the Line Selector parameter to select output line 1.
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 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( );
For detailed information about using the pylon API, refer to the Basler pylon Programmer’s Guide
and API Reference.
You can also use the Basler pylon Viewer application to easily set the parameters.
For more information about the pylon Viewer, see Section 3.1 on
page 17
.
8.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. To
check the state of both lines:
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
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 27, 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
Summary of Contents for slA1000-30fm
Page 4: ......
Page 24: ...Software and Hardware Installation 16 Basler scout light...
Page 26: ...Tools for Changing Camera Parameters 18 Basler scout light...
Page 82: ...Image Acquisition Control 74 Basler scout light...
Page 106: ...I O Control 98 Basler scout light...
Page 140: ...Standard Features 132 Basler scout light...
Page 158: ...Troubleshooting and Support 150 Basler scout light...
Page 160: ...Revision History 152 Basler scout light...
Page 162: ...Feedback 154 Basler scout light...
Page 166: ...Index 158 Basler scout light...