LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

locations after threshold on graphs and saving data

hi i am new to lab view and i have  a program i created that retreives the data and graphs my file. now i am at a point were im stuck at dont know about how to reach the next step. 

i would like to......1)read 2 blocks of data 2) locate he cusp in the graph 3) note the location of the cusp 4) read 2 more blocks of data from the cusp 5) do a fft the the 2 blocks of data i just read after the cusp. 6) save the results in a 2D array or to disk 7) repeat the step1-7 untill i have multiple cusp with fft. 9) read all the fft and average them together 10) display the finale averged FFT.

 

here is my program that i have so far that works up untill this point.

0 Kudos
Message 1 of 4
(2,721 Views)

Hi Holyfield,

 

Please describe exactly what you have successfully accomplished, what you have tried, and what is not working, and what aspects of these steps you need help with. If you are looking for general coding help, you may want to take a look at the following links:

 

http://zone.ni.com/devzone/cda/tut/p/id/5247

http://digital.ni.com/public.nsf/allkb/7D5F60ADBFD9CDC2862572BA005DD96A

Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
0 Kudos
Message 2 of 4
(2,690 Views)
Once you have 50 mS of data (125,000 points) following the cusp:
1) Perform the FFT on the data
2) If there is enough room in memory, save the FFT results in a multidimensional array.  This make the averaging convenient because you can add up the frequency results in each "column".
3) Or save the FFT to disk if there is not enough room in RAM.
4) Do steps 1-3 for the next 50 mS slice (after the next cusp).
5) Display the results of the FFT average.
0 Kudos
Message 3 of 4
(2,680 Views)
You can use the Peak Detector VI from the Signal Processing >> Signal Operation palette to get the number of peaks in your FFT and the amplitudes of those peaks. You can then quickly average those. Just put that in a loop for each set of data you are averaging in this manner.
Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
0 Kudos
Message 4 of 4
(2,663 Views)