Hi, I'm a relatively new to LV programming, so be gentle.
In a nutshell, I'm running nested loops that cycles test equipment on and off. The parameters for each loop are input on the front panel by the user. For instance, power supply on time, how often to read in data, power supply off time, and number of on/off cycles. This is a typical task customers ask me to do. Therefore, I decided to make a generic as possible executable vi instead of writing code (in which what I'm asking is trivial), that my technicians can easily use.
I want to put a down-counter in this vi, even a course one. I'll take the on time plus the off time times the number of cycles and display this on the front panel. For some reason I can't figure out a simple way such that after the last cycle completes the display reads zero before the program ends.
For instance, the total time equals 60 minutes and there are 10 minute cycle. I run the program and the display reads 60 during the first cycle, after the first cycle is complete and as the second cycle starts the display changes to 50, and so forth until the last cycle where it reads 10. Then the program ends and the display reads 10. How do I get one last tick out of this so it reads 0 and displays 0 before the program ends?
Thanks!