05-29-2007 02:25 PM
05-29-2007 02:48 PM
05-29-2007 03:11 PM
Hello Ton,
i was just looking at his diagram. i think that he doesnt want to use the treshold function, because (from what i understand in his vi), the values might not always go up.
also , he doesnt separate the angle value and its occurence nb. that might be a better solution to have a 2D array in this case, one for the angle, one for the occurence.
but the problem stays: i have looked at the initial txt file, it has just 2 digits of precision. if i take care to use 2 digits of precision for my double comparison value, i should end up being able to do a search the 1D array! otherwise, one should just point out : on Dbl and Ext nbs, the search wont work.
Am i wrong?
05-29-2007 03:21 PM
05-29-2007 03:38 PM
Glad i could help, and sorry for stealing the thread Ton.
dont forget to rate!
a very fast improvement you could do on your vi, but that clearly depend on how the data looks:
use the first row of the txt file as the index for the second row. in your case multiply the first row by 100, to get integer values. then you have defined the indexes. the second row you fill following these indexes.
also: try to use shift registers instead of local variables. it is more elegant and less troubles.
good luck.
05-29-2007 03:50 PM - edited 05-29-2007 03:50 PM
Message Edited by TonP on 05-29-2007 10:51 PM
05-30-2007 07:34 AM