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 回表示 (過去 30 日間)
I explain in question section.

回答 (1 件)

Steven Lord
Steven Lord 2018 年 5 月 4 日
Did you set the ExecutionMode property of the timer object to a value other than the default, which is 'singleShot'?
  3 件のコメント
Steven Lord
Steven Lord 2018 年 5 月 4 日
Show the exact code you ran to create the timer object.
Md. Habibur Rahman Rahman
Md. Habibur Rahman Rahman 2018 年 5 月 5 日
編集済み: Walter Roberson 2018 年 5 月 5 日
>>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)
>>

サインインしてコメントする。

コミュニティ

カテゴリ

Help Center および File ExchangeMATLAB Support Package for IP Cameras についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by