10-02-2005 02:35 PM
10-02-2005 03:14 PM
10-02-2005 03:16 PM
It is unlikely that calculations with DBL are identical to the last bit, you'll probably never get a match with your method.
Thy to find the element that is closest instead. (take the absolute difference, then the index of "array min" ). See attached, LabVIEW 7.1)
10-02-2005 03:29 PM - edited 10-02-2005 03:29 PM
Sorry, maybe I misunderstood your question. If the calculation is identical, the elements will match using DBL. To get multiple indices if the array contains more than one of the desired values, use something like in the attached VI.
(Notice, that you need a +1 before feeding the index to the shift register or it will get stuck at the first found element)
Message Edited by altenbach on 10-02-2005 01:37 PM
10-02-2005 03:50 PM - edited 10-02-2005 03:50 PM
Hi guys,
Thanks aartjan!
Thanks altenbach!,
I finally used the first method from altenbach, I test it, and works perfectly!!. I only want to know the indice from this value to find!. Works well.
Thank you Altenbach, the method is very smart ;). It is easy and fast. I get new things to program g.. 🙂
Mensaje editado por Fonsi