niDCPower_ReadCurrentTemperature
- Updated2025-10-06
- 1 minute(s) read
Returns the current onboard temperature, in degrees Celsius, of the device.
Syntax
ViStatus _VI_FUNC niDCPower_ReadCurrentTemperature(ViSession vi, ViReal64 *temperature)
Remarks
This function can only be used in a session initialized to a single instrument.
Parameters
| Name | Direction | Type | Description |
|---|---|---|---|
| vi | [in] | ViSession | Identifies a particular instrument session. vi is obtained from the niDCPower_InitExtCal or niDCPower_InitializeWithIndependentChannels function. |
| temperature | [out] | ViReal64 * | Returns the onboard temperature, in degrees Celsius, of the device. |
Returns
Reports the status of this operation. To obtain a text description of the status code, call niDCPower_error_message. To obtain additional information concerning the error condition, call niDCPower_GetError. The general meaning of the status code is as follows:
Value | Meaning |
|---|---|
0 | Success |
Positive Values | Warnings |
Negative Values | Errors |