Setting The Status Of A User Settable Output Line - Basler Camera User Manual

Usb 3.0 cameras
Table of Contents

Advertisement

AW00123402000

5.12.3 Setting the Status of a User Settable Output Line

As mentioned in the previous section, you can designate a camera's output line as "user settable"
by means of the UserOutput parameters. If you have designated an output line as user settable,
you can use the UserOuputValue parameter to set the status of the output line.
For each output line, a specific UserOutput parameter is available to set the line as "user settable":
UserOutput 1 is available for output line Line 2
UserOutput 2 is available for GPIO line Line 3 if the line is configured for output
UserOutput 3 is available for GPIO line Line 4 if the line is configured for output.
To set the status of a user settable output line:
1. Use the User Output Selector to select, for example, output line Line 2.
2. Set the value of the User Output Value parameter to true (1) or false (0). This will set the status
of the output line.
You can set the Output Selector and the User Output Value parameters from within your application
software by using the Basler pylon API. The following code snippet illustrates using the API to
designate an output line as user settable, set the status of the output line, and get informed about
its current status:
// Set output line Line 2 to user settable
camera.LineSelector.SetValue(LineSelector_Line2);
camera.LineSource.SetValue(LineSource_UserOutput1);
// Set the status of output line Line 2
camera.UserOutputSelector.SetValue(UserOutputSelector_UserOutput1);
camera.UserOutputValue.SetValue(true);
// Get informed about the current user output value setting for output line Line 2
bool b = camera.UserOutputValue.GetValue();
You can also use the Basler pylon Viewer application to easily set the parameters.
If you have the line inverter enabled on the output line and the line is designated
as user settable, the user setting sets the status of the line before the line inverter.
For more information about the pylon API and the pylon Viewer, see Section 3.1 on
Basler ace USB 3.0
Physical Interface
page
37.
73

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aca2000-165Aca2040-90Aca3800-14Aca4600-10

Table of Contents