Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: ceiling or floor block
Date: Mon, 3 Sep 2007 19:19:04 -0400
Organization: The MathWorks, Inc.
Lines: 24
Message-ID: <fbi4p8$nb5$1@fred.mathworks.com>
References: <fbafe4$ngu$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1188861544 23909 144.212.105.187 (3 Sep 2007 23:19:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 3 Sep 2007 23:19:04 +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.3138
Xref: news.mathworks.com comp.soft-sys.matlab:426822




"Steve " <steveDEL.bachmeierDEL@yahoo.com> wrote in message 
news:fbafe4$ngu$1@fred.mathworks.com...
> Is there a block where I can limit an input between a lower
> and upper value?  I have a proportional controller, but I
> want to limit the output of the gain to a value in case my
> error gets too large.  As of now I pass the gain's output
> into an m-file with

*snip*

Look at the Saturation block:

http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/saturation.html

or perhaps MinMax:

http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/minmax.html

-- 
Steve Lord
slord@mathworks.com