07-09-2015 01:56 PM - edited 07-09-2015 01:57 PM
This should meet your requirements. I chose the limits and target time sort of at random.

07-09-2015 02:20 PM
Thanks
.I made a version too.Will it keep on updating ? cause i am selecting an element from a 1d array and comparing it and at 51.2khz.My version works real time but the button has to be in the loop.Would it update or take new values if i use in range and input values from outside the loop ? since i cannot auto index do i have to put the 1d array in the loop itself and extract the element to compare?
I really appreciate your help.
07-09-2015 02:25 PM
Below is the vi that i am working on.
07-09-2015 02:41 PM
Did you really do an Equals to False? Want to end up in the Rube Goldberg Thread? Just use a NOT. And none your case structures are needed, as I have already shown.
You will need a seperate timer for each comparison you want to do. And these comparisons will need to be in your main loop that you are getting the data. You have not shown enough context in order to give a better answer.
07-09-2015 02:51 PM
LOL.sorry about that.Still a newbie.Any ways i have attach the first half of my vi.
07-09-2015 03:01 PM
Ok, so you are just finding the peak of your FFT and doing a comparison on that.
1. No need for the Index Array. You already have that value with the Max & Min.
2. I would turn the VI I gave you into a reentrant VI. You can then call this VI in parallel as many times as you need and each comparison will have its own timer. It will make your life a lot easier.
07-09-2015 03:12 PM
Thanks.Thats a new concept to me.So if i use 4 clones of that vi how can i enforce four different comparision ranges/values?
07-09-2015 03:15 PM
Excues my ignorance,I am looking at examples now.Thanks a lot for your help.Will try this tonight!!!
07-10-2015 09:20 PM
It works like a charm.Thanks a lot Crossrulz!!