12-11-2014 11:04 AM
I am not sure how to go about this but I have 2 analog inputs and am trying to find the phase difference. The issue is that I am not sure how to separate the two signals to compare them to each other. I am using Labview 7.1. Any help is greatly appreciated.
Thanks,
SparkEE
12-12-2014 08:50 AM
Hi SparkEE
I do not know if this is what you are refering to, but have you tried using the Split Signal VI?
http://digital.ni.com/public.nsf/allkb/01AB60FA9A4EDA1B86256D1A004ACB63
This thread has a similar question as well
Cheers!
WenR
12-12-2014 09:16 AM
I have tried the split signal but then the question is how do I run the Case Structure simultaneously so that the phase difference can be measured. How does the FFT know to find the phase difference between the 2 analog inputs?
12-15-2014 10:04 AM
So I tried using the "SVT Gain and Phase" VI and was able to compare the 2 acquired signals but they are about 180 degrees out of phase. Is this due to how the data is acquired thru labview? if thats the case, do I just subtract 180 from the results?
12-15-2014 11:25 AM
Hey SparkEE,
This looks like you are using the Sound and Vibration toolkit, is this correct? Also, what hardware are you using? Im wondering all this because when I try to open your VI, it starts looking for files that I do not think I have installed on my computer. And regarding the phase question, it may depend on the hardware and your setup, especially with timing.
12-15-2014 11:36 AM
Yes, I am using the sound and vibration toolkit 3.0
Hardware being used is the NI-PXI-4461. It has simultaneous analog inputs.
What VI's are you have trouble with? maybe I can upload them
12-15-2014 12:04 PM
LabVIEW 7.1 is pretty ancient and I don't have the SVT installed but, You are seriously abusing the Dynamic Data type conversion and that may be part of your problem.
Get rid of that for loop and just configure the From DDT like so...
12-15-2014 12:25 PM
Hey Jeff,
The reason "Single Waveform" is being used instead of "1D Array of Waveform" is because there are 2 analong channels in the DAQ Assist. Using "2D Array of Scalar" will not work either because the signal flows into "Scale Voltage to EU.VI" which does not accept arrays, it requires waveforms.
I am open to any and all suggestions 😃
12-15-2014 12:33 PM
@SparkEE wrote:
Hey Jeff,
The reason "Single Waveform" is being used instead of "1D Array of Waveform" is because there are 2 analong channels in the DAQ Assist. Using "2D Array of Scalar" will not work either because the signal flows into "Scale Voltage to EU.VI" which does not accept arrays, it requires waveforms.
I am open to any and all suggestions 😃
No it accept a 1D array of waveforms - which is exactly what you get out of your for loop! (or my de-Rube-Goldberged- version)
12-15-2014 01:00 PM
My apologies Jeff, you were correct. I re-checked everything and the reason I believed that not to work is bc on my magnitude graph there was only 1 frequency response. I check my inputs and the 2nd input somehow got unplugged.
However, my issue with the phase difference is still unresolved.