#*------------------------------------------------------------------- * EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC. * * This LIBRARY is free software; you can distribute it and/or modify * it under the therms of the ALSOC FREE LICENSE as available at * http://www.enq.ufrgs.br/alsoc. * * EMSO is distributed under the terms of the ALSOC LICENSE as * available at http://www.enq.ufrgs.br/alsoc. *----------------------------------------------------------------------- * Author: Jonathan Ospino P. * $Id: Low_Selector.mso 2012$ *---------------------------------------------------------------------*# using "types"; Model LS ATTRIBUTES Pallete=true; Icon="icon/LS"; Info="== Low-Selector block == It takes two input variables and compares them for selecting the lowest value of them. The resulting value is assigned to the output variable"; VARIABLES in In1 as Real(Brief="First input signal",PosX=0,PosY=0.2); in In2 as Real(Brief="Second input signal",PosX=0,PosY=0.8); out Out as Real(Brief="Lowest value",Protected=true,PosX=1,PosY=0.5); EQUATIONS if In1<=In2 then Out=In1; else Out=In2; end end