ViStatus _VI_FUNC niSync_SetTimeReferenceIRIG (ViSession vi, ViInt32 irigType, ViConstString terminalName);
Sets the selected time reference of the specified device to IRIG. You must have an external IRIG source connected to the specified terminal for this function to operate.
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. |
irigType | ViInt32 | Specifies the type of IRIG output generated by the external IRIG source. Valid Values: NISYNC_VAL_IRIG_TYPE_IRIGB_DC NISYNC_VAL_IRIG_TYPE_IRIGB_AM |
terminalName | viConstString | An input string that specifies the terminal to which the IRIG input is connected. |