source: mso/eml/controllers/Comparator.mso @ 8

Last change on this file since 8 was 1, checked in by Rafael de Pelegrini Soares, 17 years ago

Initial import of the library

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 704 bytes
Line 
1#*----------------------------------------------------------------------
2* Model Comparator
3*-----------------------------------------------------------------------
4* - Inputs
5*               - Two different input signals
6*
7* - Outputs
8*               - One output signal
9*
10* - Assumptions
11*
12*
13*-----------------------------------------------------------------------
14* Author: Tiago Osório
15* $Id: Comparator.mso 1 2006-06-20 17:33:53Z rafael $
16*---------------------------------------------------------------------*#
17
18using "types";
19 
20Model comparator
21
22        PARAMETERS
23       
24        VARIABLES
25        input1 as Real (Brief="input signal 1");
26        input2 as Real (Brief="input signal 2");
27        output as Real (Brief="output signal");
28
29        EQUATIONS
30       
31        "Calculate output"
32        output=input1-input2;
33       
34        INITIAL
35
36end
Note: See TracBrowser for help on using the repository browser.