FG Camera Library  1.7.2.0 (2025-09-18)
Loading...
Searching...
No Matches
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
PlatformSensor
VisionCam XM / XM2
VisionSensor PV / PV2
VisionSensor PV3
-

Functions

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

Function Documentation

◆ FG_get_special_option()

UINT32 DLL_FG_API 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 DLL_FG_API 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_set_special_option("TriggerLine", 2);
@ FG_CAMERA_TYPE_X_X_IMAGO_Vxx_AUTO
IMAGO VisionCam/Sensor (automatic)
Definition FG_CameraInterface.h:54
@ FG_TRIGGER_MODE_HARDWARE
Hardware triggered mode.
Definition FG_CameraInterface.h:166
UINT32 DLL_FG_API FG_install_camera(enum eFG_CAMERA_TYPE camera_type,...)
Opens and initializes the camera.
Definition FG_CameraInterface.cpp:278
UINT32 DLL_FG_API FG_set_trigger_mode(enum eFG_TRIGGER_MODE trigger_mode)
Sets the trigger mode.
Definition FG_CameraInterface.cpp:849
UINT32 DLL_FG_API FG_set_special_option(const char *option, INT64 arg)
Configures a special camera property.
Definition FG_CameraInterface.cpp:972