GEV_DEVICE_INTERFACE  pCamera[MAX_CAMERAS] = {0};

int numCamera = 0;

int camIndex = 0;

GEV_CAMERA_HANDLE handle = NULL;

UINT64 payload_size;

UINT32 pixel_format;

 

// Get camera list.

GevGetCameraList( pCamera, MAX_CAMERAS, &numCamera);

 

// Open the camera you want

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

 

// Get the payload parameters (for buffer memory allocation)

GevGetPayloadParameters( handle,  &payload_size, &pixel_format);

 

// Get GenICam FeatureNodeMap object and access the camera features.

GenApi::CNodeMapRef *Camera = \

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

 

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

 


 

Related Topics

Camera GenICam Feature Access