Ignore:
Timestamp:
Oct 29, 2009, 11:02:01 AM (13 years ago)
Author:
gerson bicca
Message:

pi controller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/eml/controllers/pi.mso

    r686 r870  
    99PARAMETERS
    1010        Kp              as Real         (Brief="Controller gain", Default=0.5);
    11         Ki                      as Real         (Brief="Integral time constant", Unit='s');
     11        Ki              as Real         (Brief="Integral time constant", Unit='s');
    1212        bias            as Real         (Brief="Previous scaled bias",Default=0.5);
    1313
     
    1616       
    1717VARIABLES
    18         in              Input           as control_signal       (Brief="Previous scaled input signal", Default=0.5, PosX=0, PosY=0.5);
    19         out     Output     as control_signal    (Brief="Scaled output signal", Default=0, PosX=0.54, PosY=1);
    20         SetPoint                as Real                                 (Brief="Scaled setPoint", Lower=0, Upper=1, Default=0.5);
     18        in      Input     as control_signal     (Brief="Previous scaled input signal", Default=0.5, PosX=0, PosY=0.5, Protected=true);
     19        out     Output    as control_signal     (Brief="Scaled output signal", Default=0, PosX=0.54, PosY=1, Protected=true);
    2120       
    22         input                   as Real    (Brief="Scaled input variable", Hidden=true);
    23         setPoint                as Real    (Brief="Scaled set point", Hidden=true);
     21        input           as Real    (Brief="Scaled input variable", Hidden=true);
     22        setPoint        as Real    (Brief="Scaled set point", Hidden=true);
    2423        intTerm         as Real    (Brief="Integral term", Default=0, Protected=true);
    25         outps                   as Real    (Brief="Variable outp scaled between 0 and 1", Hidden=true);
     24        outps           as Real    (Brief="Variable outp scaled between 0 and 1", Hidden=true);
    2625       
     26        SetPoint   as Real     (Brief="Scaled setPoint", Lower=0, Upper=1, Default=0.5);
     27
    2728EQUATIONS
    2829
     
    4647        end
    4748
    48         INITIAL
     49INITIAL
    4950        intTerm = 0;
     51
    5052end
    5153
Note: See TracChangeset for help on using the changeset viewer.