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.

2 visualizzazioni (ultimi 30 giorni)
I explain in question section.

Risposte (1)

Steven Lord
Steven Lord il 4 Mag 2018
Did you set the ExecutionMode property of the timer object to a value other than the default, which is 'singleShot'?
  3 Commenti
Md. Habibur Rahman Rahman
Modificato: Walter Roberson il 5 Mag 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)
>>

Accedi per commentare.

Community

Più risposte nel  Distance Learning Community

Categorie

Scopri di più su Engines & Motors in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by