Frequently Asked Question

How to set/get Camera parameters?
Last Updated 2 years ago

Cameras may differ from one another based on their XML file.
Camera parameters setters and getters described in paragraphs "9 Camera Parameters - Setters" and "10 Camera Parameters - Getters" of the Vision Point API Data Book

The camera parameter access is done using the GenIcam name (which may be different than the display name represented in GUI). The GenIcam name can be found using one of the following methods:

1. Find the information about the parameter in the camera documentation
2. Extract the camera XML file and find the information about the parameter
3. In Vision Point 2022.1 and later, the "Code samples" feature will show what function should used. More information can be found in section "5.8 Code Sample" of the Vision Point App User Guide For Acquisition Mode

Example:
How to set/get "Exposure Time" camera parameter (depends on the camera XML).

// Getting camera parameter type
KYFG_GetCameraValueType(cameraHandle, "ExposureTime")

// Getting value of 'ExposureTime'
KYFG_GetCameraValueFloat(cameraHandle, "ExposureTime");

// Setting value of 'ExposureTime'
KYFG_SetCameraValueFloat(cameraHandle, "ExposureTime", 8997.5);

Please Wait!

Please wait... it will take a second!