Dynamic icon drawing in Simulink masked subsystem is not working...
古いコメントを表示
How to draw an icon in a Simulink masked subsystem based on scope output to the workspace? I used to run a Simulink model twice and get an icon with a plot of the results of a simulated system that was saved in the workspace. But this doesn't work anymore! For example: Simulates G(s)=1/(s+1) as a masked subsystem that encloses G(s)and a scope. Set the scope parameters history to output data to workspace (after a simulation run!). Scope->save data to workspace-> x In the masked subsystem an icon is drawn as: plot(x.time,x.signals.values) In the first run question marks (???) appeared in the block icon, but after the model was simulated, the workspace variables were instantiated and then in a second run the icons displayed the previous results. In that way someone can display a set of results as icons in the Simulink window itself. This used to work in R2009a but is not working anymore in R2011a. What have changed, or what can I do to return to the previous nice behaviour?
回答 (1 件)
Kaustubha Govind
2012 年 3 月 12 日
0 投票
It looks like some error is occurring in one or more of the drawing commands. You could try running the commands like the PLOT command you mentioned from the MATLAB prompt. You should see the variable "x" in the workspace after the first run.
3 件のコメント
Anisio Braga
2012 年 3 月 12 日
Kaustubha Govind
2012 年 3 月 13 日
Hmm.. strange case - so you're saying that the exact same model works in R2009a - you didn't add any other subsystem layers around it in R2011a?
abdallah mohammed
2017 年 3 月 6 日
i have the same probelm "Warning: Could not evaluate MaskDisplay commands of block"
カテゴリ
ヘルプ センター および File Exchange で Subsystems についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!