Clear Filters
Clear Filters

ModelWorkpace disappear under model explorer on R2010bSP1

1 view (last 30 days)
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 Comments
Shameer Parmar
Shameer Parmar on 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 on 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.. :-)

Sign in to comment.

Accepted Answer

Shameer Parmar
Shameer Parmar on 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.. :-)

More Answers (0)

Categories

Find more on Simulink Functions in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!