Overview
This VI demonstrates calculation of the phase difference between two waveforms using the phase correlation method.
Description
There are many applications where it is important to get the phase correlation between two waveforms. The correlations test VI generates two sine waves with different phases and feed them into the time delay VI, and the time delay VI (subVI) will then compute the phase correlation and the time delay in number of samples between the two waveforms. Note that both waveforms must have the same number of samples in them. About phase correlation, see wikipedia article http://en.wikipedia.org/wiki/Phase_correlation
Requirements
- LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
- Download the attached files and put them in the same folder.
- Open the correlations test VI.
- Set up the phase for A and B waveform.
- Run the VI and see the phase correlation between the two waveforms on the front panel.
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**