<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167480</link>
    <title>MATLAB Central Newsreader - variable time step in simulink</title>
    <description>Feed for thread: variable time step in simulink</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>Sun, 13 Apr 2008 16:51:02 -0400</pubDate>
      <title>variable time step in simulink</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167480#426374</link>
      <author>Omni Domni</author>
      <description>Hello,&lt;br&gt;
&lt;br&gt;
I have a simple subsystem that adds two numbers, A and B.&lt;br&gt;
&lt;br&gt;
While A and B change in a continuous way, I need the &lt;br&gt;
output (that is A+B) to be updated in a discrete rate, &lt;br&gt;
that varies as the simulation progresses. &lt;br&gt;
&lt;br&gt;
If I wanted a constant rate (say 5secs) using a 'sum' &lt;br&gt;
block with 'sample time = 5' would be enough. Is there any &lt;br&gt;
way to change the sample time dynamically?&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 14 Apr 2008 03:23:02 -0400</pubDate>
      <title>Re: variable time step in simulink</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167480#426414</link>
      <author>Phil Goddard</author>
      <description>&lt;br&gt;
Can you explain how the model determines when the next &lt;br&gt;
sample rate will be?&lt;br&gt;
Is it based on a random number? On the comparison of two &lt;br&gt;
(or more) signals? Something else?&lt;br&gt;
Knowing this should help in giving you some ideas on how to &lt;br&gt;
proceed.&lt;br&gt;
&lt;br&gt;
Phil.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 15 Apr 2008 20:12:02 -0400</pubDate>
      <title>Re: variable time step in simulink</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167480#426817</link>
      <author>Omni Domni</author>
      <description>"Phil Goddard" &amp;lt;philgoddardNOSPAM@telus.net&amp;gt; wrote in &lt;br&gt;
message &amp;lt;ftuimm$1bo$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Can you explain how the model determines when the next &lt;br&gt;
&amp;gt; sample rate will be?&lt;br&gt;
&amp;gt; Is it based on a random number? On the comparison of two &lt;br&gt;
&amp;gt; (or more) signals? Something else?&lt;br&gt;
&amp;gt; Knowing this should help in giving you some ideas on how &lt;br&gt;
to &lt;br&gt;
&amp;gt; proceed.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Phil.&lt;br&gt;
&lt;br&gt;
Thanks for answering Phil.&lt;br&gt;
To be more specific, my problem has to do with a control &lt;br&gt;
system. When a change is detected in the controlled &lt;br&gt;
variable the control system responds to it after an &lt;br&gt;
initial time delay say 10 seconds.&lt;br&gt;
If the controlled variable hasn't been restored to the &lt;br&gt;
desired value after the first action, the following &lt;br&gt;
control system responces should be in time intervals of, &lt;br&gt;
say 2 seconds. The rest of the system runs in continuous &lt;br&gt;
time.&lt;br&gt;
My first solution was definitely not good, so I'm &lt;br&gt;
searching for a better way to implement such a kind of &lt;br&gt;
systems in simulink. I hope I haven't missed any reset-&lt;br&gt;
enabled triggered time-counting blocks. &lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 15 Apr 2008 23:50:19 -0400</pubDate>
      <title>Re: variable time step in simulink</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167480#426853</link>
      <author>Phil Goddard</author>
      <description>&lt;br&gt;
Your problem doesn't sound too difficult, although giving &lt;br&gt;
you a specific answer without seeing the exact model is &lt;br&gt;
difficult.&lt;br&gt;
&lt;br&gt;
You're going to have to use some combination of Triggered &lt;br&gt;
and Enabled subsystems from the "Ports &amp; Subsystems" &lt;br&gt;
library, possibly in conjunction with one of the &lt;br&gt;
counter/timers within the "Sources" library.&lt;br&gt;
Some of the flow control blocks like "If" and "If Action" &lt;br&gt;
subsystems may also come into play.&lt;br&gt;
&lt;br&gt;
It sounds as if you may have already done that, although in &lt;br&gt;
a manner that you consider messy.&lt;br&gt;
The next step may be an S-function (although I don't think &lt;br&gt;
you're going to need to do this).&lt;br&gt;
&lt;br&gt;
Phil.&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
