10-18-2022 10:13 AM
Hi Everyone,
Below I have attached a Labview VI of a counter. I want to set a "Pause" button that will stop counting until I press it again to resume. Can anyone help me in this regard?
I would be highly grateful to you.
Thanks in advance
Solved! Go to Solution.
10-18-2022 01:16 PM
Where does the counting take place? What if you enclosed a key element of the count in a Case statement and wired a Boolean ("Pause"?) to its "selector"?
Bob Schor
10-23-2022 11:34 AM
The boolean is used as a signal when the counter exceeds the limit. My problem is setting a "Pause " button in this program to pause and resume it. Thanks 🙂
10-23-2022 02:11 PM
This seems like a trivial first-day homework problem.
You did not specify the full requirements, for example you also have a decrement case. Do you want to be able to pause that too? Should it always count up and down between zero and the limit forever?
Some comments to your code:
10-23-2022 03:37 PM
Thanks for your reply. Yes, I am new in LabView progarmmimg.
my requirement is to make a counter which counts continuously and it should have start, pause and stop buttons to perform their functions. No I don't need the Boolean inside the case structure.
10-23-2022 04:05 PM
Why would you need a start button? Just start the program in pause mode, then un-pause to start. You still have not explained the "count up" "count down" part. Is the user allowed to change the limit during the run?
10-23-2022 04:12 PM
There is no specific reason to add a Start button, just I want to know how to add those buttons to run a program. the count_down part I added to see whether I can do it or not. and yes user is allowed to use the counting limit.
10-23-2022 06:10 PM
Here's a quick draft (just counting up) to get you started. Now add all the other features. 😄
10-23-2022 07:28 PM
Thank you very much