DeviceTemperature
- Updated2025-10-14
- 1 minute(s) read
Gets the device temperature in degrees Celsius (°C).
Syntax
Namespace: NationalInstruments.ModularInstruments.NIRfsg
public double DeviceTemperature { get; }
Remarks
Returns a Double representing the device temperature.
If the NI-RFSG session is controlling multiple devices, this property returns the temperature of the primary RF device. The NI-RFSG session is opened using the primary RF device name.
Serial signals between the temperature sensor and the system control unit can modulate the signal being generated, thus causing phase spurs. After the device is thoroughly warmed up, its temperature varies only slightly (less than 1 °C) and slowly, so it is not necessary to constantly poll this temperature sensor.
For more information about device temperature, refer to the Thermal Management session in the NI RF Signal Generators Help.
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The DeviceTemperature property was accessed after the associated NIRfsg object was disposed. |