Last change
on this file since 303 was
292,
checked in by gerson bicca, 16 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
|
Rev | Line | |
---|
[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 292 2007-06-21 18:00:37Z bicca $ |
---|
| 17 | *---------------------------------------------------------------------*# |
---|
| 18 | |
---|
| 19 | using "types"; |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | Model IAE |
---|
| 23 | |
---|
[292] | 24 | ATTRIBUTES |
---|
| 25 | Pallete = true; |
---|
| 26 | Icon = "iae"; |
---|
| 27 | Brief = "Model IAE."; |
---|
| 28 | Info = |
---|
| 29 | " |
---|
| 30 | - Inputs: |
---|
| 31 | * One input signal. |
---|
| 32 | * One setpoint signal. |
---|
| 33 | |
---|
| 34 | - Outputs: |
---|
| 35 | * One output signal. |
---|
| 36 | "; |
---|
| 37 | |
---|
[1] | 38 | VARIABLES |
---|
| 39 | input as Real (Brief="input signal"); |
---|
[176] | 40 | output as Real (Brief="output signal", Unit='s'); |
---|
[1] | 41 | setPoint as Real (Brief="setpoint"); |
---|
| 42 | absError as Real (Brief="absolute error"); |
---|
| 43 | |
---|
| 44 | EQUATIONS |
---|
| 45 | |
---|
| 46 | "Absolute error definition" |
---|
| 47 | absError = abs(setPoint-input); |
---|
| 48 | |
---|
| 49 | "Calculate output" |
---|
| 50 | diff(output)=absError; |
---|
| 51 | |
---|
| 52 | INITIAL |
---|
[176] | 53 | output=0*'s'; |
---|
[1] | 54 | |
---|
| 55 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.