source: mso/eml/controllers/iae.mso @ 53

Last change on this file since 53 was 53, checked in by Argimiro Resende Secchi, 16 years ago

Remove unused commands and fix "Ratio".

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 821 bytes
Line 
1#*----------------------------------------------------------------------
2* Model IAE
3*-----------------------------------------------------------------------
4* - Inputs
5*               - One input signal
6*               - a setpoint signal
7*
8* - Outputs
9*               - One output signal
10*
11* - Assumptions
12*
13*-----------------------------------------------------------------------
14* Author: Tiago Osório
15* $Id: iae.mso 53 2006-11-12 19:08:30Z arge $
16*---------------------------------------------------------------------*#
17
18using "types";
19 
20 
21Model IAE
22
23        VARIABLES
24        input    as Real (Brief="input signal");
25        output   as Real (Brief="output signal", Unit="s");
26        setPoint as Real (Brief="setpoint");
27        absError as Real (Brief="absolute error");
28       
29        EQUATIONS
30       
31        "Absolute error definition"
32        absError = abs(setPoint-input);
33
34        "Calculate output"
35        diff(output)=absError;
36       
37        INITIAL
38        output=0*"s";
39
40end
Note: See TracBrowser for help on using the repository browser.