Mike,
You could use a shift register, and use a case to put a 0 in the shift
register when it is bigger then 9, but...
You probably have a counter or "i" from a for or while loop.
You can feed this into the Quotient and Remainder function. This is
LabVIEW's MOD function. It devides x by y, and returns the number of times
that it fits, and the number that remains. So:
x mod y => remainder / quotient
0 mod 10 => 0 / 0
1 mod 10 => 1 / 0
2 mod 10 => 2 / 0
3 mod 10 => 3 / 0
4 mod 10 => 4 / 0
5 mod 10 => 5 / 0
6 mod 10 => 6 / 0
7 mod 10 => 7 / 0
8 mod 10 => 8 / 0
9 mod 10 => 9 / 0
10 mod 10 => 0 / 1
11 mod 10 => 1 / 1
The quotient returns the number of iterations, in your case. So you get this
as a bonus!
Regards,
Wiebe.
"MikeB"
m> wrote in message
news:198e1d10.0212100635.4ea42838@posting.google.com...
> I am trying to automate communication with a serial port DA unit (Kaye
> Digilink).
>
> My problem is that each command I send to it needs an iteration number
> that goes from 0 to 9 then repeats from 0. Ie: first command is 1,
> next comand is 2, till number 9 then reset to 0 and repeat. How do I
> make or find a resetable "counter" to do this? I used the "Concatenate
> a String" to break the input string apart but must increment
> iterations by hand now.
>
> Searches have found nothing of help!
>
> I have Labview 5.1 & WinME
>
> Thanks,
> MikeB