stopping the timer
- From: "Chalapathi " <chaps_gattupalli@xxxxxxxxxxx>
- Date: Tue, 17 Mar 2009 11:17:41 +0000 (UTC)
hi
i am trying to develop a GUI in which there is a toggle button that atarts and stops the timer so my pseudo code looks like this
val=get(hObject,'Value');
if(val==get(hObject,'Max'))
..
..
..
t=timer('TimerFcn',{@getdat_modified1,handles},'Period',10.0,'ExecutionMode','fixedRate');
start(t);
handles.t=t;
guidata(hObject,handles);
else if(val==get(hObject,'Min'))
t=handles.t;
stop(t);
end
So the problem is --the timer DOES NOT STOP
Also i tried with various options like storing the timer object t in application data of this toggle button still it does not stop. Rather it either gives an error at the line of 'stop(t)' or just does not stop the clock.
i tried to avoid storing 't' timer object in handles or application data and directly say 'stop' even then it does not work... it gives an error.
WHAT SHOULD I DO NOW?
can you please help me.
thanks and regards,
chalapathi
.
- Follow-Ups:
- Re: stopping the timer
- From: Gautam Vallabha
- Re: stopping the timer
- Prev by Date: Can I compose musical tunes using MATLAB/SIMULINK , please help me
- Next by Date: Re: Point Grey camera ( Bumblebee2) image acquisition using MATLAB
- Previous by thread: Can I compose musical tunes using MATLAB/SIMULINK , please help me
- Next by thread: Re: stopping the timer
- Index(es):
Relevant Pages
|