why this command does not work

1 回表示 (過去 30 日間)
mohamed  al-asklany
mohamed al-asklany 2012 年 7 月 5 日
"pause ()" i used this command in my function and i use this function in my gui and i acquire data from simulink when i start this function which contain "pause command" data from simulink stopped until i exit the function which contain "pause command" what can i do?
  1 件のコメント
TAB
TAB 2012 年 7 月 9 日
It is not clear, how you are acquiring data from simulink and in which function you are calling pause().
Please explain your problem with neat details.

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

回答 (1 件)

Luffy
Luffy 2012 年 7 月 5 日
編集済み: Walter Roberson 2012 年 7 月 8 日
Try command:
To pause your code at a point try,
uiwait;
at the point where you want to resume execution of your code try,
uiresume;
  3 件のコメント
Luffy
Luffy 2012 年 7 月 6 日
編集済み: Walter Roberson 2012 年 7 月 8 日
So you do not want data from Simulink to stop until you exit function,you still want data to come,
Try ,
pause on;
pause(n) % n is n.o seconds
mohamed  al-asklany
mohamed al-asklany 2012 年 7 月 9 日
編集済み: Walter Roberson 2012 年 7 月 9 日
when i use pause() i can get data from simulink but the other function contain pause command stopped until i exit simulink

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

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by