LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Phase Shift Calculation

I have a two part question. I am using a DAQ board to read four different voltages. I want to measure the phase shift between the voltages and a sine function and display the sine function on the same graph as the voltages. I generated oa sine function with the same frequency as my the signal being mesured by the DAQ board, but when I tried to just use the Dual Channel Spectral Measurement express vi, I received an error that the two signals had different dt. I then tried to use the align waveforms vi. I then wired the two ouputs to the dual channel spectral measurement vi, but no matter what I do to the input signal, the phase shift always reads 0 (which I know to be incorrect. What should I do to fix this and how can I display the generated sine function and the data signal on the same graph?

 

Thanks,

Matthew

0 Kudos
Message 1 of 2
(2,367 Views)

Matthew,

 

It is hard to tell what is going on without data.  Please run your VI so that you have some typical data displayed on the data and data 2 graphs. Then Edit >> Make Current Values Default. Save the VI. Post that VI which will then have the data saved.

 

I do not have the DAQ Assistant, so I cannot see what settings you used.

 

You can simplify the VI significantly by eliminating the sequence structure and the local variables.

 

Lynn

0 Kudos
Message 2 of 2
(2,343 Views)