10-16-2006 10:16 AM
10-16-2006 10:31 AM
10-16-2006 10:52 AM
10-18-2006 03:01 AM
Hi Lynn
The aim of the vi is to do the following -
1)Open a binary data file which has a constant sampling speed of 20kHz, but a variable length
2) The signal is then converted to a waveform
3) The signal is then filtered to remove low frequency noise
4) Signal then splits to two areas - one for magnitude, the other for frequency
5) For the magnitude, the peaks are then detected and listed in an array, along with the locations of the peaks - peaks must be over a certain width.
6) Same process is done for the frequency spectrum
7) The arrays are sorted to give the mag/freq in descending order. The 5 peak values are then extracted. If there are less than 5 values the arrays is padded out with the value 1.
Thats the basic operation. This will then be used in a larger, vi to pass the data to microsoft excel for analysis.
Cheers
Dave
10-19-2006 03:05 AM
It appears that the slow speed is due to the peaks vi. There is another peak vi in the SVT toolkit, but this does not allow you to specify a minnimum peak width. Is there any alternative, faster peak module that allows me to specify peak width?
Cheers
Dave
10-23-2006 03:17 AM
Hi
Its very quiet here - any help would be much appreciated!
I've changed the peak detector vi and this has sped up the process but it is still very very slow when run in the parent vi. Attached are the various vi's.
Any help would be much appreciated.
Cheers
Dave
10-23-2006 04:40 AM
Hi Dave,
Thanks for posting the code, can you add any of the binary files you are working on, so we can see the VI running with the same data as you?
Cheers,
Mark
10-23-2006 05:01 AM
10-30-2006 10:32 AM
Hi
Just wondering if anyone had any ideas?
10-30-2006 10:49 AM