LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

uniterrupable timer!

To which program were you referring, mine or becktho's?

Here's the same code without using events. Also, I meant to say "Multiply the Active time by 10" not 100.

If you want the timer to automatically restart, just change the elapsed time to 0 when Elapsed Time > Active Time, and don't automatically turn off Activate Timer.

Play around with the case statements. You can do lots of things with them.

- Smiley Happy
Message 11 of 14
(908 Views)
Here's the block diagram for those without LabVIEW 8.2.

- Smiley Happy
Message 12 of 14
(907 Views)
LabViewGuruWannabe: If you toggle the "activate timer" you still can influence the function. In addition, timing should be done with time functions (time elapsed = current time - start time). Calculations of the time can cause malfunction - just imagine someone changing the constant you wired to the "wait for ms multiple" to lets say 10. I think I don't have to say what happens then.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 13 of 14
(902 Views)
becktho,

Of course you can do anyting once the timer is toggled. This is just an example of how to count. The code works and it is simple.

Like I said before, there are hundreds of ways to do the same thing in LabVIEW. Yes, if you wanted to be accurate and get the system time at the start, get the system time again after any set period, subtract the two to get the elasped time, you can. Tell me this, how can someone change a constant if you build the program into an executable?

I don't know what the application here is, and its the progammer's job to dummy-proof his or her own program. I'm sure Viller is smart enough to figure that out.
0 Kudos
Message 14 of 14
(893 Views)