From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the best way to create a timer that counts up and down automatically?

I want the timer to automatically count up and down from zero to a certain value.

0 Kudos
Message 1 of 13
(4,666 Views)

Sounds like a simple application that can be done with a While Loop with some Shift Registers to hold state and counter value.

 

What have you tried?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 13
(4,652 Views)

I built a countdown timer from this guide, but I don't know how to proceed

 

http://www.rmuti.ac.th/user/nopparat/document/pdf/LabVIEW_Lab6.pdf

0 Kudos
Message 3 of 13
(4,514 Views)

This is what I have so far but it only counts down to zero

0 Kudos
Message 4 of 13
(4,635 Views)

I recommend using a boolean (stored in a shift register) to state whether your values are incrementing or decrementing.  Then you just use a case structure for your two different methods.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 13
(4,631 Views)

Honestly, I don't know how to do that

0 Kudos
Message 6 of 13
(4,613 Views)

@ylevental wrote:

Honestly, I don't know how to do that


Back out to the main LabVIEW forum page and there are links on the right pointing you to all kids of good learning stuff.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 13
(4,598 Views)

Hi,

Think this example can Help You!!!

BR

Certified LabVIEW Architect (CLA)
0 Kudos
Message 8 of 13
(4,569 Views)

@Hrachya wrote:

Hi,

Think this example can Help You!!!

BR


Not helpful to help the OP cheat by giving him an answer to a problem he should be doing on his own for school.

 

 

0 Kudos
Message 9 of 13
(4,560 Views)

nyc

That is not my problem, I did not read everyones life history before helping them. He has problem, I try to help, why he is doing that, that his his problem....

Thank You

BR

Certified LabVIEW Architect (CLA)
0 Kudos
Message 10 of 13
(4,550 Views)