Setting The State Of A User Settable Output Line - Basler Racer User Manual

Camera link cameras
Hide thumbs Also See for Racer:
Table of Contents

Advertisement

AW00118508000
5.5.2.4

Setting the State of a User Settable Output Line

As mentioned in the previous section, you can select "user output" as the signal source for the CL
Spare output line. For the output line that has "user output" as the signal source, you can use
camera parameters to set the state of the line.
If you have the invert function enabled on the output line that is designated as a
user output, the user setting sets the state of the line before the inverter.
Setting the State of a User Output Line
To set the state of a single user output line using Basler pylon:
1. Use the UserOutputSelector parameter to select CL Spare as the output line you want to set.
2. Set the value of the UserOutputValue parameter to True (high) or False (low). This will set the
state of the selected line.
You can set the UserOutputSelector and the UserOutputValue parameter values from within your
application software by using the pylon API. The following code snippet illustrates using the API to
select "user settable" as the source signal for output line 2 and how to set the state of the output line:
// Select "user output" as the signal source for the CL Spare output line
camera.LineSelector.SetValue(LineSelector_CLSpare);
camera.LineSource.SetValue(LineSource_UserOutput);
//Set the state of the CL Spare output line and then read the state
camera.UserOutputSelector.SetValue(UserOutputSelector_CLSpare);
camera.UserOutputValue.SetValue(true);
bool currentUserOutput2State = camera.UserOutputValue.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.
To set the state of a single user output line via direct register access:
Set the value of the User Output CL Spare register to 1 (True) or 0 (False) as desired.
For more information about direct register access, see Section 3.2 on
Basler racer Camera Link
Physical Interface
page
28.
51

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents