ModelWorkpace disappear under model explorer on R2010bSP1

2 Ansichten (letzte 30 Tage)
Hello,
I am facing this issue on Matlab R2010bSP1. For my model When I am running script which is having one cammand called "get_param(gcb, 'systemBounds')", it disappear the ModelWorkspace from Model Hierarchy in Model Explorer. This happends only on matlab 2010b and not on R2007b. Can you please help me in retaining it without closing my model?
Note: If I reopen my model it retains the modelworkspace but I want it to retain without closing my model.
Thanks in advance.
  3 Kommentare
Shameer Parmar
Shameer Parmar am 15 Feb. 2013
Thanks Kaustubha for your comment..
The reference of gcb is any subsystem in my model. Even if I just select subsystem on the top level of my model and then just type and run this command from command window, the modelworkspace disappear. You can try this command on any model but only in Matlab2010b (Note: I guess, the model which you will use, it should be created in Matlab 2010b). It retain model workspace only when you reopen that model but I want it to retains without closing my model.
This issue happens only for this command (with any block selected)and other get_param() command working fine.
Please help me out.. :(
Thanks for your response..
Shameer Parmar
Shameer Parmar am 24 Feb. 2013
Hello..
I got resolution for this issue.
gcb (block) dont have the parameter called systembound, So insteadof gcb I should use gcs then it works.
Also if you are subsyem name insteadof gcs them that subsyem should be open before the execution of command get_param(CurrentSystem, systemBounds)
Thanks.. :-)

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Shameer Parmar
Shameer Parmar am 24 Feb. 2013
Hello..
I got resolution for this issue.
gcb (block) dont have the parameter called systembound, So insteadof gcb I should use gcs then it works.
Also if you are subsyem name insteadof gcs them that subsyem should be open before the execution of command get_param(CurrentSystem, systemBounds)
Thanks.. :-)

Weitere Antworten (0)

Kategorien

Mehr zu Simulink Functions finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by