GEV_DEVICE_INTERFACE  pCamera[MAX_CAMERAS] = {0};

int numCamera = 0;

int camIndex = 0;

GEV_CAMERA_HANDLE handle = NULL;

 

// Get camera list.

GevGetCameraList( pCamera, MAX_CAMERAS, &numCamera);

 

// Open the camera you want

GevOpenCamera( &pCamera[camIndex], GevExclusiveMode, &handle);

 

 

// Set up feature access using the XML file retrieved from the camera

   GenApi::CNodeMapRef *Camera = \

             static_cast<GenApi::CNodeMapRef*>(GevGetFeatureNodeMap(handle));

 

    < … GenApi access to features from here on via pointer to Camera object … >

 

Related Topics

GenICam GenApi Feature Access through XML