05-15-2015 03:29 AM
So I have this number counter. In it's indicator it counts up by 1 every second. It works fine. But at around 32 I want it to start back at 0. Right now it justs keeps counting up for forever. Any idea how to do this? Every option I've tried to implement has not worked and been way more complex than I think it should be.
05-15-2015 04:05 AM
mhh am not sure if you are trolling or not
try modulo?
05-15-2015 04:17 AM
Hi Orta,
you should alway attach your VI to get comments on improvements or solutions to your question…
When you don't know about a basic modulo math operation you should be able to implement some pseudocode like this:
counter++ IF counter >= limit THEN counter:=0 ENDIF
(Compared to modulo operation it's slightly "Rube-Goldberg"ish… 🙂 )
05-15-2015 04:22 AM
Thanks for the replies. No, I definitely understand the pseudo code. In C++ this is a simple operation. But, I dunno, the syntax of labview is weird for me. Getting used to it though.
05-15-2015 04:26 AM - edited 05-15-2015 04:27 AM
thats a minimal example
the function is called "Quotient & Remainder"
05-15-2015 04:31 AM