Dynamic icon drawing in Simulink masked subsystem is not working...
Mostrar comentarios más antiguos
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?
Respuestas (1)
Kaustubha Govind
el 12 de Mzo. de 2012
0 votos
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 comentarios
Anisio Braga
el 12 de Mzo. de 2012
Kaustubha Govind
el 13 de Mzo. de 2012
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
el 6 de Mzo. de 2017
i have the same probelm "Warning: Could not evaluate MaskDisplay commands of block"
Categorías
Más información sobre Subsystems en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!