04-07-2008 08:58 PM
04-08-2008 07:59 PM
Hi Cave Man,
My guess is that the results you are reading are noisy due to the nature of the cross power spectrum. Even if you input two sine waves, completely identical except for a very slight phase shift, the phase output still appears to be quite noisy.
Are you sure that your results are not what is expected? Have you tried calculating what the value should be at particular points in order to compare it to the results you are getting programmatically?
Regards,
Lauren
04-08-2008 10:00 PM
04-09-2008 02:01 PM
Hi Peter,
The LabVIEW function should operate correctly. The input data is the only factor that could affect the output, so if there is an error, I believe that it is in relation to the data. How are you acquiring the data? If you are reading it externally, have you tried varying the number of samples you are reading? In your first post, where you attached your data, I was unable to open it. Could you include a small portion of the information, so I can specifically look into points?
Where did you get the information in the attached pdf? Are you sure that the output graph corresponds to your situation (data) and the cross power spectra? The LabVIEW function operates as described, so it seems that the problem could only be that the data is inconsistent or you are using the wrong function for the situation.
Regards,
Lauren
04-09-2008 05:42 PM
04-10-2008 03:52 PM
Hi Peter,
Due to the nature of the cross power spectrum, even the slightest amount of noise results in a completely skewed phase output. I tried graphing the phase output of the cross power spectrum using two sine waves as inputs, with a frequency difference of only 0.01 Hz. The phase output resulted in the bottom graph in the attached picture. Then I added some noise, and the resulting output is completely different, as you can see on the graph.
Basically, even the smallest amount of noise will drastically change the phase output. Unless you can filter the incoming signal to eliminate all noise, I am not sure if you will be able to read a satisfactory cross power spectrum. If you decide to try to clean the signal up as much as possible, I would recommend posting on the DAQ forums for specifics.
Regards,
Lauren