|
|
Clock / timer
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: setting timer - comp.unix.programmerHello, All! Going to set up timer to initiate periodic events. I wrote the following simple code: #include #include #include #include static v... Timer to PWM duty cycles in Simulink - comp.soft-sys.matlab ...Hello! I've made a space vector PWM model in Simulink which outputs duty cycles for three phases (say A, B, C or U, V, W). Now I am stuck because ... ntpd and multimedia timers, Win2K, XP - comp.protocols.time.ntp ...Hello. We are running our application on quad (8 due to HT) Proliant server and it uses Windows multimedia timers in order to handle several timeouts ... Execute function when GUI is closed and timer function in GUI ...Store the startup time in the handles structure. Have your timer function retrieve the handles structure using the handle to the GUI main figure that you've passed ... Timekeeping broken on Windows XP with multimedia timer enabled (-M ...I downloaded the latest prebuilt binary from Meinberg (4.2.4p4)and installed on XP Service Pack 3. NTPD was not only completely unable to keep the clock in synch but ... Timer that Launches a Method at Regular Intervals - comp.os.ms ...In Java one can set up a timer, and using that timer arrange for methods to be called at regular intervals, say every five seconds. I understand I ... stopping the timer object - comp.soft-sys.matlabHello everyone, when I stop the timer object "t" with the command: stop(t), the program is stopped, which it is fine but at the end appear the next me... GUI, timer, handles - comp.soft-sys.matlabHi, I have a problem updating GUI handles with timer... In the OpeningFcn of my GUI I have the following instructions: handles.data.timerReadSer... GLUT Timer Functions - comp.graphics.api.openglHi Im using the standard GLUT timer function to control my image refresh rate -- only trouble is that as soon as the timer is setup and repeating n... How do get a timer in a thread? - comp.unix.programmerhi, i have to do something in a thread every 50ms. it need no so precise, just about 50ms. i tried to use select() function, but the result is far ... Time Timer | Visual Timer, Classroom Timer, Autism TimerTime Timer official site! Discover how this popular visual timer can help you: as a classroom timer, Autism timer, ADHD Timer and productivity tool for work and home! Countdown Clock - Countdown - Countdown Timer - Online CountdownCountdown Clock - Countdown - Countdown Timer - Online Countdown. Back to Countdown 7/16/2012 9:39:48 AM
|
|
|
|
|
|
|
|
|