10-31-2006 04:14 AM
11-01-2006 04:04 AM
11-01-2006 04:19 AM
11-01-2006 04:33 AM
11-01-2006 04:46 AM
Hi Adam
I'm running LV 7.1 along with the SVT toolkit that came with it - where can I get the version number from?
Cheers
Dave
11-01-2006 04:48 AM
11-01-2006 04:51 AM
Hi Adam
From hitting the open file button to the two output arrays being filled it's taking about 8seconds. When I use it in the main vi it takes minutes to do the same thing.
Cheers
Dave
11-01-2006 05:12 AM
Hi,
Well on my machine the sort array is the function that is taking up the most amount of time. In the code you have given me, you don't actually need the sort array because the array is already sorted with regards to the frequancy.
If you look at your data before and after the sort it will match.
I do however suspect that you are really trying to sort by the amplitude. In this case you need to firstly swap the inputs to the build array (after the peak detects) and then the sort data will sort with regards to the amplitudes.
As for the actual sort function, this is a function that does take it's time when you are trying to sort clusters. If you simply sort the amplitudes (as an array) and then pull out the appropriate frequances you might get better speeds. I'll post a picture of the method I will use in a bit.
Thanx
AdamB
11-01-2006 05:23 AM
Hi Adam
Thanks for that - I should have said that I am looking for the 5 'greatest amplitude' peaks for both magnitude and frequency and their corresponding locations - hence why I needed to sort them as a cluster to keep the amplitude and locations together. If you could post an example that would be brilliant.
Cheers
Dave
11-01-2006 05:55 AM