source: trunk/Block-Oriented EML/Control Systems/Low_Selector.mso @ 986

Last change on this file since 986 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: Low_Selector.mso  2012$
13*---------------------------------------------------------------------*#
14
15using "types";
16
17Model LS
18
19ATTRIBUTES
20
21Pallete=true;
22Icon="icon/LS";
23Info="== Low-Selector block ==
24
25          It takes two input variables and compares them for selecting the lowest value of them.
26          The resulting value is assigned to the output variable";
27
28
29VARIABLES
30
31in In1 as Real(Brief="First input signal",PosX=0,PosY=0.2);
32in In2 as Real(Brief="Second input signal",PosX=0,PosY=0.8);
33out Out as Real(Brief="Lowest value",Protected=true,PosX=1,PosY=0.5);
34
35
36EQUATIONS
37
38if In1<=In2 then
39        Out=In1;
40else
41        Out=In2;
42end
43
44end
Note: See TracBrowser for help on using the repository browser.