ViStatus _VI_FUNC niSync_SetTimeReferenceFreeRunning (ViSession vi);
Sets the selected time reference of the specified device to Free Running, where its start time and frequency are not tied to any time reference. The board time atomically increments at the last applied frequency. Use this instance if you do not have a strong connection to a network or a time reference. Your device will automatically enter free running mode if the selected time reference does not provide valid time information.
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
|
Name | Type | Description |
---|---|---|
vi | ViSession | The session handle that you obtain from niSync_init. The handle identifies a particular instrument session. |