NI-DCPower C Function Reference Help

niDCPower_GetSelfCalLastTemp

  • Updated2023-04-15
  • 2 minute(s) read

ViStatus niDCPower_GetSelfCalLastTemp(ViSession vi, ViReal64 *temperature);

Purpose

Returns the onboard temperature of the device, in degrees Celsius, during the oldest successful self-calibration from among the channels in the session.

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.

Note Note  This function is not supported on all devices. Refer to Supported Functions by Device for more information about supported devices.
Note Note  This function can only be used in a session initialized to a single instrument.

Parameters

Input
Name Type Description
vi ViSession Identifies a particular instrument session. vi is obtained from the niDCPower_InitExtCal or niDCPower_InitializeWithIndependentChannels function.
Output
Name Type Description
temperature ViReal64* Returns the onboard temperature of the device, in degrees Celsius, during the oldest successful calibration.

Return Value

Name Type Description
StatusViStatusReports the status of this operation. To obtain a text description of the status code, call the niDCPower_error_message function. To obtain additional information concerning the error condition, call the niDCPower_GetError function.

Log in to get a better experience