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!