Dynamic icon drawing in Simulink masked subsystem is not working...
Mostra commenti meno recenti
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?
Risposte (1)
Kaustubha Govind
il 12 Mar 2012
0 voti
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 Commenti
Anisio Braga
il 12 Mar 2012
Kaustubha Govind
il 13 Mar 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
il 6 Mar 2017
i have the same probelm "Warning: Could not evaluate MaskDisplay commands of block"
Categorie
Scopri di più su Interactive Model Editing in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!