TimeSyncReadme.pdf

(201 KB) Pobierz
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
USER GUIDE
NI-TimeSync
Version 1.1
Introduction, Installation, and Configuration
About the NI-TimeSync Driver Software
NI-TimeSync, shown in Figure 1, is a distribution of software
synchronization plug-ins. You can use these plug-ins alone or alongside
compatible hardware products including NI-Sync devices to create a
synchronized system.
872885781.045.png 872885781.046.png 872885781.047.png 872885781.048.png 872885781.001.png 872885781.002.png 872885781.003.png 872885781.004.png 872885781.005.png 872885781.006.png 872885781.007.png 872885781.008.png 872885781.009.png 872885781.010.png 872885781.011.png 872885781.012.png 872885781.013.png 872885781.014.png 872885781.015.png 872885781.016.png 872885781.017.png 872885781.018.png
Figure 1. Multitarget System Using Synchronized Time
Time References Supported
NI-TimeSync supports IEEE 1588-2008.
Hardware Requirements
NI-TimeSync requires LabVIEW RT target hardware.
NI-TimeSync User Guide
2
ni.com
872885781.019.png 872885781.020.png 872885781.021.png 872885781.022.png 872885781.023.png 872885781.024.png 872885781.025.png 872885781.026.png 872885781.027.png 872885781.028.png 872885781.029.png 872885781.030.png 872885781.031.png 872885781.032.png 872885781.033.png
 
Software Requirements
NI-TimeSync requires LabVIEW RT 2009 SP1 or later.
Application Software and Programming Language Support
NI-TimeSync supports LabVIEW RT 2009 SP1 or later.
Installing the Software
Follow these steps to install the NI-TimeSync software:
1.
Run setup.exe to install the software to the development machine.
2.
Install the software to your LabVIEW RT target through
Measurement & Automation Explorer (MAX).
Note When installed to the LabVIEW RT target, the NI-TimeSync plug-in is set as the
active plug-in. Configuration of other time references including Logos or SNTP overrides
this configuration.
Building and Programming Applications
API Basics
The NI-TimeSync plug-in automatically synchronizes the LabVIEW RT
system date and time. The API is based on interacting with the system time.
Two primary LabVIEW palettes useful in using the system time are
Programming»Timing and Programming»Structures»Timed
Structures .
Programming»Timing
This LabVIEW Timing palette, shown in Figure 2, includes functions for
reading the current time, programmatic waits, and other useful functions.
The timing used for each function is based on the synchronized LabVIEW
date and time.
© National Instruments Corporation
3
NI-TimeSync User Guide
872885781.034.png
 
872885781.035.png 872885781.036.png 872885781.037.png 872885781.038.png 872885781.039.png 872885781.040.png
Figure 2. LabVIEW Timing Palette
Programming»Structures»Timed Structures
The Timed Structures palette, shown in Figure 3, allows you to control
code execution using the Timed Loop and Timed Sequence structures. The
built-in timing sources, shown in Figure 4, use the synchronized LabVIEW
date and time. The “absolute time” sources, also shown in Figure 4, allow
you to control the execution based on global time. Refer to your LabVIEW
documentation for additional information.
Figure 3. LabVIEW Timed Structures Palette
NI-TimeSync User Guide
4
ni.com
872885781.041.png 872885781.042.png
 
872885781.043.png
Figure 4. Timed Loop Configuration
Property Node
You can use the NI-TimeSync property node to query the synchronization
plug-in properties
The property node is in the Programming»Structures»Timed
Structures»Absolute Time palette.
Monitoring Synchronization Status and Quality
Timekeeper Synchronized
This property returns whether the timekeeper is synchronized to the time
reference within 1 ms. It is useful for program start-up to wait for
synchronization to stabilize or to simply query the current state.
Timekeeper Synchronization Disrupted
You can query this latching property periodically to determine whether
the timekeeper synchronization has been disrupted since it was last read.
Disruption criteria include exceeding the 1 ms synchronization threshold or
the time reference changing. You can use this property to determine
whether a disruption to synchronization has occurred.
© National Instruments Corporation
5
NI-TimeSync User Guide
 
872885781.044.png
Zgłoś jeśli naruszono regulamin