LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a Pause button in this counter

Solved!
Go to solution

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

0 Kudos
Message 1 of 9
(1,630 Views)

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

0 Kudos
Message 2 of 9
(1,594 Views)

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 🙂 

0 Kudos
Message 3 of 9
(1,544 Views)

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:

 

  • You are dealing with integers, so there should be no orange anywhere. DO you know about numeric representation?
  • The terminal of Boolean should not be hidden inside a case structure. Do you even need it?
0 Kudos
Message 4 of 9
(1,538 Views)

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. 

 

0 Kudos
Message 5 of 9
(1,524 Views)

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?

0 Kudos
Message 6 of 9
(1,518 Views)

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. 

0 Kudos
Message 7 of 9
(1,513 Views)
Solution
Accepted by topic author farhad11

Here's a quick draft (just counting up) to get you started. Now add all the other features. 😄

 

 

altenbach_0-1666566604117.png

 

0 Kudos
Message 8 of 9
(1,486 Views)

Thank you very much

0 Kudos
Message 9 of 9
(1,470 Views)