LabVIEW ImplementationYou can use the VIs available in the Full and Professional versions of LabVIEW to perform a phase mismatch measurement.For finding the phase shift between two sine waves, use the Extract Single Tone Information VI. Calculate the phase shift by taking the difference of the two as seen in Figure 1.Figure 1. LabVIEW code for finding phase difference between two sine waves.For finding the phase shift between two square waves, use the Pulse Measurements VI. This VI determines the pulse center and pulse duration of each wave. Once you have this information, you can calculate the phase shift between the two waves as shown in Figure 2.Figure 2. LabVIEW code for finding phase difference between two square wavesAnother method for calculating phase difference using LabVIEW is to use the Phasor VI from the Electrical Power Measurement Palette.
SignalExpress ImplementationIn SignalExpress create a Tone Extraction step to determine the phase value for each channel. A Formula step will be added to subtract the two phases as in Figure 3 (the SignalExpress Tone Extraction Step is built using the Extract Single Tone Information VI available in LabVIEW).Figure 3. Signal Express steps required to determine phase difference.You need to configure the Formula step as show in Figure 4.Figure 4. Configuration of Formula step for calculating phase difference.
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.