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.

1 vue (au cours des 30 derniers jours)
I explain in question section.

Réponses (1)

Steven Lord
Steven Lord le 4 Mai 2018
Did you set the ExecutionMode property of the timer object to a value other than the default, which is 'singleShot'?
  3 commentaires
Steven Lord
Steven Lord le 4 Mai 2018
Show the exact code you ran to create the timer object.
Md. Habibur Rahman Rahman
Modifié(e) : Walter Roberson le 5 Mai 2018
>>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)
>>

Connectez-vous pour commenter.

Communautés

Plus de réponses dans  Distance Learning Community

Catégories

En savoir plus sur Engines & Motors dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by