Hi David
I suggest you the Select function ( in the comparison palette). If the stop buton become true, it return zero to the indicator (see picture).
You add a wait function in the while loop but 3000 ms is really a long time. You should update the loop faster. Just a suggestion.
Regards
Francis
For arbitrary ranges you can use this (picture). The problem is if the value is out of range, the VI will never stop so you can add a manual boolean stop in the wile loop with a OR function.
Or just use a big value for the last range so you are sure it will always be in range.
Francis
Hi
It would be much easier to use the range 0-9, 10-19, 2029...
But here a solution for your range( look at the picture).Quotient and remainder function. You do not need the for loop if you just dealwith one value at the time.
Francis