source: trunk/eml/controllers/iae.mso @ 776

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

Fixing more wiki notation.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
RevLine 
[74]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.
[1]14*-----------------------------------------------------------------------
15* Author: Tiago Osório
16* $Id: iae.mso 354 2007-08-30 17:17:16Z arge $
17*---------------------------------------------------------------------*#
18
19using "types";
20 
21 
22Model IAE
23
[292]24ATTRIBUTES
25        Pallete         = true;
[306]26        Icon            = "icon/IAE";
[292]27        Brief           = "Model IAE.";
28        Info            =
[354]29"== Inputs ==
30* One input signal.
31* One setpoint signal.
[292]32       
[354]33== Outputs ==
34* One output signal.
35";
[292]36       
[1]37        VARIABLES
38        input    as Real (Brief="input signal");
[176]39        output   as Real (Brief="output signal", Unit='s');
[1]40        setPoint as Real (Brief="setpoint");
41        absError as Real (Brief="absolute error");
42       
43        EQUATIONS
44       
45        "Absolute error definition"
46        absError = abs(setPoint-input);
47
48        "Calculate output"
49        diff(output)=absError;
50       
51        INITIAL
[176]52        output=0*'s';
[1]53
54end
Note: See TracBrowser for help on using the repository browser.