Last change
on this file since 957 was
944,
checked in by Argimiro Resende Secchi, 10 years ago
|
Adding Block-Oriented library by Jonathan Ospino Pinedo
|
File size:
1.1 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 is distributed under the terms of the ALSOC LICENSE as |
---|
9 | * available at http://www.enq.ufrgs.br/alsoc. |
---|
10 | *----------------------------------------------------------------------- |
---|
11 | * Author: Jonathan Ospino P. |
---|
12 | * $Id: Gain.mso 2012$ |
---|
13 | *---------------------------------------------------------------------*# |
---|
14 | |
---|
15 | using "types"; |
---|
16 | |
---|
17 | Model Gain |
---|
18 | |
---|
19 | ATTRIBUTES |
---|
20 | Pallete=true; |
---|
21 | Icon="icon/Gain"; |
---|
22 | Info="== Gain block == |
---|
23 | |
---|
24 | It takes an input variable and computes |
---|
25 | the respective value of the output variable according |
---|
26 | to a proportional gain function."; |
---|
27 | |
---|
28 | PARAMETERS |
---|
29 | |
---|
30 | K as Real(Brief="Gain"); |
---|
31 | |
---|
32 | |
---|
33 | VARIABLES |
---|
34 | in In as Real(Brief="Input variable",Protected=true,PosX=0,PosY=0.5); |
---|
35 | out Out as Real(Brief="Output variable",Protected=true,PosX=1,PosY=0.5); |
---|
36 | |
---|
37 | EQUATIONS |
---|
38 | "Proportional Gain" |
---|
39 | Out=K*In; |
---|
40 | |
---|
41 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.