source: branches/newlanguage/eml/controllers/ise.mso @ 144

Last change on this file since 144 was 74, checked in by Paula Bettio Staudt, 17 years ago

Updated controllers files header

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1#*-------------------------------------------------------------------
2* EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC.
3*
4* This LIBRARY is free software; you can distribute it and/or modify
5* it under the therms of the ALSOC FREE LICENSE as available at
6* http://www.enq.ufrgs.br/alsoc.
7*
8* EMSO Copyright (C) 2004 - 2007 ALSOC, original code
9* from http://www.rps.eng.br Copyright (C) 2002-2004.
10* All rights reserved.
11*
12* EMSO is distributed under the therms of the ALSOC LICENSE as
13* available at http://www.enq.ufrgs.br/alsoc.
14*
15*----------------------------------------------------------------------
16* Model ISE
17*-----------------------------------------------------------------------
18* - Inputs
19*               - One input signal
20*               - a setpoint signal
21*
22* - Outputs
23*               - One output signal
24*
25*-----------------------------------------------------------------------
26* Author: Tiago Osório
27* $Id: ise.mso 74 2006-12-08 18:43:02Z paula $
28*---------------------------------------------------------------------*#
29
30using "types";
31 
32 
33Model ISE
34
35        VARIABLES
36        input    as Real (Brief="input signal");
37        output   as Real (Brief="output signal", Unit="s");
38        setPoint as Real (Brief="setpoint");
39        sqError  as Real (Brief="error^2");
40       
41        EQUATIONS
42       
43        "Square error definition"
44        sqError = (setPoint-input)^2;
45       
46        "Calculate output"
47        diff(output)=sqError;
48       
49        INITIAL
50        output=0*"s";
51
52end
Note: See TracBrowser for help on using the repository browser.