niSync_SetTimeReferenceGPS
- Updated2023-02-21
- 2 minute(s) read
C Function Prototype
ViStatus _VI_FUNC niSync_SetTimeReferenceGPS (ViSession vi);
Purpose
Sets the selected time reference of the specified device to GPS. This function is a nonblocking call that returns immediately regardless of the state of the time reference selected. Selecting the time reference is a system-wide (per device) configuration that persists after the session exits. The time reference is not reservable; the last call to select the time reference takes precedence.
If the selected time reference is not providing valid time information, the board time goes into free running mode, starting at the last known time and running at the last frequency that was applied.
![]() |
Note
|
Parameters
Name | Type | Description |
---|---|---|
vi | ViSession | The session handle that you obtain from niSync_init. The handle identifies a particular instrument session. |