Syntax

 

 PXL_RETURN_CODE PxLGetCameraInfoEx(

 HANDLE            hCamera,

 CAMERA_INFO*      pCameraInfo,

 U32               informationSize); 

 

Description


This function returns version information about the PixeLINK hardware and firmware.  


  • hCamera is the camera handle.  This value is returned by PxLInitialize.
  • pCameraInfo is the pointer to CAMERA_INFO structure, which contains strings of information about PixeLINK hardware and firmware.  The CAMERA_INFO structure is defined in PixeLINKTypes.h.
  • informationSize is the size pCameraInfo; set to sizeof(CAMERA_INFO).  This field is used to allow growth to future variants of the CAMERA_INFO structure.


Click here to review feature IDs, the CAMERA_FEATURES structure, and feature flags.


Feature IDs, CAMERA_FEATURES, and FEATURE_ALL are defined in the file PixeLINKTypes.h 


Usage

 

 /* Make the request */

 CAMERA_INFO cameraInfo;

 PXL_RETURN_CODE rc = PxLGetCameraInfoEx (hCamera, &cameraInfo, sizeof(CAMERA_INFO));

 if (API_SUCCESS(rc))

 {

   printf("Camera Name : %s\n", cameraInfo.CameraName);

   printf("Model Name  : %s\n", cameraInfo.ModelName);

   printf("Description : %s\n", cameraInfo.Description);

   printf("Serial #    : %s\n", cameraInfo.SerialNumber);

   printf("Firmware    : %s\n", cameraInfo.FirmwareVersion);

   printf("FPGA        : %s\n", cameraInfo.FPGAVersion);

   printf("XML         : %s\n", cameraInfo.XMLVersion);

 }