Path: news.mathworks.com!not-for-mail
From: "Phil Goddard" <philgoddardNOSPAM@telus.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: variable time step in simulink
Date: Tue, 15 Apr 2008 23:50:19 +0000 (UTC)
Organization: Goddard Consulting
Lines: 18
Message-ID: <fu3evr$ib2$1@fred.mathworks.com>
References: <fttdlm$c43$1@fred.mathworks.com> <ftuimm$1bo$1@fred.mathworks.com> <fu326i$dn8$1@fred.mathworks.com>
Reply-To: "Phil Goddard" <philgoddardNOSPAM@telus.net>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1208303419 18786 172.30.248.37 (15 Apr 2008 23:50:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 15 Apr 2008 23:50:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 26433
Xref: news.mathworks.com comp.soft-sys.matlab:463195



Your problem doesn't sound too difficult, although giving 
you a specific answer without seeing the exact model is 
difficult.

You're going to have to use some combination of Triggered 
and Enabled subsystems from the "Ports & Subsystems" 
library, possibly in conjunction with one of the 
counter/timers within the "Sources" library.
Some of the flow control blocks like "If" and "If Action" 
subsystems may also come into play.

It sounds as if you may have already done that, although in 
a manner that you consider messy.
The next step may be an S-function (although I don't think 
you're going to need to do this).

Phil.