source: trunk/eml/controllers/lag_1.mso @ 291

Last change on this file since 291 was 291, checked in by gerson bicca, 15 years ago

added documentation in controllers models

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 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* Author: Tiago Osório
16* $Id: lag_1.mso 291 2007-06-21 17:34:12Z bicca $
17*---------------------------------------------------------------------*#
18
19using "types";
20 
21 
22Model Lag_1
23
24ATTRIBUTES
25        Pallete         = true;
26        Icon            = "Lag_1";
27        Brief           = "Model Lag.";
28        Info            =
29        "
30        - Inputs:
31        * One input signal.
32       
33        - Outputs:
34        * One output signal.
35        ";
36       
37        PARAMETERS
38        gain as positive (Brief="model gain");
39        tau  as positive (Brief="model time constant", Unit='s');
40       
41        VARIABLES
42        input  as Real  (Brief="input signal");
43        output as Real  (Brief="output signal");
44       
45        EQUATIONS
46       
47        "Calculate output"
48        gain*input= tau*diff(output) + output;
49       
50        INITIAL
51        diff(output)=0/'s';
52       
53end
Note: See TracBrowser for help on using the repository browser.