<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168514</link>
    <title>MATLAB Central Newsreader - communication between simulink and matlab gui</title>
    <description>Feed for thread: communication between simulink and matlab gui</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 30 Apr 2008 10:20:03 -0400</pubDate>
      <title>communication between simulink and matlab gui</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168514#429548</link>
      <author>Andrea Monastero</author>
      <description>Hi.&lt;br&gt;
I've got a matlab GUI. I want to read outputs of some&lt;br&gt;
simulink blocks from the GUI program and update in real-time&lt;br&gt;
some values of text boxes of the GUI. How can I do?&lt;br&gt;
&lt;br&gt;
Thanks.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 01 May 2008 04:49:03 -0400</pubDate>
      <title>Re: communication between simulink and matlab gui</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168514#429713</link>
      <author>Ashwini Deshpande</author>
      <description>"Andrea Monastero" &amp;lt;andrea.monastero@gmail.com&amp;gt; wrote in&lt;br&gt;
message &amp;lt;fv9h4j$t6d$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi.&lt;br&gt;
&amp;gt; I've got a matlab GUI. I want to read outputs of some&lt;br&gt;
&amp;gt; simulink blocks from the GUI program and update in real-time&lt;br&gt;
&amp;gt; some values of text boxes of the GUI. How can I do?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks.&lt;br&gt;
&lt;br&gt;
Hai,&lt;br&gt;
&lt;br&gt;
You can write the Simulink Block output values into a .mat&lt;br&gt;
file using 'To File' block and read the same file from the&lt;br&gt;
matlab GUI.&lt;br&gt;
&lt;br&gt;
or else similarly you can also make use of 'To Workspace'&lt;br&gt;
block and then read the workspace parameters from the matlab&lt;br&gt;
GUI.&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
Ashwini&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 01 May 2008 10:38:04 -0400</pubDate>
      <title>Re: communication between simulink and matlab gui</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168514#429751</link>
      <author>Andrea Monastero</author>
      <description>Yes I know, but in this way, if I run the simulation from&lt;br&gt;
the GUI with the command "sim(...)", I've got to wait the&lt;br&gt;
end of the simulation before execute the instruction which&lt;br&gt;
reads the file. I need a real time response...&lt;br&gt;
&lt;br&gt;
"Ashwini Deshpande" &amp;lt;vd.ashwini@mathworks.com&amp;gt; wrote in&lt;br&gt;
message &amp;lt;fvbi3v$624$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&lt;br&gt;
...&lt;br&gt;
&lt;br&gt;
&amp;gt; You can write the Simulink Block output values into a .mat&lt;br&gt;
&amp;gt; file using 'To File' block and read the same file from the&lt;br&gt;
&amp;gt; matlab GUI.&lt;br&gt;
&lt;br&gt;
... &lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 01 May 2008 16:41:37 -0400</pubDate>
      <title>Re: communication between simulink and matlab gui</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168514#429799</link>
      <author>Ralph Schleicher</author>
      <description>"Andrea Monastero" &amp;lt;andrea.monastero@gmail.com&amp;gt; writes:&lt;br&gt;
&lt;br&gt;
&amp;gt; Yes I know, but in this way, if I run the simulation from&lt;br&gt;
&amp;gt; the GUI with the command "sim(...)", I've got to wait the&lt;br&gt;
&amp;gt; end of the simulation before execute the instruction which&lt;br&gt;
&amp;gt; reads the file. I need a real time response...&lt;br&gt;
&lt;br&gt;
Use set_param(bdroot, 'SimulationCommand', 'Start') to run&lt;br&gt;
the simulation asynchronously.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Ralph Schleicher, Freelance Engineer    &lt;a href="http://ralph-schleicher.de"&gt;http://ralph-schleicher.de&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Development * Consulting * Training&lt;br&gt;
Mathematical Modeling and Simulation&lt;br&gt;
Software Tools&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 09 May 2008 22:57:03 -0400</pubDate>
      <title>Re: communication between simulink and matlab gui</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168514#431311</link>
      <author>elizabeth weitzel</author>
      <description>Is there a way to plot in a GUI window, realtime, the &lt;br&gt;
