Clock / timer

  • Follow


In one of my gui's I want to add a timer to start running when a user
presses on a pushbutton. The timer is to be visually displayed in the
gui (such as a digital format 0:01, 0:02, 0:03 etc).
The time should continue running (counting up at 1 second intervals
from zero) until another pushbutton is pressed, then it should stop
and reset back to zero.

I have searched through the matlab help but can't find a way to do
this. Also can the timer be set to display intervals of less than 1
second (e.g 0.1 sec intervals).

Any help or ideas will be appreciated

Iain
0
Reply imurdoch (17) 12/4/2003 8:34:42 AM

I have found a solution to this problem so there is no need to post a
reply.
0
Reply who1358 (1) 12/4/2003 1:02:14 PM


Iain,

Matlab R13 has a timer object which I have used for this sort application.

See help timer if you have that version.

If you do not have that version, the serial object in earlier versions has a
timer callback, which may work, but I have not used it.


Eli.


"Iain" <imurdoch@sem.fki-et.com> wrote in message
news:eecc1eb.-1@webx.raydaftYaTP...
> In one of my gui's I want to add a timer to start running when a user
> presses on a pushbutton. The timer is to be visually displayed in the
> gui (such as a digital format 0:01, 0:02, 0:03 etc).
> The time should continue running (counting up at 1 second intervals
> from zero) until another pushbutton is pressed, then it should stop
> and reset back to zero.
>
> I have searched through the matlab help but can't find a way to do
> this. Also can the timer be set to display intervals of less than 1
> second (e.g 0.1 sec intervals).
>
> Any help or ideas will be appreciated
>
> Iain


0
Reply elhunter (15) 12/4/2003 1:56:49 PM

2 Replies
37 Views

(page loaded in 0.042 seconds)

Similiar Articles:













7/16/2012 9:39:48 AM


Reply: