Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

ModelWorkpace disappear under model explorer on R2010bSP1

Asked by Shameer Parmar on 14 Feb 2013

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

Kaustubha Govind on 14 Feb 2013

That seems strange. What is the block referenced by "gcb" in this situation? Does this happen for any other get_param command, or only for this particular block/parameter combination?

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 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.. :-)

Shameer Parmar

Tags

Products

1 Answer

Answer by Shameer Parmar on 24 Feb 2013
Accepted answer

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 Comments

Shameer Parmar

Contact us