MATLAB: How to start running timer

errorpropertyrunrunningtimer

Hi
The default value for the timer's property 'running' os OFF.
When I determine its value to be 'on', like so:
T = timer('TimerFcn',@readimage,'running', 'on', 'Period', 2.0);
it gives me an error, syin that it's impossible:
*??? Error using ==> timer.timer>timer.timer at 117
Changing the 'Running' property of timer objects is not allowed.
Error in ==> timer_me at 10 T = timer('TimerFcn',@readimage,'running', 'on', 'Period', 2.0);
How do I start it?
thanks Matar

Best Answer

Use the START function. I recommend you read the linked doc and look at other links on that page. For example, the STOP function, etc.