03-14-2023 10:53 PM
I am working on a countdown timer VI that counts down from 10 and goes to 0.
Need to be able to pause, stop, and reset the timer whenever the user has pressed the button dedicated to that event.
very simple VI, however, I am stuck on the reset aspect of this VI
03-15-2023 01:47 AM
Hi Snow,
@Snow22 wrote:
very simple VI, however, I am stuck on the reset aspect of this VI
You forgot to attach your "very simple VI"!
How should we help when we don't know your code?
03-15-2023 08:04 PM
I recommend using FGV Timer SubVI
03-17-2023 12:01 AM
my apologies
03-17-2023 02:02 AM
Hi Snow,
unfortunately you are using a very recent LabVIEW version.
To get more audience you should downconvert to some older versions as many of us don't use LV2022/2023 due to subscription license issues. (File->Save for Previous)
I prefer LV2019…
03-17-2023 02:18 AM
makes sense. I changed it to 2019
03-17-2023 02:38 AM
03-17-2023 02:46 AM
sorry I don't know why it didn't post it.
03-17-2023 03:01 AM
Hi Snow,
please read the help for the event structure, especially the paragraph on "caveats…"!
(You should not place a loop running for a long time inside an event case. NEVER!)
Why don't you place the countdown logic in a timeout event case? Use the outer loop to keep the shift register(s)!
You may use the GetTick/GetDateTime function to accurately measure the elapsed time…