values that are being generated by a simulink model? Like &lt;br&gt;
having a scope but within a GUI screen?&lt;br&gt;
&lt;br&gt;
-Beth W.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Ralph Schleicher &amp;lt;rs@ralph-schleicher.de&amp;gt; wrote in message &lt;br&gt;
&amp;lt;878wyuvuwu.fsf@echo.mueller-schleicher.i&amp;gt;...&lt;br&gt;
&amp;gt; "Andrea Monastero" &amp;lt;andrea.monastero@gmail.com&amp;gt; writes:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Yes I know, but in this way, if I run the simulation &lt;br&gt;
from&lt;br&gt;
&amp;gt; &amp;gt; the GUI with the command "sim(...)", I've got to wait &lt;br&gt;
the&lt;br&gt;
&amp;gt; &amp;gt; end of the simulation before execute the instruction &lt;br&gt;
which&lt;br&gt;
&amp;gt; &amp;gt; reads the file. I need a real time response...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Use set_param(bdroot, 'SimulationCommand', 'Start') to &lt;br&gt;
run&lt;br&gt;
&amp;gt; the simulation asynchronously.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Ralph Schleicher, Freelance Engineer    &lt;a href="http://ralph-"&gt;http://ralph-&lt;/a&gt;&lt;br&gt;
schleicher.de&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Development * Consulting * Training&lt;br&gt;
&amp;gt; Mathematical Modeling and Simulation&lt;br&gt;
&amp;gt; Software Tools&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sat, 10 May 2008 08:05:14 -0400</pubDate>
      <title>Re: communication between simulink and matlab gui</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168514#431333</link>
      <author>Ralph Schleicher</author>
      <description>"elizabeth weitzel" &amp;lt;elizabeth.weitzel@baesystems.com&amp;gt; writes:&lt;br&gt;
&lt;br&gt;
&amp;gt; Is there a way to plot in a GUI window, realtime, the &lt;br&gt;
&amp;gt; values that are being generated by a simulink model? Like &lt;br&gt;
&amp;gt; having a scope but within a GUI screen?&lt;br&gt;
&lt;br&gt;
Yes of course.  Add a call-back function to your GUI returning&lt;br&gt;
the handles of the UI objects.  Write an M-file S-function with&lt;br&gt;
the Simulink signals as input.  Query and cache the UI object&lt;br&gt;
handles in the StartFcn, then update the UI objects in the&lt;br&gt;
mdlUpdate procedure.  Done that, works like a charm.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Ralph Schleicher, Freelance Engineer    &lt;a href="http://ralph-schleicher.de"&gt;http://ralph-schleicher.de&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Development * Consulting * Training&lt;br&gt;
Mathematical Modeling and Simulation&lt;br&gt;
Software Tools&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 13 May 2008 20:53:49 -0400</pubDate>
      <title>Re: communication between simulink and matlab gui</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168514#431900</link>
      <author>elizabeth weitzel</author>
      <description>Thank you very much Ralph. It worked beautifully. &lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 11 Jun 2008 12:56:02 -0400</pubDate>
      <title>Re: communication between simulink and matlab gui</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168514#436903</link>
      <author>Irfan </author>
      <description>"elizabeth weitzel" &amp;lt;elizabeth.weitzel@baesystems.com&amp;gt; &lt;br&gt;
wrote in message &amp;lt;g0cv4t$g79$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Thank you very much Ralph. It worked beautifully. &lt;br&gt;
&lt;br&gt;
Hello Elizabeth&lt;br&gt;
&lt;br&gt;
Could you be kind to post an example for plotting realtime &lt;br&gt;
graphs in GUI&lt;br&gt;
&lt;br&gt;
IrFaN&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 11 Jul 2008 13:04:04 -0400</pubDate>
      <title>Re: communication between simulink and matlab gui</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168514#442483</link>
      <author>Martin Burger</author>
      <description>"Irfan " &amp;lt;irfaan88@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g2oi12$m4u$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "elizabeth weitzel" &amp;lt;elizabeth.weitzel@baesystems.com&amp;gt; &lt;br&gt;
&amp;gt; wrote in message &amp;lt;g0cv4t$g79$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Thank you very much Ralph. It worked beautifully. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hello Elizabeth&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Could you be kind to post an example for plotting realtime &lt;br&gt;
&amp;gt; graphs in GUI&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; IrFaN&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Dear Ralph, Dear Elizabeth,&lt;br&gt;
&lt;br&gt;
could you exemplify that problem ... &lt;br&gt;
&lt;br&gt;
"Add a call-back function to your GUI returning&lt;br&gt;
the handles of the UI objects. Write an M-file S-function with&lt;br&gt;
the Simulink signals as input. Query and cache the UI object&lt;br&gt;
handles in the StartFcn, then update the UI objects in the&lt;br&gt;
mdlUpdate procedure. "&lt;br&gt;
&lt;br&gt;
or provide mor detail&lt;br&gt;
&lt;br&gt;
Thanks in advance&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Martin  &lt;br&gt;
</description>
    </item>
  </channel>
</rss>
