Basler raL2048-48gm User Manual Page 80

  • Download
  • Add to my manuals
  • Print
  • Page
    / 238
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 79
Physical Interface AW00118302000
70 Basler racer GigE
7.6.2.6 Setting the State of User Settable Output Lines
As mentioned in the previous section, you can select "user output" as the signal source for an output
line. For an output line that has "user output" as the signal source, you can use camera parameters
to set the state of the line.
Setting the State of a Single User Output Line
To set the state of a single user output line:
Use the User Output Selector to select the output line you want to set. For example, if you
have designated output line 2 as a user output, you would select output line 2.
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 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 output line 2 signal source
Camera.LineSelector.SetValue( LineSelector_Out2 );
Camera.LineSource.SetValue( LineSource_UserOutput );
//Set the state of output line 2 and then read the state
Camera.UserOutputSelector.SetValue( UserOutputSelector_UserOutput2 );
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.
Setting the State of Multiple User Output Lines
If you have designated both of the cameras output lines as user outputs, you can use the User
Output Value All parameter to set the state of both outputs.
The User Output Value All parameter is a 32 bit value. As shown in Fig. 23, the lowest two bits of
the parameter value will set the state of the user 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.
Page view 79
1 2 ... 75 76 77 78 79 80 81 82 83 84 85 ... 237 238

Comments to this Manuals

No comments