I want to use timer object in Matlab Mobile while connected using matlab cloud, but it not work when i execute start () function except one. what can i do an other way execute after a while continuously? Thanking in advance.

Answers (1)

Did you set the ExecutionMode property of the timer object to a value other than the default, which is 'singleShot'?

3 Comments

yes, but not work as in PC. I think it(timer) doesn't work properly in Matlab Mobile app. thanks.
Show the exact code you ran to create the timer object.
>>t=timer
>>set(t,'executionMode', 'fixedSpacing') %%I had used other execution modes but result was same.
>>set(t, 'timerFcn', 'disp("Hello world!")')
>>start(t)
Hello world!
(it's not run again like computer. run in background as period)
>>

Sign in to comment.

Communities

More Answers in the  Distance Learning Community

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!