Skip to content

NI TClk Advanced Functions

ni-siray edited this page May 20, 2021 · 4 revisions

Advanced Functions

niTClk_IsDone

Specific Function

ViStatus niTClk_IsDone (ViUInt32 sessionCount, ViSession sessions [], ViBoolean *done);

Purpose

Reports the progress of the acquisitions and/or generations, corresponding to the sessions.

Parameters

Input
Name Type Description
sessionCount ViUInt32 Specifies the number of elements in the sessions array.
sessions ViSession [] Specifies the array of session references that are being synchronized. Obtain session references from the instrument driver by using the Get Session Reference function, where is the name of the instrument driver. Example: niScope_GetSessionReference.
Output
done ViBoolean* Indicates whether the operation is done. The operation is done when each session has completed without any errors, or when any one of the sessions reports an error.

Return Value

The status code returned by the function.

  • A value of 0 indicates success.
  • A negative value indicates an error.
  • A value greater than 0 indicates a warning.

Use niTClk_GetExtendedErrorInfo to get detailed information about individual errors and warnings.

niTClk_SetupForSyncPulseSenderSynchronize

ViStatus _VI_FUNC niTClk_SetupForSyncPulseSenderSynchronize (ViUInt32 sessionCount, ViSession sessions[], ViReal64 minTime);

Purpose

Configures the TClks on all the devices and prepares the Sync Pulse Sender for synchronization.

Parameters

Input
Name Type Description
sessionCount ViUInt32 Specifies the number of elements in the sessions array.
sessions ViSession [] Specifies the array of session references that are being synchronized. Obtain session references from the instrument driver by using the Get Session Reference function, where is the name of the instrument driver. Example: niScope_GetSessionReference.
minTime ViReal64 Specifies the minimum TClk period, in seconds. Valid values are 0.0 to 0.050 s (50 ms), inclusive. The minimum period for a single chassis/PC is 200 ns. If the specified value is less than 200 ns, NI-TClk automatically coerces the minimum TClk period to 200 ns. For multichassis synchronization, adjust this value to account for the propagation delays through the various devices and cables.

Return Value

The status code returned by the function.

  • A value of 0 indicates success.
  • A negative value indicates an error.
  • A value greater than 0 indicates a warning.

Use niTClk_GetExtendedErrorInfo to get detailed information about individual errors and warnings.

niTClk_SynchronizeToSyncPulseSender

ViStatus _VI_FUNC niTClk_SynchronizeToSyncPulseSender (ViUInt32 sessionCount, ViSession sessions[], ViReal64 minTime);

Purpose

Synchronizes the other devices to the Sync Pulse Sender.

Parameters

Input
Name Type Description
sessionCount ViUInt32 Specifies the number of elements in the sessions array.
sessions[] ViSession Specifies an array of session references that are being synchronized. Obtain session references from the instrument driver by using the Get Session Reference function, where is the name of the instrument driver. Example: niScope_GetSessionReference.
minTime ViReal64 Specifies the minimum TClk period, in seconds. Valid values are 0.0 to 0.050 s (50 ms), inclusive. The minimum period for a single chassis/PC is 200 ns. If the specified value is less than 200 ns, NI-TClk automatically coerces the minimum TClk period to 200 ns. For multichassis synchronization, adjust this value to account for the propagation delays through the various devices and cables.

Return Value

The status code returned by the function.

  • A value of 0 indicates success.
  • A negative value indicates an error.
  • A value greater than 0 indicates a warning.

Use niTClk_GetExtendedErrorInfo to get detailed information about individual errors and warnings.

niTClk_FinishSyncPulseSenderSynchronize

C Function Prototype

ViStatus _VI_FUNC niTClk_FinishSyncPulseSenderSynchronize (ViUInt32 sessionCount, ViSession sessions[], ViReal64 minTime);

Purpose

Finishes synchronizing the Sync Pulse Sender.

Parameters

Input
Name Type Description
sessionCount ViUInt32 Specifies the number of elements in the sessions array.
sessions ViSession [] Specifies the array of session references that are being synchronized. Obtain session references from the instrument driver by using the Get Session Reference function, where is the name of the instrument driver. Example: niScope_GetSessionReference.
minTime ViReal64 Specifies the minimum TClk period, in seconds. Valid values are 0.0 to 0.050 s (50 ms), inclusive. The minimum period for a single chassis/PC is 200 ns. If the specified value is less than 200 ns, NI-TClk automatically coerces the minimum TClk period to 200 ns. For multichassis synchronization, adjust this value to account for the propagation delays through the various devices and cables.

Return Value

The status code returned by the function.

  • A value of 0 indicates success.
  • A negative value indicates an error.
  • A value greater than 0 indicates a warning.

Use niTClk_GetExtendedErrorInfo to get detailed information about individual errors and warnings.

Table of Contents

Internal Development

Creating and Setting Up a gRPC Server

Server Security Support

Creating a gRPC Client

gRPC Client Examples

Session Utilities API Reference

Driver Documentation

gRPC API Differences From C API

Sharing Driver Sessions Between Clients

C API Docs
NI-DAQmx
NI-DCPOWER
NI-DIGITAL PATTERN DRIVER
NI-DMM
NI-FGEN
NI-FPGA
NI-RFmx Bluetooth
NI-RFmx NR
NI-RFmx WCDMA
NI-RFmx GSM
NI-RFmx CDMA2k
NI-RFmx Instr
NI-RFmx LTE
NI-RFmx SpecAn
NI-RFmx TD-SCDMA
NI-RFmx WLAN
NI-RFSA
NI-RFSG
NI-SCOPE
NI-SWITCH
NI-TCLK
NI-XNET
Clone this wiki locally