To configure your software for IEEE 1588 synchronization, you can use either NI Measurement & Automation Explorer (MAX) or one of the NI-Sync APIs (LabVIEW or C). The configuration involves two main steps:
A. Configuring through NI MAX
B. Configuring through LabVIEW
The NI-Sync driver provides LabVIEW example code for configuring 1588 synchronization. You can locate these examples in LabVIEW by navigating to the NI Example Finder, then selecting Hardware Input and Output»Timing and Synchronization»Time-based. The two examples of interest for 1588 synchronization are “Set Time Reference” and “Start 1588 and Wait for Quality”.“Set Time Reference” Example
This example demonstrates how to specify the timing source to use to discipline your board. Complete the following steps to configure this example for your specific hardware:
This example demonstrates how to start participation in 1588, wait for the board clock to stabilize, and then monitor various 1588 properties. Complete the following steps to configure this example for your specific hardware:
Run both of these examples on all PXI(e) systems to be synchronized via 1588.
If you configure your time reference settings using NI MAX or LabVIEW as in the previous procedures, the time reference settings will reset upon each reboot of the system and will need to be reconfigured.
To make these settings persistent through subsequent reboots, you can either include the LabVIEW code described in the “Configuring through LabVIEW” section at the beginning of your startup application or complete the following steps in NI MAX:
At this point, the PXI-668x on each chassis is being synchronized with other IEEE 1588 devices on the network. The next step is to synchronize your chassis’ 10 MHz backplane clock (PXI_Clk10) to this time reference. The method for doing this depends on the hardware you are using. The PXI-6683(H) is capable of single- or multi-device disciplining, whereas the PXI-6682(H) must use multi-device disciplining.Multi-device disciplining requires the use of a second timing card, such as the PXIe-6674T. Multi-device disciplining also utilizes the more accurate and stable on-board oscillator of the second timing card, resulting in better synchronization performance. For more information on the multi-device architecture, see the NI PXI_Clk10 Disciplining for PXI Express product page. Once you have determined the disciplining method you would like to use, follow the instructions below:
You can use the niSync Property Node (provided with the NI-Sync API) to monitor IEEE 1588 performance in LabVIEW while your application is running. The screenshots below display the 1588 properties available for monitoring, as well as the protocol-independent Time Reference properties available.
If you followed the above procedures, all chassis in your setup are now sharing the same backplane clock. The last step in setting up a synchronized system is to synchronize the start of acquisition or generation by your individual PXI modules. You can do this by sharing a start trigger.
One option for doing this is to use future time events (FTE). The NI-Sync API provides the ability to generate future time events based on the board time of your PXI-668x. Since the board time of the PXI-668x in each chassis is now synchronized via IEEE 1588, you can use future time events to synchronously generate a trigger on each board at a specific time. These triggers can then be shared with all the modules in each chassis.
For more information on generating a future time event, see the NI-Sync examples in the LabVIEW Example Finder under Hardware Input and Output»Timing and Synchronization»Time-based. The “Generate Event” example there provides the code necessary to generate a future time event.
Once you have generated a Future Time Event, you will still need to program your PXI modules to begin acquisition or generation when they receive the generated trigger. See the “Additional Resources” section below for more information on synchronizing your specific PXI modules.
Digitizers, Signal Generators, and Digital Waveform Generators/Analyzers (Based on SMC Technology)
Dynamic Signal Acquisition (DSA)
High-Speed Digital I/O
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.