source: mso/eml/controllers/ise.mso @ 8

Last change on this file since 8 was 1, checked in by Rafael de Pelegrini Soares, 17 years ago

Initial import of the library

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 823 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: ise.mso 1 2006-06-20 17:33:53Z rafael $
16*---------------------------------------------------------------------*#
17
18using "types";
19 
20 
21Model ISE
22
23        PARAMETERS
24
25        VARIABLES
26        input    as Real (Brief="input signal");
27        output   as Real (Brief="output signal", Unit="s");
28        setPoint as Real (Brief="setpoint");
29        sqError  as Real (Brief="error^2");
30       
31        EQUATIONS
32       
33        "Square error definition"
34        sqError = (setPoint-input)^2;
35       
36        "Calculate output"
37        diff(output)=sqError;
38       
39        INITIAL
40        output=0*"s";
41
42end
Note: See TracBrowser for help on using the repository browser.