<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265267</link>
    <title>MATLAB Central Newsreader - how to control my input using a code in simulink modeling</title>
    <description>Feed for thread: how to control my input using a code in simulink modeling</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by 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>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sun, 08 Nov 2009 04:57:01 -0500</pubDate>
      <title>how to control my input using a code in simulink modeling</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265267#692957</link>
      <author>Ela </author>
      <description>hello,&lt;br&gt;
&lt;br&gt;
Consider I want to control my input block( like a Dc source in simpower systems category in simulink) using a code( like an M-file code), do u have any suggestion for me?&lt;br&gt;
&lt;br&gt;
to be more specific, i model my system in simulink but the input of my system is changing during the excution ( for example if the output is larger than a value the input should change) how I can control this source(DC voltage) source.&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Ela</description>
    </item>
    <item>
      <pubDate>Mon, 09 Nov 2009 09:41:24 -0500</pubDate>
      <title>Re: how to control my input using a code in simulink modeling</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265267#693164</link>
      <author>Arnaud Miege</author>
      <description>&lt;br&gt;
&quot;Ela &quot; &amp;lt;elahetale@yahoo.com&amp;gt; wrote in message &lt;br&gt;
news:hd5j2t$28l$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; hello,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Consider I want to control my input block( like a Dc source in simpower &lt;br&gt;
&amp;gt; systems category in simulink) using a code( like an M-file code), do u &lt;br&gt;
&amp;gt; have any suggestion for me?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; to be more specific, i model my system in simulink but the input of my &lt;br&gt;
&amp;gt; system is changing during the excution ( for example if the output is &lt;br&gt;
&amp;gt; larger than a value the input should change) how I can control this &lt;br&gt;
&amp;gt; source(DC voltage) source.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks,&lt;br&gt;
&amp;gt; Ela&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
Use a controlled voltage source and feed it whatever signal you want. &lt;br&gt;
Probably best to use Simulink block rather than MATLAB code to construct the &lt;br&gt;
signal. You can change a block parameter once the simulation has started &lt;br&gt;
running using set_param, but a much better approach is to construct the &lt;br&gt;
signal in Simulink and feed it to the controlled voltage source. If you &lt;br&gt;
really have to use MATLAB have a look at the Embedded MATLAB function.&lt;br&gt;
&lt;br&gt;
HTH,&lt;br&gt;
&lt;br&gt;
Arnaud </description>
    </item>
  </channel>
</rss>

