The Device Temperature camera feature allows you to determine the camera temperature at various locations within the camera, e.g., core board, sensor board, or camera housing.
Use the Temperature State feature (if available) to determine the camera's current internal temperature state.
If the DeviceTemperatureSelector parameter is available, set the parameter to the desired location where the temperature should be measured, e.g., Sensor.
Get the value of the TemperatureAbs parameter.
The temperature is given as a floating-point value in degrees Celsius.
// Set the measuring location to sensorcamera.DeviceTemperatureSelector.SetValue(DeviceTemperatureSelector_Sensor);// Get the current device temperaturedoubled=camera.DeviceTemperature.GetValue();
INodeMap&nodemap=camera.GetNodeMap();// Set the measuring location to sensorCEnumParameter(nodemap,"DeviceTemperatureSelector").SetValue("Sensor");// Get the current device temperaturedoubled=CFloatParameter(nodemap,"DeviceTemperature").GetValue();
// Set the measuring location to sensorcamera.Parameters[PLCamera.DeviceTemperatureSelector].SetValue(PLCamera.DeviceTemperatureSelector.Sensor);// Get the current device temperaturedoubled=camera.Parameters[PLCamera.DeviceTemperature].GetValue();
/* Macro to check for errors */#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)GENAPIC_RESULTerrRes=GENAPI_E_OK;/* Return value of pylon methods */doubled=0;/* Set the measuring location to sensor */errRes=PylonDeviceFeatureFromString(hdev,"DeviceTemperatureSelector","Sensor");CHECK(errRes);/* Get the current device temperature */errRes=PylonDeviceGetFloatFeature(hdev,"DeviceTemperature",&d);CHECK(errRes);
# Set the measuring location to sensorcamera.DeviceTemperatureSelector.Value="Sensor"# Get the current device temperatured=camera.DeviceTemperature.Value
// Get the current device temperaturedoubled=camera.TemperatureAbs.GetValue();
INodeMap&nodemap=camera.GetNodeMap();// Get the current device temperaturedoubled=CFloatParameter(nodemap,"TemperatureAbs").GetValue();
// Get the current device temperaturedoubled=camera.Parameters[PLCamera.TemperatureAbs].GetValue();
/* Macro to check for errors */#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)GENAPIC_RESULTerrRes=GENAPI_E_OK;/* Return value of pylon methods */doubled=0;/* Get the current device temperature */errRes=PylonDeviceGetFloatFeature(hdev,"TemperatureAbs",&d);CHECK(errRes);
# Get the current device temperatured=camera.TemperatureAbs.Value
// Get the current device temperaturedoubled=camera.DeviceTemperature.GetValue();
INodeMap&nodemap=camera.GetNodeMap();// Get the current device temperaturedoubled=CFloatParameter(nodemap,"DeviceTemperature").GetValue();
// Get the current device temperaturedoubled=camera.Parameters[PLCamera.DeviceTemperature].GetValue();
/* Macro to check for errors */#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)GENAPIC_RESULTerrRes=GENAPI_E_OK;/* Return value of pylon methods */doubled=0;/* Get the current device temperature */errRes=PylonDeviceGetFloatFeature(hdev,"DeviceTemperature",&d);CHECK(errRes);
# Get the current device temperatured=camera.DeviceTemperature.Value