Okay, it took me a second to realise what you needed. You want to
restore settings from the previous session -- those of user input.
What you need to do is save these to a file and load them at the start.
I have done something similar before, but to simplify things, I had a
few callback functions which changed buttons, menus, etc. I called them
'schemes'. Think about making a menu entry or a button with a callback
that, for example:
-Sets all the buttons to value '1'.
-Clears all the checkboxes.
-Does a combination of things as in the following code from:
http://www.schestowitz.com/Research/AART_Code/Open_Source_1_5_5/Source/Callbacks/register.m
Do a search for 'scheme' and you'll find the type of functions I'm
talking about...
I hope it helps,
Roy
> This is a multi-part message in MIME format.
>
>
> Dear Mr Roy,
>
> thanks for your advise all along. I need again your valuable suggestion.
>
> could you give me idea on how to save the last input user in the GUI?
>
> so that we will be able to see the last input by the user whenever we
open the model of the simulink.
>
> thanks.
>
> Best Regards, Bekti
>
> ________________________________
>
> From: Roy Schestowitz [mailto:r@schestowitz.com]
> Sent: Wed 12/8/2004 11:27 PM
> To: #BEKTI HARSONO#
> Subject: RE: Need help about GUI (Beginner)
>
>
>
> Hi Bekti,
>
> You will need to find out if a (callback) function is called when you
> double-click a block. If not, then there is nothing you can do. If such
> a function does exist, include under its body something like 'mygui;'
> which will call the GUI that you created.
>
> Roy
>
>
> > This is a multi-part message in MIME format.
> >
> >
> > Hi Roy,
> >
> > Thanks for the advice. It works.
> >
> > However, I got stuck running GUI by double clicking the block
> diagram(or rather block subsystem).
> >
> > Do you have any idea how to do it : Double click the block of the
> simulink, then it pops the GUI.
> >
> > Thanks very much
> >
> > Rgds, Bekti
|
|