can any one tell me the way how can run GUI from a simulink
model
i mean if run tries to run my simulink model such that i
need to run GUI at the same time..
i tried to store the output from my simulink model to
workspce and try to get the workspace values read back to
GUI but i cannt run my simulink and GUI simultaneously
"madhavi " <ka_madhavilatha@yahoo.com> wrote in message
<g3ddqe$r4m$1@fred.mathworks.com>...
> hi
>
> can any one tell me the way how can run GUI from a simulink
> model
> i mean if run tries to run my simulink model such that i
> need to run GUI at the same time..
>
> i tried to store the output from my simulink model to
> workspce and try to get the workspace values read back to
> GUI but i cannt run my simulink and GUI simultaneously
>
> can any one help me in this ...........
Hey Madhavi,
do I understand this correctly? You want to start your
simulink model using a GUI?? What else is the GUI used for??
Normally you have two kind of options. You can use the sim
command which is able to change the source worksspace for
variable using simset('SrcWorkspace') as input parameter in
the options field or you use set_param(gcs,
'SimulationCommand', 'start') within the callback function
of one of the GUI controls. For updating any controls in
your GUI depending on current simulation results, see the
following link:
"Stefan Leier" <stefan.leier@diehl-aerospace.de> wrote in
message <g3dk3k$juv$1@fred.mathworks.com>...
> "madhavi " <ka_madhavilatha@yahoo.com> wrote in message
> <g3ddqe$r4m$1@fred.mathworks.com>...
> > hi
> >
> > can any one tell me the way how can run GUI from a
simulink
> > model
> > i mean if run tries to run my simulink model such that
i
> > need to run GUI at the same time..
> >
> > i tried to store the output from my simulink model to
> > workspce and try to get the workspace values read back
to
> > GUI but i cannt run my simulink and GUI simultaneously
> >
> > can any one help me in this ...........
>
> Hey Madhavi,
>
> do I understand this correctly? You want to start your
> simulink model using a GUI?? What else is the GUI used
for??
>
> Normally you have two kind of options. You can use the sim
> command which is able to change the source worksspace for
> variable using simset('SrcWorkspace') as input parameter
in
> the options field or you use set_param(gcs,
> 'SimulationCommand', 'start') within the callback function
> of one of the GUI controls. For updating any controls in
> your GUI depending on current simulation results, see the
> following link:
>
> http://www.mathworks.com/support/solutions/data/
> 1-5OKJMH.html?solution=1-5OKJMH
>
> Hope this helps.
>
> Regards,
> Stefan
hi stefan
thanks for ur information but tht is not working properly
it is nt updating the values in the edit window
and actually wt my condition is
i will try to run my simulink model by supply some inputs
while i tries to give inputs to simulink model actually the
outputs from that model has to go as inputs to GUI such tht
the blocks i used there is lke angular gauge ActiveX
control and knob ActiveX controls has to show the readings
accordingly to the output values tht cme from the model
so here in the link wt u provided is like it tries to
stop/start the simulink i no need tht GUI has to update
with the changes tht happens in the model
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Disclaimer prior to use.