Path: news.mathworks.com!not-for-mail
From: "Devdatt Lad" <dlad@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Making a step x seconds after a subsystem is enabled
Date: Thu, 29 May 2008 13:54:27 -0400
Organization: The MathWorks, Inc.
Lines: 25
Message-ID: <g1mqko$pu5$1@fred.mathworks.com>
References: <g1m3qf$qu3$1@fred.mathworks.com>
Reply-To: "Devdatt Lad" <dlad@mathworks.com>
NNTP-Posting-Host: ladd.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1212083672 26565 144.212.111.18 (29 May 2008 17:54:32 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 29 May 2008 17:54:32 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Xref: news.mathworks.com comp.soft-sys.matlab:471219




> I want to use a step source in an enabled subsystem. The
> problem is that I want the step to happen a certain time
> after the subsystem is enabled.
> Should I use a timer? Or is there a more simple way?

Kevin,

You cannot use the Step source block in this case. Try using the "Signal 
From Workspace" block in Signal Processing Blockset / Sources library and 
specify the data as

[0, 0, 0, 0, 0, 1]

Select to "hold final value" from the popup box and set sample time to 1. 
The step will now occur 5 seconds after the subsystem is enabled.

Hope this helps,
Devdatt

-----
Devdatt Lad
The MathWorks, Inc.