LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

need counter my way not yours

I have a vi, written in 6.1. with several do whiles, several for next, ya-da ya-da - ya-da.

What I need is a counter, that Increments every time the set of sub vi's are finished, and this counts need to increment just before I am about to go back to the begenning.

An example in basic would be a=a+1: print a

no ms, no computer counter, no external counter, just something to tell me how many times my software has started over.

Thanks

Steve
0 Kudos
Message 1 of 2
(2,482 Views)
If your code has an outer most while loop (which if it runs multiple times, I suspect it would) just put your "a=a+1" (shift register with a "increment" primitive tied to it) there and wire it to an idicator as the last thing it does before looping back to the beginning.

If you need a visual I could whip up an example pretty quickly.

Good luck.
0 Kudos
Message 2 of 2
(2,484 Views)