05-08-2008 12:42 PM
05-09-2008 12:03 AM
How did your VI get to be so large on disk (~740kB)?
Your problem may be the number of data points you are trying to display. 2000 samples for 0.2 seconds would show up on a graph reasonable well. 8-10 seconds would be 80,000 - 100,000 data points on a graph that may only be hundreds of pixels wide. So several hundred to a thousand data points would have to be averaged together to show up as a single pixel on the graph. If you zoom in on a section of the longer acquisition, do the curves start to look more like the shorter acquisition graph?
05-11-2008 12:15 PM
05-12-2008 11:44 AM
Hi Pramod,
I am guessing that when you say you got the correct waveform, you took the suggestion to zoom in on the graph and you were able to see the correct shape of the waveform.
I am a bit confused about your last statement about not
getting the last 0.1 seconds of data. Do
you mean that if you acquire data for 8 seconds your measurement file only has
7.9 seconds of data? Do you mean that if you zoom in on the graph to look at a
transient event that should span 0.2 seconds, it only lasts 0.1 seconds?
How are you stopping your VI? Are you using the abort button, or do you have a stop control wired to the conditional terminal of your while loop?
05-13-2008 06:22 AM
05-14-2008 03:46 PM
Hi Pramod,
I think an understanding of the way that LabVIEW does cross correlation in the express VI may help explain what is going on in your measurement.
Open LabVIEW and go to Help >> Search the LabVIEW Help… Do a search for “convolution and correlation” (to look at the functionality of the Express VI you are using) and then do a search for “crosscorrelation” It is possible that the Express VI is computing the correct correlation, but not in the form that you desire it. I believe what you are referring to is a normalized correlation as the cross correlation function can return any number.
I found an example program in LabVIEW that may be of help. Open LabVIEW and then go to Help >> Find Examples. Do a search for correlation and then open the Correlation Analysis VI. This appears to have the correlation you are looking for.
05-15-2008 09:24 AM
05-16-2008 11:43 AM
Sorry Pramod. I didn’t catch that the Correlation Analysis VI is part of the Advanced Signal Processing Toolkit. If you have this toolkit available to you, then you could use this example. I don’t believe there is another VI that will do it directly. You might need to use the lower level VIs like the Crosscorrelation VI and apply any normalization yourself.