niDCPower_GetSelfCalLastTemp
- Updated2025-10-06
- 1 minute(s) read
Returns the onboard temperature of the device, in degrees Celsius, during the oldest successful self-calibration from among the channels in the session.
Syntax
ViStatus _VI_FUNC niDCPower_GetSelfCalLastTemp(ViSession vi, ViReal64 *temperature)
Remarks
For example, if you have a session using channels 1 and 2, and you perform a self-calibration on channel 1 with a device temperature of 25 degrees Celsius at 2:00, and a self-calibration was performed on channel 2 at 27 degrees Celsius at 3:00 on the same day, this function returns 25 for the temperature parameter.
This function is not supported on all devices. Refer to Supported Functions by Device for more information about supported devices.
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 of the device, in degrees Celsius, during the oldest successful calibration. |
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 |