Skip to content

Device Temperature#

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.

Using the Feature#

Determining the Device Temperature#

To determine the device temperature:

  1. If the DeviceTemperatureSelector parameter is available, set the parameter to the desired location where the temperature should be measured, e.g., Sensor.
  2. Get the value of the DeviceTemperature parameter.

The temperature is given as a floating-point value in degrees Celsius.

Sample Code#

ace 2, boost, and dart R Cameras#
// Set the measuring location to sensor
camera.DeviceTemperatureSelector.SetValue(DeviceTemperatureSelector_Sensor);
// Get the current device temperature
double d = camera.DeviceTemperature.GetValue();
INodeMap& nodemap = camera.GetNodeMap();
// Set the measuring location to sensor
CEnumParameter(nodemap, "DeviceTemperatureSelector").SetValue("Sensor");
// Get the current device temperature
double d = CFloatParameter(nodemap, "DeviceTemperature").GetValue();
// Set the measuring location to sensor
camera.Parameters[PLCamera.DeviceTemperatureSelector].SetValue(PLCamera.DeviceTemperatureSelector.Sensor);
// Get the current device temperature
double d = camera.Parameters[PLCamera.DeviceTemperature].GetValue();
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
double d = 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 sensor
camera.DeviceTemperatureSelector.Value = "Sensor"
# Get the current device temperature
d = camera.DeviceTemperature.Value
ace Classic/U/L GigE Cameras#
// Get the current device temperature
double d = camera.TemperatureAbs.GetValue();
INodeMap& nodemap = camera.GetNodeMap();
// Get the current device temperature
double d = CFloatParameter(nodemap, "TemperatureAbs").GetValue();
// Get the current device temperature
double d = camera.Parameters[PLCamera.TemperatureAbs].GetValue();
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
double d = 0;
/* Get the current device temperature */
errRes = PylonDeviceGetFloatFeature(hdev, "TemperatureAbs", &d);
CHECK(errRes);
# Get the current device temperature
d = camera.TemperatureAbs.Value
Other Cameras#
// Get the current device temperature
double d = camera.DeviceTemperature.GetValue();
INodeMap& nodemap = camera.GetNodeMap();
// Get the current device temperature
double d = CFloatParameter(nodemap, "DeviceTemperature").GetValue();
// Get the current device temperature
double d = camera.Parameters[PLCamera.DeviceTemperature].GetValue();
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
double d = 0;
/* Get the current device temperature */
errRes = PylonDeviceGetFloatFeature(hdev, "DeviceTemperature", &d);
CHECK(errRes);
# Get the current device temperature
d = camera.DeviceTemperature.Value

You can also use the pylon Viewer to easily set the parameters.