Returns the current onboard temperature, in degrees Celsius, of the device.

Syntax

ViStatus _VI_FUNC niDCPower_ReadCurrentTemperature(ViSession vi, ViReal64 *temperature)

Remarks

Note

This function can only be used in a session initialized to a single instrument.

Parameters

NameDirectionTypeDescription
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