I have a 1D array. i have to compared each value which is different every time. If the locations is the same, take the higher amplitude. Can anybody help me to do this? See the attached file if you don't understand what i saying.
"i have to compared each value which is different every time" ,I did not understand. Do you have to compare two array elements?
What is time interval between comparing?
Can you elaborate?
yeah, i have to compare the two array elements for the location.
If two array is the same, it will take the array which is higher for the amplitude.
for time interval, the is no preferences.
if you dont understand, see the attached file.
May be this is what you want to do.
I have attached a VI that i think will achieve what you are after. There are 2 vi's in the Zip file. One is the actual VI you need and the other is just an example to show how it works.
Hope it helps,
That is an event structure. You may not require it. It depends on when do you want to compare array elements.
If you want to compare elements after some event on the front panel, you can use event structure which is used in example.
You will find event structure in Programming>>Structures palette>> Event structure
Think there may of been a linking error with that file i posted as i changed the vi name just before sending.
If there is you can just manually re-link or try this one instead.
Sorry but i got another question. As the data that my DAQ have more than 3 decimal place. I try putting nearest to integer but there is still decimals. Can i know why?
Can you explain a bit better what you mean? Are you saying you only want to compare to 3 decimal places and no more ie 12.2342 = 12.2343 ?