Setting The State Of User Settable Output Lines - Basler Pioneer User Manual

Gige vision cameras
Table of Contents

Advertisement

I/O Control
For more information about working with the timer output signals, see Section 12.2.4 on
For more information about the exposure active signal, see Section 10.7 on
For more information about the trigger ready signal, see Section 10.6 on

12.2.2 Setting the State of User Settable Output Lines

As mentioned in the previous section, you can designate one or more of the user output lines as
"user settable". Once you have designated an output line as user settable, you can use camera
parameters to set the state of the line.
Setting the State of a Single User Settable Output Line
To set the state of a single user settable output line:
Use the User Output Selector to select the output line you want to set. For example, if you
have designated output line 3 as user settable, you would select user settable output 3.
Set the value of the User Output Value parameter to true (high) or false (low). This will set the
state of the selected line.
You can set the Output Selector and the User Output Value parameter from within your application
software by using the pylon API. The following code snippet illustrates using the API to designate
output line 3 as user settable and setting the state of the output line:
Camera.LineSelector.SetValue( LineSelector_Out3 );
Camera.LineSource.SetValue( LineSource_UserOutput );
Camera.UserOutputSelector.SetValue( UserOutputSelector_UserOutput3 );
Camera.UserOutputValue.SetValue( true );
bool currentUserOutput3State = 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.
Setting the State of Multiple User Settable Output Lines
The User Output Value All parameter is a 32 bit value. As shown in Figure 42, the lowest four bits
of the parameter value will set the state of the user settable outputs. If a bit is 0, it will set the state
of the associated output to low. If a bit is high, it will set the state of the associated port to high.
Fig. 42: User Output Value All Parameter Bits
168
Not used
page
134.
page
132.
Sets user output 4 state
Sets user output 3 state
Sets user output 2 state
Sets user output 1 state
LSB
Basler pioneer
page 170

Advertisement

Table of Contents
loading

Table of Contents