Please enable JavaScript to view this site.

uEye .NET Manual 4.97

The Parameter class provides methods for saving and loading camera parameter sets. Only camera-specific ini files can be loaded.

hint_info

Due to the changed behavior of the USB 3 uEye CP Rev. 2 from driver version 4.80 on, the internal image memory can only be enabled or disabled if the camera is closed. Therefore, parameter files created with a previous driver version, needs to be reviewed.

hint_info

When loading an INI file, make sure that the image size (AOI) and color depth parameters in the INI file match those in the allocated memory. Otherwise, display errors may occur.

Methods

Method

Description

Clear

Deletes the camera parameter set in the non-volatile camera memory.

GetNumSupported

Returns the number of supported parameter sets in the non-volatile camera memory.

GetSupported

Returns if a camera parameter set in the non-volatile camera memory is supported.

Load

Loads a camera parameter set from the non-volatile camera memory or from a file.

ResetToDefault

Resets all parameters to the camera-specific defaults as specified by the driver.

Save

Saves a camera parameter set into the non-volatile camera memory or into a file.

Example

// Deletes the camera parameter set in the non-volatile camera memory
hCam.Parameter.Clear();
 
// Returns the number of supported parameter sets in the non-volatile camera memory
uint num;
hCam.Parameter.GetNumSupported(out num);
 
// Returns if a camera parameter set in the non-volatile camera memory is supported
bool supported;
hCam.Parameter.GetSupported(out supported);
 
// Parameter set is loaded from the non-volatile camera memory
hCam.Parameter.Load();
 
// Parameter set is loaded from the file specified in strFilename
hCam.Parameter.Load("c:\\parameterfile.ini");
 
// Resets all parameters to the camera - specific defaults as specified by the driver
hCam.Parameter.ResetToDefault();
 
// Parameter set is saved into the non-volatile camera memory
hCam.Parameter.Save();
 
// Parameter set is saved into the file specified in strFilename
hCam.Parameter.Save("c:\\parameterfile.ini");