User Defined Values - Basler Racer User Manual

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

Advertisement

AW00118508000

8.13 User Defined Values

The camera can store two "user defined values". These two values are 32 bit signed integer values
that you can set and read as desired. They simply serve as convenient storage locations for the
camera user and have no impact on the operation of the camera.
The two values are designated as Value 1 and Value 2.
Setting User Defined Values
Setting a user defined value using Basler pylon is a two step process:
Set the UserDefinedValueSelector parameter to Value 1 or Value 2.
Set the UserDefinedValue parameter to the desired value for the selected value.
You can use the pylon API to set the UserDefinedValueSelector and the UserDefinedValue
parameter values from within your application software. The following code snippet illustrates using
the API to set the parameter values:
// Set user defined value 1
camera.UserDefinedValueSelector.SetValue(UserDefinedValueSelector_Value1);
camera.UserDefinedValue.SetValue(1000);
// Set user defined value 2
camera.UserDefinedValueSelector.SetValue(UserDefinedValueSelector_Value2);
camera.UserDefinedValue.SetValue(2000);
// Get the value of user defined value 1
camera.UserDefinedValueSelector.SetValue(UserDefinedValueSelector_Value1);
int64_t UserValue1 = camera.UserDefinedValue.GetValue();
You can also use the Basler pylon Viewer application to easily set the parameters.
For more information about the Basler pylon API and the pylon Viewer, see Section 3.1.1 on
page
27.
To set the user defined values via direct register access:
Set the value of the User Defined Value 1 register or the User Defined Value 2 register as
desired.
For more information about direct register access, see Section 3.2 on
Basler racer Camera Link
Features
page
28.
142

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents