コンテンツにスキップ

Device Temperature#

Device Temperatureカメラ機能を使用すると、コアボード、センサー基板、カメラハウジングなど、カメラ内のさまざまな場所でのカメラ温度を確認できます。

Temperature State機能を使用して(使用可能な場合)、カメラの現在の内部温度状態を確認します。

機能を使用する#

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.

温度は、摂氏の浮動小数点値として提供されます。

サンプルコード#

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カメラ#
// 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
その他のカメラ#
// 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

pylon Viewerを使用して、パラメーターを簡単に設定することもできます。