ModelWorkpace disappear under model explorer on R2010bSP1

1 次查看(过去 30 天)
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 个评论
Shameer Parmar
Shameer Parmar 2013-2-15
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 2013-2-24
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.. :-)

请先登录,再进行评论。

采纳的回答

Shameer Parmar
Shameer Parmar 2013-2-24
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.. :-)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by