Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Countdown

Subject: Countdown

From: Javier

Date: 16 Sep, 2010 13:45:23

Message: 1 of 2


Hi,

I'd like to make a button that starts a 10 minutes countdown with a display showing the time remaining. The idea is that, if already running, you can restart it by pushing again the button. Then if the time finishes some actions are performed.

Should I use a timer structure?

Subject: Countdown

From: Sean

Date: 16 Sep, 2010 14:03:21

Message: 2 of 2

"Javier " <jagon@postal.uv.es> wrote in message <i6t71j$rhi$1@fred.mathworks.com>...
>
> Hi,
>
> I'd like to make a button that starts a 10 minutes countdown with a display showing the time remaining. The idea is that, if already running, you can restart it by pushing again the button. Then if the time finishes some actions are performed.
>
> Should I use a timer structure?

An easy way out would be to create a button that calls this:
http://www.mathworks.com/matlabcentral/fileexchange/18165-countdown

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us