NI-Sync C API Reference

niSync_GetTime

  • Updated2023-02-21
  • 1 minute(s) read
 niSync_GetTime

C Function Prototype

ViStatus _VI_FUNC niSync_GetTime (ViSession vi, ViUInt32* timeSeconds, ViUInt32* timeNanoseconds, ViUInt16* timeFractionalNanoseconds);

Purpose

Returns the current board time of the specified device.

Note Note  NI-Sync supports only the time range between 1 January 1970 and 1 January 2100. Therefore, if the supported time range has ended, an error is returned.

Parameters

Name Type Description
vi ViSession The session handle that you obtain from niSync_init. The handle identifies a particular instrument session.
timeSeconds ViUInt32* The seconds portion of the board time.
timeNanoseconds ViUInt32* The nanoseconds portion of the board time.
timeFractionalNanoseconds ViUInt16* The fractional nanoseconds portion of the board time.

Return Values

Log in to get a better experience