Example Code

How to Find the Max Phase Difference of Waveform Signals.

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This VI will find the frequency and phase difference between an array of waveforms, and can be used to test your system's synchronization quality.

 

Description

When trying to synchronize several signals, it is important to find the max phase difference between your signals in order to determine the level and quality of your synchronization. This VI allows you to put an array of waveform data into the "Signals" section and obtain the frequency, phase, and phase difference of your input signal.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Place Phase Difference VI down as a SubVI on your main data acquisition VI.
  2. Input the array of waveform data that is the output of your DAQmx Read functions.
  3. Read out the Phase, Frequencies, and Max Phase Difference of your data.

 

Additional Information or References

VI Snippet

1.png

 

Screenshot of using as a SubVI

2.PNG

 

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Frank,
National Instruments
Software Group Manager

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.