From: Sunny Billava on
Hi,

I want to keep the model loaded in the workspace even if model is closed using x-button or File->Close.

As i need the handles to the simulink objects to persist even if the model is accidentally closed. So i was wondering if that is actually possible or not....

Can any one please tell me how this can be done?

Thanks,
Sunny
From: Steven Lord on

"Sunny Billava" <billava.sunny(a)gmail.com> wrote in message
news:hvcddk$4s1$1(a)fred.mathworks.com...
> Hi,
>
> I want to keep the model loaded in the workspace even if model is closed
> using x-button or File->Close.
>
> As i need the handles to the simulink objects to persist even if the model
> is accidentally closed. So i was wondering if that is actually possible or
> not....
>
> Can any one please tell me how this can be done?

Look at the CloseFcn entry in the table on this page:

http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/f23-7515.html

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com


From: Sunny Billava on
"Steven Lord" <slord(a)mathworks.com> wrote in message <hvd94s$bgo$1(a)fred.mathworks.com>...
>
> "Sunny Billava" <billava.sunny(a)gmail.com> wrote in message
> news:hvcddk$4s1$1(a)fred.mathworks.com...
> > Hi,
> >
> > I want to keep the model loaded in the workspace even if model is closed
> > using x-button or File->Close.
> >
> > As i need the handles to the simulink objects to persist even if the model
> > is accidentally closed. So i was wondering if that is actually possible or
> > not....
> >
> > Can any one please tell me how this can be done?
>
> Look at the CloseFcn entry in the table on this page:
>
> http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/f23-7515.html
>
> --
> Steve Lord
> slord(a)mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com
>

Hi Steve,

after the CloseFcn call back, the model still closes. This wont serve my purpose untill there is a command to abort close.

Problem: I want the model to remain loaded so that the handles to simulink objects dont get corrupt.

Thanks,
Sunny