Returns the date and time of the last successful calibration. The time returned is 24-hour (military) local time; for example, if the device was calibrated at 2:30 PM, this function returns 14 for hours and 30 for minutes.

Syntax

ViStatus _VI_FUNC niDCPower_GetExtCalLastDateAndTime(ViSession vi, ViInt32 *year, ViInt32 *month, ViInt32 *day, ViInt32 *hour, ViInt32 *minute)

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.

year[out]ViInt32 *

Returns the year the device was last calibrated.

month[out]ViInt32 *

Returns the month in which the device was last calibrated.

day[out]ViInt32 *

Returns the day on which the device was last calibrated.

hour[out]ViInt32 *

Returns the hour (in 24-hour time) in which the device was last calibrated.

minute[out]ViInt32 *

Returns the minute in which the device was last calibrated.

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