Thread Subject: Run GUI from simulink model

Subject: Run GUI from simulink model

From: madhavi

Date: 19 Jun, 2008 10:53:02

Message: 1 of 3

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

Subject: Run GUI from simulink model

From: Stefan Leier

Date: 19 Jun, 2008 12:40:20

Message: 2 of 3

"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

Subject: Run GUI from simulink model

From: madhavi

Date: 20 Jun, 2008 11:01:02

Message: 3 of 3

"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

can u help me in ths ............

madhavi













Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
running gui from simulink model madhavi 20 Jun, 2008 07:05:07
run gui from simulink model madhavi 19 Jun, 2008 06:55:04
rssFeed for this Thread

Public Submission Policy

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.

Contact us at files@mathworks.com