Path: news.mathworks.com!not-for-mail
From: "Omni Domni" <eloykarakh@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: variable time step in simulink
Date: Sun, 13 Apr 2008 16:51:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <fttdlm$c43$1@fred.mathworks.com>
Reply-To: "Omni Domni" <eloykarakh@hotmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1208105462 12419 172.30.248.38 (13 Apr 2008 16:51:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 13 Apr 2008 16:51:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1060012
Xref: news.mathworks.com comp.soft-sys.matlab:462716


Hello,

I have a simple subsystem that adds two numbers, A and B.

While A and B change in a continuous way, I need the 
output (that is A+B) to be updated in a discrete rate, 
that varies as the simulation progresses. 

If I wanted a constant rate (say 5secs) using a 'sum' 
block with 'sample time = 5' would be enough. Is there any 
way to change the sample time dynamically?