niSync_GetExtCalLastDateAndTime

C Function Prototype

ViStatus niSync_GetExtCalLastDateAndTime (ViSession vi, ViInt32* year, ViInt32* month, ViInt32* day, ViInt32* hour, ViInt32* minute);

Purpose

Returns the date and time, in Greenwich Mean Time (GMT), of the specified device's last external calibration session. Use this function to determine if your device needs external calibration or plan ahead for a future external calibration session.

Note  
  • You do not need to enter a calibration password to use this function. You can invoke this function with an instrument handle created with either niSync_init or niSync_InitExtCal.
  • The date and time returned by this function updates every time you invoke niSync_CloseExtCal with the action parameter set to Commit, even if no calibration constants were changed.

Parameters

Name Type Description
vi ViSession This parameter specifies the session handle that you obtain from niSync_init or niSync_InitExtCal. The handle identifies a particular instrument session.

Default Value: None

year ViInt32 The year of the module's last external calibration session.

month ViInt32 The month of the module's last external calibration session.

Valid Values:
ValueMonth
1 January
2 February
3 March
4 April
5 May
6 June
7 July
8 August
9 September
10 October
11 November
12 December
day ViInt32 The day of the month when the module was last externally calibrated.
hour ViInt32 The hour, in GMT, of the module's last external calibration session.

Valid Values:
ValueHour (GMT)
0Midnight
11:00 a.m.
22:00 a.m.
33:00 a.m.
44:00 a.m.
55:00 a.m.
66:00 a.m.
77:00 a.m.
88:00 a.m.
99:00 a.m.
1010:00 a.m.
1111:00 a.m.
12Noon
131:00 p.m.
142:00 p.m.
153:00 p.m.
164:00 p.m.
175:00 p.m.
186:00 p.m.
197:00 p.m.
208:00 p.m.
219:00 p.m.
2210:00 p.m.
2311:00 p.m.
minute ViInt32 The minute, in GMT, of the module's last external calibration session.

Valid Values:
0-59

Return Values