Setting The Status Of An Individual User Settable Output Line - Basler acA2040-55 User Manual

Basler ace
Table of Contents

Advertisement

Physical Interface
5.12.3 Setting the Status of an Individual 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 UserOutputValue 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 UserOutputValue parameter to true (1) or false (0). This will set the status
of the output line.
You can set the OutputSelector and the UserOutputValue 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 an output line and the line is designated
as user settable, the user setting initially sets the status of the line which is then
inverted by the line inverter.
For more information about the pylon API and the pylon Viewer, see Section 3.1 on
98
AW00123409000
page
61.
Basler ace USB 3.0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aca2440-35Aca2040-120Aca2440-75

Table of Contents