FG Camera Library  1.6.0.0 (2024-12-03)
Configure special features

Detailed Description

Functions for configuring camera or sensor specific parameters.

Hardware specific features can be accessed using the generic functions FG_set_special_option() and FG_get_special_option(). The desired feature is specified using a property name. Most properties have an integer value which can be read and written.

Platform and sensor specific properties are described on the following pages:

Special feature pages
Platform Sensor
VisionCam XM / LM
VisionSensor PV
-

Functions

UINT32 DLL_FG_API FG_get_special_option (const char *option, INT64 *result)
 Returns a special camera property value. More...
 
UINT32 DLL_FG_API FG_set_special_option (const char *option, INT64 arg)
 Configures a special camera property. More...
 

Function Documentation

◆ FG_get_special_option()

UINT32 FG_get_special_option ( const char *  option,
INT64 *  result 
)

Returns a special camera property value.

Parameters
optionProperty name
resultPointer for stroring the property value
Returns
FG_ERROR_CODE_NoError (0) for success, other values indicate an error (see eFG_ERROR_CODE)

◆ FG_set_special_option()

UINT32 FG_set_special_option ( const char *  option,
INT64  arg 
)

Configures a special camera property.

Parameters
optionProperty name
argProperty value
Returns
FG_ERROR_CODE_NoError (0) for success, other values indicate an error (see eFG_ERROR_CODE)
Example:
The following example configures the VisionCam XM to use the Multiplexer output 2 as trigger signal.
FG_TRIGGER_MODE_HARDWARE
@ FG_TRIGGER_MODE_HARDWARE
Hardware triggered mode.
Definition: FG_CameraInterface.h:147
FG_install_camera
UINT32 DLL_FG_API FG_install_camera(enum eFG_CAMERA_TYPE camera_type)
Opens and initializes the camera.
Definition: FG_CameraInterface.cpp:286
FG_CAMERA_TYPE_X_X_IMAGO_Vxx_AUTO
@ FG_CAMERA_TYPE_X_X_IMAGO_Vxx_AUTO
IMAGO VisionCam/Sensor (automatic)
Definition: FG_CameraInterface.h:54
FG_set_special_option
UINT32 DLL_FG_API FG_set_special_option(const char *option, INT64 arg)
Configures a special camera property.
Definition: FG_CameraInterface.cpp:973
FG_set_trigger_mode
UINT32 DLL_FG_API FG_set_trigger_mode(enum eFG_TRIGGER_MODE trigger_mode)
Sets the trigger mode.
Definition: FG_CameraInterface.cpp:850