simulink and gui across workspace
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
in simulinke model there is a "to workspace " assume its var is "sout" that i want this var "sout" identified by my gui program
採用された回答
TAB
2012 年 7 月 2 日
Simulink data from To Workspace block is always saved in Matlab base workspace. So your variable "sout" will appear in matlab base workspace after the simulation.
You can access this variable in you GUI program (or in any other) function using
data = evalin('base','sout');
Using this, values in "sout" from base workspace will be copied in variable "data".
9 件のコメント
mohamed al-asklany
2012 年 7 月 2 日
perfect ,that is very nice but if smulinke still running can i use the same expression
TAB
2012 年 7 月 2 日
No. Simulink saves all the data through To Workspace block only after the completion of simulation. So this data will not be available during simulation.
mohamed al-asklany
2012 年 7 月 2 日
that is a big problem ,i need another way to send data to my gui ?
Kaustubha Govind
2012 年 7 月 2 日
If you want to access your data during simulation, please see http://www.mathworks.com/help/toolbox/simulink/ug/f13-92122.html
Alternatively, you could write a MATLAB S-function block that is connected at the appropriate signals to update your GUI.
mohamed al-asklany
2012 年 7 月 4 日
need simple solution
mohamed al-asklany
2012 年 7 月 5 日
done thanks for you all still simple problem this function make my gui slower and the function can not run when i run another thing in my gui
TAB
2012 年 7 月 5 日
What another thing you are running in your GUI ?
mohamed al-asklany
2013 年 7 月 17 日
antenna radar scope contain order pause(.05)
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Prepare Model Inputs and Outputs についてさらに検索
タグ
参考
2012 年 7 月 1 日
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
