| GigE-V Framework Programmer's Manual 2.10 Example C++ Code: Use a previously stored XML File and Manually Instantiate a GenICam Feature Node Map for the Camera |
![]() |
GEV_DEVICE_INTERFACE pCamera[MAX_CAMERAS] = {0};
GEVLIB_CONFIG_OPTIONS options
= {0};
int
numCamera = 0;
int camIndex
= 0;
GEV_CAMERA_HANDLE
handle = NULL;
GenApi::CNodeMapRef
Camera;
// Set manual XML handling mode for the library.
GevGetLibraryConfigOptions( &options);
options. manual_xml_handling = 1;
GevSetLibraryConfigOptions( &options);
// Get camera list.
GevGetCameraList(
pCamera, MAX_CAMERAS, &numCamera);
// Open the
camera you want
GevOpenCamera(
&pCamera[camIndex], GevExclusiveMode, &handle);
// Set up
the XML data from a previously saved file.{
char
xmlFileName[MAX_PATH] = ”TeledyneDALSA_Nano-IMX249_Mono_2M.xml”;
Camera._LoadXMLFromFile( xmlFileName );
}
//
Connect the camera to the feature map
GevConnectFeatures(
handle, (void *)&Camera);
< … GenApi access to features from here on
via Camera object … >
Related Topics