source: mso/eml/controllers/ise.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: 810 bytes
Line 
1#*----------------------------------------------------------------------
2* Model ISE
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 53 2006-11-12 19:08:30Z arge $
16*---------------------------------------------------------------------*#
17
18using "types";
19 
20 
21Model ISE
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        sqError  as Real (Brief="error^2");
28       
29        EQUATIONS
30       
31        "Square error definition"
32        sqError = (setPoint-input)^2;
33       
34        "Calculate output"
35        diff(output)=sqError;
36       
37        INITIAL
38        output=0*"s";
39
40end
Note: See TracBrowser for help on using the repository browser.