Modelica.Blocks.Interfaces

Library of connectors and partial models for input/output blocks

Information


This package contains interface definitions for continuous input/output blocks with Real, Integer and Boolean signals. Furthermore, it contains partial models for continuous and discrete blocks.

Extends from Modelica.Icons.Library (Icon for library).

Package Content

NameDescription
Modelica.Blocks.Interfaces.RealInput RealInput 'input Real' as connector
Modelica.Blocks.Interfaces.RealOutput RealOutput 'output Real' as connector
Modelica.Blocks.Interfaces.BooleanInput BooleanInput 'input Boolean' as connector
Modelica.Blocks.Interfaces.BooleanOutput BooleanOutput 'output Boolean' as connector
Modelica.Blocks.Interfaces.IntegerInput IntegerInput 'input Integer' as connector
Modelica.Blocks.Interfaces.IntegerOutput IntegerOutput 'output Integer' as connector
Modelica.Blocks.Interfaces.BlockIcon BlockIcon Basic graphical layout of input/output block
Modelica.Blocks.Interfaces.SO SO Single Output continuous control block
Modelica.Blocks.Interfaces.MO MO Multiple Output continuous control block
Modelica.Blocks.Interfaces.SISO SISO Single Input Single Output continuous control block
Modelica.Blocks.Interfaces.SI2SO SI2SO 2 Single Input / 1 Single Output continuous control block
Modelica.Blocks.Interfaces.SIMO SIMO Single Input Multiple Output continuous control block
Modelica.Blocks.Interfaces.MISO MISO Multiple Input Single Output continuous control block
Modelica.Blocks.Interfaces.MIMO MIMO Multiple Input Multiple Output continuous control block
Modelica.Blocks.Interfaces.MIMOs MIMOs Multiple Input Multiple Output continuous control block with same number of inputs and outputs
Modelica.Blocks.Interfaces.MI2MO MI2MO 2 Multiple Input / Multiple Output continuous control block
Modelica.Blocks.Interfaces.SignalSource SignalSource Base class for continuous signal source
Modelica.Blocks.Interfaces.SVcontrol SVcontrol Single-Variable continuous controller
Modelica.Blocks.Interfaces.MVcontrol MVcontrol Multi-Variable continuous controller
Modelica.Blocks.Interfaces.DiscreteBlockIcon DiscreteBlockIcon Graphical layout of discrete block component icon
Modelica.Blocks.Interfaces.DiscreteBlock DiscreteBlock Base class of discrete control blocks
Modelica.Blocks.Interfaces.DiscreteSISO DiscreteSISO Single Input Single Output discrete control block
Modelica.Blocks.Interfaces.DiscreteMIMO DiscreteMIMO Multiple Input Multiple Output discrete control block
Modelica.Blocks.Interfaces.DiscreteMIMOs DiscreteMIMOs Multiple Input Multiple Output discrete control block
Modelica.Blocks.Interfaces.SVdiscrete SVdiscrete Discrete Single-Variable controller
Modelica.Blocks.Interfaces.MVdiscrete MVdiscrete Discrete Multi-Variable controller
Modelica.Blocks.Interfaces.BooleanBlockIcon BooleanBlockIcon Basic graphical layout of Boolean block
Modelica.Blocks.Interfaces.BooleanSISO BooleanSISO Single Input Single Output control block with signals of type Boolean
Modelica.Blocks.Interfaces.BooleanMIMOs BooleanMIMOs Multiple Input Multiple Output continuous control block with same number of inputs and outputs of boolean type
Modelica.Blocks.Interfaces.MI2BooleanMOs MI2BooleanMOs 2 Multiple Input / Boolean Multiple Output block with same signal lengths
Modelica.Blocks.Interfaces.SI2BooleanSO SI2BooleanSO 2 Single Input / Boolean Single Output block
Modelica.Blocks.Interfaces.BooleanSignalSource BooleanSignalSource Base class for Boolean signal sources
Modelica.Blocks.Interfaces.IntegerBlockIcon IntegerBlockIcon Basic graphical layout of Integer block
Modelica.Blocks.Interfaces.IntegerSO IntegerSO Single Integer Output continuous control block
Modelica.Blocks.Interfaces.IntegerMO IntegerMO Multiple Integer Output continuous control block
Modelica.Blocks.Interfaces.IntegerSignalSource IntegerSignalSource Base class for continuous Integer signal source
Modelica.Blocks.Interfaces.IntegerSIBooleanSO IntegerSIBooleanSO Integer Input Boolean Output continuous control block
Modelica.Blocks.Interfaces.IntegerMIBooleanMOs IntegerMIBooleanMOs Multiple Integer Input Multiple Boolean Output continuous control block with same number of inputs and outputs
Modelica.Blocks.Interfaces.partialBooleanBlockIcon partialBooleanBlockIcon Basic graphical layout of logical block
Modelica.Blocks.Interfaces.partialBooleanSISO partialBooleanSISO Partial block with 1 input and 1 output Boolean signal
Modelica.Blocks.Interfaces.partialBooleanSI2SO partialBooleanSI2SO Partial block with 2 input and 1 output Boolean signal
Modelica.Blocks.Interfaces.partialBooleanSI3SO partialBooleanSI3SO Partial block with 3 input and 1 output Boolean signal
Modelica.Blocks.Interfaces.partialBooleanSI partialBooleanSI Partial block with 1 input Boolean signal
Modelica.Blocks.Interfaces.partialBooleanSO partialBooleanSO Partial block with 1 output Boolean signal
Modelica.Blocks.Interfaces.partialBooleanSource partialBooleanSource Partial source block (has 1 output Boolean signal and an appropriate default icon)
Modelica.Blocks.Interfaces.partialBooleanThresholdComparison partialBooleanThresholdComparison Partial block to compare the Real input u with a threshold and provide the result as 1 Boolean output signal
Modelica.Blocks.Interfaces.partialBooleanComparison partialBooleanComparison Partial block with 2 Real input and 1 Boolean output signal (the result of a comparison of the two Real inputs
Modelica.Blocks.Interfaces.Adaptors Adaptors Obsolete package with components to send signals to a bus or receive signals from a bus (only for backward compatibility)
Modelica.Blocks.Interfaces.PartialConversionBlock PartialConversionBlock Partial block defining the interface for conversion blocks


Modelica.Blocks.Interfaces.RealInput Modelica.Blocks.Interfaces.RealInput

'input Real' as connector

Modelica.Blocks.Interfaces.RealInput

Information


Connector with one input signal of type Real.

Extends from Real.

Modelica definition

connector RealInput = input Real "'input Real' as connector";

Modelica.Blocks.Interfaces.RealOutput Modelica.Blocks.Interfaces.RealOutput

'output Real' as connector

Modelica.Blocks.Interfaces.RealOutput

Information


Connector with one output signal of type Real.

Extends from Real.

Modelica definition

connector RealOutput = output Real "'output Real' as connector";

Modelica.Blocks.Interfaces.BooleanInput Modelica.Blocks.Interfaces.BooleanInput

'input Boolean' as connector

Modelica.Blocks.Interfaces.BooleanInput

Information


Connector with one input signal of type Boolean.

Extends from Boolean.

Modelica definition

connector BooleanInput = input Boolean "'input Boolean' as connector";

Modelica.Blocks.Interfaces.BooleanOutput Modelica.Blocks.Interfaces.BooleanOutput

'output Boolean' as connector

Modelica.Blocks.Interfaces.BooleanOutput

Information


Connector with one output signal of type Boolean.

Extends from Boolean.

Modelica definition

connector BooleanOutput = output Boolean "'output Boolean' as connector";

Modelica.Blocks.Interfaces.IntegerInput Modelica.Blocks.Interfaces.IntegerInput

'input Integer' as connector

Modelica.Blocks.Interfaces.IntegerInput

Information


Connector with one input signal of type Integer.

Extends from Integer.

Modelica definition

connector IntegerInput = input Integer "'input Integer' as connector";

Modelica.Blocks.Interfaces.IntegerOutput Modelica.Blocks.Interfaces.IntegerOutput

'output Integer' as connector

Modelica.Blocks.Interfaces.IntegerOutput

Information


Connector with one output signal of type Integer.

Extends from Integer.

Modelica definition

connector IntegerOutput = output Integer "'output Integer' as connector";

Modelica.Blocks.Interfaces.BlockIcon Modelica.Blocks.Interfaces.BlockIcon

Basic graphical layout of input/output block

Information


Block that has only the basic icon for an input/output block (no declarations, no equations). Most blocks of package Modelica.Blocks inherit directly or indirectly from this block.

Modelica definition

partial block BlockIcon 
  "Basic graphical layout of input/output block"


end BlockIcon;

Modelica.Blocks.Interfaces.SO Modelica.Blocks.Interfaces.SO

Single Output continuous control block

Modelica.Blocks.Interfaces.SO

Information


Block has one continuous Real output signal.

Extends from BlockIcon (Basic graphical layout of input/output block).

Connectors

TypeNameDescription
output RealOutputyConnector of Real output signal

Modelica definition

partial block SO "Single Output continuous control block"
  extends BlockIcon;

  RealOutput y "Connector of Real output signal";

end SO;

Modelica.Blocks.Interfaces.MO Modelica.Blocks.Interfaces.MO

Multiple Output continuous control block

Modelica.Blocks.Interfaces.MO

Information


Block has one continuous Real output signal vector.

Extends from BlockIcon (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Integernout1Number of outputs

Connectors

TypeNameDescription
output RealOutputy[nout]Connector of Real output signals

Modelica definition

partial block MO "Multiple Output continuous control block"
  extends BlockIcon;

  parameter Integer nout(min=1) = 1 "Number of outputs";
  RealOutput y[nout] "Connector of Real output signals";

end MO;

Modelica.Blocks.Interfaces.SISO Modelica.Blocks.Interfaces.SISO

Single Input Single Output continuous control block

Modelica.Blocks.Interfaces.SISO

Information


Block has one continuous Real input and one continuous Real output signal.

Extends from BlockIcon (Basic graphical layout of input/output block).

Connectors

TypeNameDescription
input RealInputuConnector of Real input signal
output RealOutputyConnector of Real output signal

Modelica definition

partial block SISO 
  "Single Input Single Output continuous control block"
  extends BlockIcon;

  RealInput u "Connector of Real input signal";
  RealOutput y "Connector of Real output signal";
end SISO;

Modelica.Blocks.Interfaces.SI2SO Modelica.Blocks.Interfaces.SI2SO

2 Single Input / 1 Single Output continuous control block

Modelica.Blocks.Interfaces.SI2SO

Information


Block has two continuous Real input signals u1 and u2 and one continuous Real output signal y.

Extends from BlockIcon (Basic graphical layout of input/output block).

Connectors

TypeNameDescription
input RealInputu1Connector of Real input signal 1
input RealInputu2Connector of Real input signal 2
output RealOutputyConnector of Real output signal

Modelica definition

partial block SI2SO 
  "2 Single Input / 1 Single Output continuous control block"
  extends BlockIcon;

  RealInput u1 "Connector of Real input signal 1";
  RealInput u2 "Connector of Real input signal 2";
  RealOutput y "Connector of Real output signal";


end SI2SO;

Modelica.Blocks.Interfaces.SIMO Modelica.Blocks.Interfaces.SIMO

Single Input Multiple Output continuous control block

Modelica.Blocks.Interfaces.SIMO

Information


Block has one continuous Real input signal and a vector of continuous Real output signals.

Extends from BlockIcon (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Integernout1Number of outputs

Connectors

TypeNameDescription
input RealInputuConnector of Real input signal
output RealOutputy[nout]Connector of Real output signals

Modelica definition

partial block SIMO 
  "Single Input Multiple Output continuous control block"
  extends BlockIcon;
  parameter Integer nout=1 "Number of outputs";
      RealInput u "Connector of Real input signal";
      RealOutput y[nout] "Connector of Real output signals";

end SIMO;

Modelica.Blocks.Interfaces.MISO Modelica.Blocks.Interfaces.MISO

Multiple Input Single Output continuous control block

Modelica.Blocks.Interfaces.MISO

Information


Block has a vector of continuous Real input signals and one continuous Real output signal.

Extends from BlockIcon (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Integernin1Number of inputs

Connectors

TypeNameDescription
input RealInputu[nin]Connector of Real input signals
output RealOutputyConnector of Real output signal

Modelica definition

partial block MISO 
  "Multiple Input Single Output continuous control block"

  extends BlockIcon;
  parameter Integer nin=1 "Number of inputs";
  RealInput u[nin] "Connector of Real input signals";
  RealOutput y "Connector of Real output signal";
end MISO;

Modelica.Blocks.Interfaces.MIMO Modelica.Blocks.Interfaces.MIMO

Multiple Input Multiple Output continuous control block

Modelica.Blocks.Interfaces.MIMO

Information


Block has a continuous Real input and a continuous Real output signal vector. The signal sizes of the input and output vector may be different.

Extends from BlockIcon (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Integernin1Number of inputs
Integernout1Number of outputs

Connectors

TypeNameDescription
input RealInputu[nin]Connector of Real input signals
output RealOutputy[nout]Connector of Real output signals

Modelica definition

partial block MIMO 
  "Multiple Input Multiple Output continuous control block"

  extends BlockIcon;
  parameter Integer nin=1 "Number of inputs";
  parameter Integer nout=1 "Number of outputs";
  RealInput u[nin] "Connector of Real input signals";
  RealOutput y[nout] "Connector of Real output signals";
end MIMO;

Modelica.Blocks.Interfaces.MIMOs Modelica.Blocks.Interfaces.MIMOs

Multiple Input Multiple Output continuous control block with same number of inputs and outputs

Modelica.Blocks.Interfaces.MIMOs

Information


Block has a continuous Real input and a continuous Real output signal vector where the signal sizes of the input and output vector are identical.

Extends from BlockIcon (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Integern1Number of inputs (= number of outputs)

Connectors

TypeNameDescription
input RealInputu[n]Connector of Real input signals
output RealOutputy[n]Connector of Real output signals

Modelica definition

partial block MIMOs 
  "Multiple Input Multiple Output continuous control block with same number of inputs and outputs"

  extends BlockIcon;
  parameter Integer n=1 "Number of inputs (= number of outputs)";
  RealInput u[n] "Connector of Real input signals";
  RealOutput y[n] "Connector of Real output signals";
end MIMOs;

Modelica.Blocks.Interfaces.MI2MO Modelica.Blocks.Interfaces.MI2MO

2 Multiple Input / Multiple Output continuous control block

Modelica.Blocks.Interfaces.MI2MO

Information


Block has two continuous Real input vectors u1 and u2 and one continuous Real output vector y. All vectors have the same number of elements.

Extends from BlockIcon (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Integern1Dimension of input and output vectors.

Connectors

TypeNameDescription
input RealInputu1[n]Connector 1 of Real input signals
input RealInputu2[n]Connector 2 of Real input signals
output RealOutputy[n]Connector of Real output signals

Modelica definition

partial block MI2MO 
  "2 Multiple Input / Multiple Output continuous control block"
  extends BlockIcon;

  parameter Integer n=1 "Dimension of input and output vectors.";

  RealInput u1[n] "Connector 1 of Real input signals";
  RealInput u2[n] "Connector 2 of Real input signals";
  RealOutput y[n] "Connector of Real output signals";

end MI2MO;

Modelica.Blocks.Interfaces.SignalSource Modelica.Blocks.Interfaces.SignalSource

Base class for continuous signal source

Modelica.Blocks.Interfaces.SignalSource

Information


Basic block for Real sources of package Blocks.Sources. This component has one continuous Real output signal y and two parameters (offset, startTime) to shift the generated signal.

Extends from SO (Single Output continuous control block).

Parameters

TypeNameDefaultDescription
Realoffset0Offset of output signal y
TimestartTime0Output y = offset for time < startTime [s]

Connectors

TypeNameDescription
output RealOutputyConnector of Real output signal

Modelica definition

partial block SignalSource "Base class for continuous signal source"
  extends SO;
  parameter Real offset=0 "Offset of output signal y";
  parameter SIunits.Time startTime=0 "Output y = offset for time < startTime";
end SignalSource;

Modelica.Blocks.Interfaces.SVcontrol Modelica.Blocks.Interfaces.SVcontrol

Single-Variable continuous controller

Modelica.Blocks.Interfaces.SVcontrol

Information


Block has two continuous Real input signals and one continuous Real output signal. The block is designed to be used as base class for a corresponding controller.

Extends from BlockIcon (Basic graphical layout of input/output block).

Connectors

TypeNameDescription
input RealInputu_sConnector of setpoint input signal
input RealInputu_mConnector of measurement input signal
output RealOutputyConnector of actuator output signal

Modelica definition

partial block SVcontrol "Single-Variable continuous controller"
  extends BlockIcon;

  RealInput u_s "Connector of setpoint input signal";
  RealInput u_m "Connector of measurement input signal";
  RealOutput y "Connector of actuator output signal";
end SVcontrol;

Modelica.Blocks.Interfaces.MVcontrol Modelica.Blocks.Interfaces.MVcontrol

Multi-Variable continuous controller

Modelica.Blocks.Interfaces.MVcontrol

Information


Block has two continuous Real input signal vectors and one continuous Real output signal vector. The block is designed to be used as base class for a corresponding controller.

Extends from BlockIcon (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
Integernu_s1Number of setpoint inputs
Integernu_m1Number of measurement inputs
Integerny1Number of actuator outputs

Connectors

TypeNameDescription
input RealInputu_s[nu_s]Connector of setpoint input signals
input RealInputu_m[nu_m]Connector of measurement input signals
output RealOutputy[ny]Connector of actuator output signals

Modelica definition

partial block MVcontrol "Multi-Variable continuous controller"
  extends BlockIcon;

  parameter Integer nu_s=1 "Number of setpoint inputs";
  parameter Integer nu_m=1 "Number of measurement inputs";
  parameter Integer ny=1 "Number of actuator outputs";
  RealInput u_s[nu_s] "Connector of setpoint input signals";
  RealInput u_m[nu_m] "Connector of measurement input signals";
  RealOutput y[ny] "Connector of actuator output signals";
end MVcontrol;

Modelica.Blocks.Interfaces.DiscreteBlockIcon Modelica.Blocks.Interfaces.DiscreteBlockIcon

Graphical layout of discrete block component icon

Information


Block that has only the basic icon for an input/output, discrete block (no declarations, no equations), e.g., from Blocks.Discrete.

Modelica definition

partial block DiscreteBlockIcon 
  "Graphical layout of discrete block component icon"

end DiscreteBlockIcon;

Modelica.Blocks.Interfaces.DiscreteBlock Modelica.Blocks.Interfaces.DiscreteBlock

Base class of discrete control blocks

Information


Basic definitions of a discrete block of library Blocks.Discrete.

Extends from DiscreteBlockIcon (Graphical layout of discrete block component icon).

Parameters

TypeNameDefaultDescription
TimesamplePeriod Sample period of component [s]
TimestartTime0First sample time instant [s]

Modelica definition

partial block DiscreteBlock "Base class of discrete control blocks"
  extends DiscreteBlockIcon;

  parameter SI.Time samplePeriod(min=100*Modelica.Constants.eps, start = 0.1) 
    "Sample period of component";
  parameter SI.Time startTime=0 "First sample time instant";
protected 
  output Boolean sampleTrigger "True, if sample time instant";
  output Boolean firstTrigger "Rising edge signals first sample instant";
equation 
  sampleTrigger = sample(startTime, samplePeriod);
  when sampleTrigger then
    firstTrigger = time <= startTime + samplePeriod/2;
  end when;
end DiscreteBlock;

Modelica.Blocks.Interfaces.DiscreteSISO Modelica.Blocks.Interfaces.DiscreteSISO

Single Input Single Output discrete control block

Modelica.Blocks.Interfaces.DiscreteSISO

Information


Block has one continuous input and one continuous output signal which are sampled due to the defined samplePeriod parameter.

Extends from DiscreteBlock (Base class of discrete control blocks).

Parameters

TypeNameDefaultDescription
TimesamplePeriod Sample period of component [s]
TimestartTime0First sample time instant [s]

Connectors

TypeNameDescription
input RealInputuContinuous input signal
output RealOutputyContinuous output signal

Modelica definition

partial block DiscreteSISO 
  "Single Input Single Output discrete control block"

  extends DiscreteBlock;

  Modelica.Blocks.Interfaces.RealInput u "Continuous input signal";
  Modelica.Blocks.Interfaces.RealOutput y "Continuous output signal";
end DiscreteSISO;

Modelica.Blocks.Interfaces.DiscreteMIMO Modelica.Blocks.Interfaces.DiscreteMIMO

Multiple Input Multiple Output discrete control block

Modelica.Blocks.Interfaces.DiscreteMIMO

Information


Block has a continuous input and a continuous output signal vector which are sampled due to the defined samplePeriod parameter.

Extends from DiscreteBlock (Base class of discrete control blocks).

Parameters

TypeNameDefaultDescription
TimesamplePeriod Sample period of component [s]
TimestartTime0First sample time instant [s]
Integernin1Number of inputs
Integernout1Number of outputs

Connectors

TypeNameDescription
input RealInputu[nin]Continuous input signals
output RealOutputy[nout]Continuous output signals

Modelica definition

partial block DiscreteMIMO 
  "Multiple Input Multiple Output discrete control block"

  extends DiscreteBlock;
  parameter Integer nin=1 "Number of inputs";
  parameter Integer nout=1 "Number of outputs";

  Modelica.Blocks.Interfaces.RealInput u[nin] "Continuous input signals";
  Modelica.Blocks.Interfaces.RealOutput y[nout] "Continuous output signals";

end DiscreteMIMO;

Modelica.Blocks.Interfaces.DiscreteMIMOs Modelica.Blocks.Interfaces.DiscreteMIMOs

Multiple Input Multiple Output discrete control block

Modelica.Blocks.Interfaces.DiscreteMIMOs

Information


Block has a continuous input and a continuous output signal vector where the signal sizes of the input and output vector are identical. These signals are sampled due to the defined samplePeriod parameter.

Extends from DiscreteBlock (Base class of discrete control blocks).

Parameters

TypeNameDefaultDescription
Integern1Number of inputs (= number of outputs)
TimesamplePeriod Sample period of component [s]
TimestartTime0First sample time instant [s]

Connectors

TypeNameDescription
input RealInputu[n]Continuous input signals
output RealOutputy[n]Continuous output signals

Modelica definition

partial block DiscreteMIMOs 
  "Multiple Input Multiple Output discrete control block"
  parameter Integer n=1 "Number of inputs (= number of outputs)";
  extends DiscreteBlock;

  Modelica.Blocks.Interfaces.RealInput u[n] "Continuous input signals";
  Modelica.Blocks.Interfaces.RealOutput y[n] "Continuous output signals";


end DiscreteMIMOs;

Modelica.Blocks.Interfaces.SVdiscrete Modelica.Blocks.Interfaces.SVdiscrete

Discrete Single-Variable controller

Modelica.Blocks.Interfaces.SVdiscrete

Information


Block has two continuous Real input signals and one continuous Real output signal that are sampled due to the defined samplePeriod parameter. The block is designed to be used as base class for a corresponding controller.

Extends from DiscreteBlock (Base class of discrete control blocks).

Parameters

TypeNameDefaultDescription
TimesamplePeriod Sample period of component [s]
TimestartTime0First sample time instant [s]

Connectors

TypeNameDescription
input RealInputu_sContinuous scalar setpoint input signal
input RealInputu_mContinuous scalar measurement input signal
output RealOutputyContinuous scalar actuator output signal

Modelica definition

partial block SVdiscrete "Discrete Single-Variable controller"
  extends DiscreteBlock;

  Discrete.Sampler sampler_s(
    final samplePeriod=samplePeriod,
    final startTime=startTime);
  Discrete.Sampler sampler_m(
    final samplePeriod=samplePeriod,
    final startTime=startTime);
  Modelica.Blocks.Interfaces.RealInput u_s 
    "Continuous scalar setpoint input signal";
  Modelica.Blocks.Interfaces.RealInput u_m 
    "Continuous scalar measurement input signal";
  Modelica.Blocks.Interfaces.RealOutput y 
    "Continuous scalar actuator output signal";
equation 
  connect(u_s, sampler_s.u);
  connect(u_m, sampler_m.u);
end SVdiscrete;

Modelica.Blocks.Interfaces.MVdiscrete Modelica.Blocks.Interfaces.MVdiscrete

Discrete Multi-Variable controller

Modelica.Blocks.Interfaces.MVdiscrete

Information


Block has two continuous Real input signal vectors and one continuous Real output signal vector. The vector signals are sampled due to the defined samplePeriod parameter. The block is designed to be used as base class for a corresponding controller.

Extends from DiscreteBlock (Base class of discrete control blocks).

Parameters

TypeNameDefaultDescription
TimesamplePeriod Sample period of component [s]
TimestartTime0First sample time instant [s]
Integernu_s1Number of setpoint inputs
Integernu_m1Number of measurement inputs
Integerny1Number of actuator outputs

Connectors

TypeNameDescription
input RealInputu_s[nu_s]Continuous setpoint input signals
input RealInputu_m[nu_m]Continuous measurement input signals
output RealOutputy[ny]Continuous actuator output signals

Modelica definition

partial block MVdiscrete "Discrete Multi-Variable controller"
  extends DiscreteBlock;
  parameter Integer nu_s=1 "Number of setpoint inputs";
  parameter Integer nu_m=1 "Number of measurement inputs";
  parameter Integer ny=1 "Number of actuator outputs";
  Discrete.Sampler sampler_s[nu_s](
    each final samplePeriod=samplePeriod,
    each final startTime=startTime);
  Discrete.Sampler sampler_m[nu_m](
    each final samplePeriod=samplePeriod,
    each final startTime=startTime);
  Modelica.Blocks.Interfaces.RealInput u_s[nu_s] 
    "Continuous setpoint input signals";
  Modelica.Blocks.Interfaces.RealInput u_m[nu_m] 
    "Continuous measurement input signals";
  Modelica.Blocks.Interfaces.RealOutput y[ny] 
    "Continuous actuator output signals";
equation 
  connect(u_s, sampler_s.u);
  connect(u_m, sampler_m.u);
end MVdiscrete;

Modelica.Blocks.Interfaces.BooleanBlockIcon Modelica.Blocks.Interfaces.BooleanBlockIcon

Basic graphical layout of Boolean block

Information


Block that has only the basic icon for an input/output, Boolean block (no declarations, no equations).

Modelica definition

partial block BooleanBlockIcon 
  "Basic graphical layout of Boolean block"


end BooleanBlockIcon;

Modelica.Blocks.Interfaces.BooleanSISO Modelica.Blocks.Interfaces.BooleanSISO

Single Input Single Output control block with signals of type Boolean

Modelica.Blocks.Interfaces.BooleanSISO

Information


Block has one continuous Boolean input and one continuous Boolean output signal.

Extends from BooleanBlockIcon (Basic graphical layout of Boolean block).

Connectors

TypeNameDescription
input BooleanInputuConnector of Boolean input signal
output BooleanOutputyConnector of Boolean output signal

Modelica definition

partial block BooleanSISO 
  "Single Input Single Output control block with signals of type Boolean"

  extends BooleanBlockIcon;

public 
  BooleanInput u "Connector of Boolean input signal";
  BooleanOutput y "Connector of Boolean output signal";

end BooleanSISO;

Modelica.Blocks.Interfaces.BooleanMIMOs Modelica.Blocks.Interfaces.BooleanMIMOs

Multiple Input Multiple Output continuous control block with same number of inputs and outputs of boolean type

Modelica.Blocks.Interfaces.BooleanMIMOs

Information


Block has a continuous Boolean input and a continuous Boolean output signal vector where the signal sizes of the input and output vector are identical.

Extends from BooleanBlockIcon (Basic graphical layout of Boolean block).

Parameters

TypeNameDefaultDescription
Integern1Number of inputs (= number of outputs)

Connectors

TypeNameDescription
input BooleanInputu[n]Connector of Boolean input signals
output BooleanOutputy[n]Connector of Boolean output signals

Modelica definition

partial block BooleanMIMOs 
  "Multiple Input Multiple Output continuous control block with same number of inputs and outputs of boolean type"

  extends BooleanBlockIcon;
  parameter Integer n=1 "Number of inputs (= number of outputs)";
  BooleanInput u[n] "Connector of Boolean input signals";
  BooleanOutput y[n] "Connector of Boolean output signals";
end BooleanMIMOs;

Modelica.Blocks.Interfaces.MI2BooleanMOs Modelica.Blocks.Interfaces.MI2BooleanMOs

2 Multiple Input / Boolean Multiple Output block with same signal lengths

Modelica.Blocks.Interfaces.MI2BooleanMOs

Information


Block has two Boolean input vectors u1 and u2 and one Boolean output vector y. All vectors have the same number of elements.

Extends from BooleanBlockIcon (Basic graphical layout of Boolean block).

Parameters

TypeNameDefaultDescription
Integern1Dimension of input and output vectors.

Connectors

TypeNameDescription
input RealInputu1[n]Connector 1 of Boolean input signals
input RealInputu2[n]Connector 2 of Boolean input signals
output BooleanOutputy[n]Connector of Boolean output signals

Modelica definition

partial block MI2BooleanMOs 
  "2 Multiple Input / Boolean Multiple Output block with same signal lengths"

  extends BooleanBlockIcon;
  parameter Integer n=1 "Dimension of input and output vectors.";
  RealInput u1[n] "Connector 1 of Boolean input signals";
  RealInput u2[n] "Connector 2 of Boolean input signals";
  BooleanOutput y[n] "Connector of Boolean output signals";
end MI2BooleanMOs;

Modelica.Blocks.Interfaces.SI2BooleanSO Modelica.Blocks.Interfaces.SI2BooleanSO

2 Single Input / Boolean Single Output block

Modelica.Blocks.Interfaces.SI2BooleanSO

Information


Block has two Boolean input signals u1 and u2 and one Boolean output signal y.

Extends from BooleanBlockIcon (Basic graphical layout of Boolean block).

Connectors

TypeNameDescription
input RealInputu1Connector 1 of Boolean input signals
input RealInputu2Connector 2 of Boolean input signals
output BooleanOutputyConnector of Boolean output signals

Modelica definition

partial block SI2BooleanSO 
  "2 Single Input / Boolean Single Output block"

  extends BooleanBlockIcon;
  input RealInput u1 "Connector 1 of Boolean input signals";
  input RealInput u2 "Connector 2 of Boolean input signals";
  output BooleanOutput y "Connector of Boolean output signals";

end SI2BooleanSO;

Modelica.Blocks.Interfaces.BooleanSignalSource Modelica.Blocks.Interfaces.BooleanSignalSource

Base class for Boolean signal sources

Modelica.Blocks.Interfaces.BooleanSignalSource

Information


Basic block for Boolean sources of package Blocks.Sources. This component has one continuous Boolean output signal y.

Extends from BooleanBlockIcon (Basic graphical layout of Boolean block).

Connectors

TypeNameDescription
output BooleanOutputyConnector of Boolean output signal

Modelica definition

partial block BooleanSignalSource 
  "Base class for Boolean signal sources"

  extends BooleanBlockIcon;
  BooleanOutput y "Connector of Boolean output signal";

end BooleanSignalSource;

Modelica.Blocks.Interfaces.IntegerBlockIcon Modelica.Blocks.Interfaces.IntegerBlockIcon

Basic graphical layout of Integer block

Information


Block that has only the basic icon for an input/output, Integer block (no declarations, no equations).

Modelica definition

partial block IntegerBlockIcon 
  "Basic graphical layout of Integer block"

end IntegerBlockIcon;

Modelica.Blocks.Interfaces.IntegerSO Modelica.Blocks.Interfaces.IntegerSO

Single Integer Output continuous control block

Modelica.Blocks.Interfaces.IntegerSO

Information


Block has one continuous Integer output signal.

Extends from IntegerBlockIcon (Basic graphical layout of Integer block).

Connectors

TypeNameDescription
output IntegerOutputyConnector of Integer output signal

Modelica definition

partial block IntegerSO 
  "Single Integer Output continuous control block"
  extends IntegerBlockIcon;

  IntegerOutput y "Connector of Integer output signal";
end IntegerSO;

Modelica.Blocks.Interfaces.IntegerMO Modelica.Blocks.Interfaces.IntegerMO

Multiple Integer Output continuous control block

Modelica.Blocks.Interfaces.IntegerMO

Information


Block has one continuous Integer output signal vector.

Extends from IntegerBlockIcon (Basic graphical layout of Integer block).

Parameters

TypeNameDefaultDescription
Integernout1Number of outputs

Connectors

TypeNameDescription
output IntegerOutputy[nout]Connector of Integer output signals

Modelica definition

partial block IntegerMO 
  "Multiple Integer Output continuous control block"
  extends IntegerBlockIcon;

  parameter Integer nout(min=1) = 1 "Number of outputs";
  IntegerOutput y[nout] "Connector of Integer output signals";
end IntegerMO;

Modelica.Blocks.Interfaces.IntegerSignalSource Modelica.Blocks.Interfaces.IntegerSignalSource

Base class for continuous Integer signal source

Modelica.Blocks.Interfaces.IntegerSignalSource

Information


Basic block for Integer sources of package Blocks.Sources. This component has one continuous Integer output signal y and two parameters (offset, startTime) to shift the generated signal.

Extends from IntegerSO (Single Integer Output continuous control block).

Parameters

TypeNameDefaultDescription
Integeroffset0Offset of output signal y
TimestartTime0Output y = offset for time < startTime [s]

Connectors

TypeNameDescription
output IntegerOutputyConnector of Integer output signal

Modelica definition

partial block IntegerSignalSource 
  "Base class for continuous Integer signal source"
  extends IntegerSO;
  parameter Integer offset=0 "Offset of output signal y";
  parameter SI.Time startTime=0 "Output y = offset for time < startTime";
end IntegerSignalSource;

Modelica.Blocks.Interfaces.IntegerSIBooleanSO Modelica.Blocks.Interfaces.IntegerSIBooleanSO

Integer Input Boolean Output continuous control block

Modelica.Blocks.Interfaces.IntegerSIBooleanSO

Information


Block has a continuous Integer input and a continuous Boolean output signal.

Extends from BooleanBlockIcon (Basic graphical layout of Boolean block).

Connectors

TypeNameDescription
input IntegerInputuConnector of Integer input signal
output BooleanOutputyConnector of Boolean output signal

Modelica definition

partial block IntegerSIBooleanSO 
  "Integer Input Boolean Output continuous control block"

  extends BooleanBlockIcon;
  IntegerInput u "Connector of Integer input signal";
  BooleanOutput y "Connector of Boolean output signal";
end IntegerSIBooleanSO;

Modelica.Blocks.Interfaces.IntegerMIBooleanMOs Modelica.Blocks.Interfaces.IntegerMIBooleanMOs

Multiple Integer Input Multiple Boolean Output continuous control block with same number of inputs and outputs

Modelica.Blocks.Interfaces.IntegerMIBooleanMOs

Information


Block has a continuous Integer input and a continuous Boolean output signal vector where the signal sizes of the input and output vector are identical.

Extends from BooleanBlockIcon (Basic graphical layout of Boolean block).

Parameters

TypeNameDefaultDescription
Integern1Number of inputs (= number of outputs)

Connectors

TypeNameDescription
input IntegerInputu[n]Connector of Integer input signals
output BooleanOutputy[n]Connector of Boolean output signals

Modelica definition

partial block IntegerMIBooleanMOs 
  "Multiple Integer Input Multiple Boolean Output continuous control block with same number of inputs and outputs"

  extends BooleanBlockIcon;
  parameter Integer n=1 "Number of inputs (= number of outputs)";
  IntegerInput u[n] "Connector of Integer input signals";
  BooleanOutput y[n] "Connector of Boolean output signals";
end IntegerMIBooleanMOs;

Modelica.Blocks.Interfaces.partialBooleanBlockIcon Modelica.Blocks.Interfaces.partialBooleanBlockIcon

Basic graphical layout of logical block

Information


Block that has only the basic icon for an input/output, Boolean block (no declarations, no equations) used especially in the Blocks.Logical library.

Modelica definition

partial block partialBooleanBlockIcon 
  "Basic graphical layout of logical block"


end partialBooleanBlockIcon;

Modelica.Blocks.Interfaces.partialBooleanSISO Modelica.Blocks.Interfaces.partialBooleanSISO

Partial block with 1 input and 1 output Boolean signal

Modelica.Blocks.Interfaces.partialBooleanSISO

Information


Block has one continuous Boolean input and one continuous Boolean output signal with a 3D icon (e.g. used in Blocks.Logical library).

Extends from partialBooleanBlockIcon (Basic graphical layout of logical block).

Connectors

TypeNameDescription
input BooleanInputuConnector of Boolean input signal
output BooleanOutputyConnector of Boolean output signal

Modelica definition

partial block partialBooleanSISO 
  "Partial block with 1 input and 1 output Boolean signal"
  extends partialBooleanBlockIcon;
         Blocks.Interfaces.BooleanInput u "Connector of Boolean input signal";
         Blocks.Interfaces.BooleanOutput y "Connector of Boolean output signal";


end partialBooleanSISO;

Modelica.Blocks.Interfaces.partialBooleanSI2SO Modelica.Blocks.Interfaces.partialBooleanSI2SO

Partial block with 2 input and 1 output Boolean signal

Modelica.Blocks.Interfaces.partialBooleanSI2SO

Information


Block has two continuous Boolean input and one continuous Boolean output signal with a 3D icon (e.g. used in Blocks.Logical library).

Extends from partialBooleanBlockIcon (Basic graphical layout of logical block).

Connectors

TypeNameDescription
input BooleanInputu1Connector of first Boolean input signal
input BooleanInputu2Connector of second Boolean input signal
output BooleanOutputyConnector of Boolean output signal

Modelica definition

partial block partialBooleanSI2SO 
  "Partial block with 2 input and 1 output Boolean signal"
  extends partialBooleanBlockIcon;
         Blocks.Interfaces.BooleanInput u1 
    "Connector of first Boolean input signal";
         Blocks.Interfaces.BooleanInput u2 
    "Connector of second Boolean input signal";
         Blocks.Interfaces.BooleanOutput y "Connector of Boolean output signal";


end partialBooleanSI2SO;

Modelica.Blocks.Interfaces.partialBooleanSI3SO Modelica.Blocks.Interfaces.partialBooleanSI3SO

Partial block with 3 input and 1 output Boolean signal

Modelica.Blocks.Interfaces.partialBooleanSI3SO

Information


Block has three continuous Boolean input and one continuous Boolean output signal
with a 3D icon (e.g. used in Blocks.Logical library).

Extends from partialBooleanBlockIcon (Basic graphical layout of logical block).

Connectors

TypeNameDescription
input BooleanInputu1Connector of first Boolean input signal
input BooleanInputu2Connector of second Boolean input signal
input BooleanInputu3Connector of third Boolean input signal
output BooleanOutputyConnector of Boolean output signal

Modelica definition

partial block partialBooleanSI3SO 
  "Partial block with 3 input and 1 output Boolean signal"
  extends partialBooleanBlockIcon;
         Blocks.Interfaces.BooleanInput u1 
    "Connector of first Boolean input signal";
         Blocks.Interfaces.BooleanInput u2 
    "Connector of second Boolean input signal";
         Blocks.Interfaces.BooleanInput u3 
    "Connector of third Boolean input signal";
         Blocks.Interfaces.BooleanOutput y "Connector of Boolean output signal";


end partialBooleanSI3SO;

Modelica.Blocks.Interfaces.partialBooleanSI Modelica.Blocks.Interfaces.partialBooleanSI

Partial block with 1 input Boolean signal

Modelica.Blocks.Interfaces.partialBooleanSI

Information


Block has one continuous Boolean input signal with a 3D icon (e.g. used in Blocks.Logical library).

Extends from partialBooleanBlockIcon (Basic graphical layout of logical block).

Connectors

TypeNameDescription
input BooleanInputuConnector of Boolean input signal

Modelica definition

partial block partialBooleanSI 
  "Partial block with 1 input Boolean signal"
  extends partialBooleanBlockIcon;

         Blocks.Interfaces.BooleanInput u "Connector of Boolean input signal";


end partialBooleanSI;

Modelica.Blocks.Interfaces.partialBooleanSO Modelica.Blocks.Interfaces.partialBooleanSO

Partial block with 1 output Boolean signal

Modelica.Blocks.Interfaces.partialBooleanSO

Information


Block has one continuous Boolean output signal with a 3D icon (e.g. used in Blocks.Logical library).

Extends from partialBooleanBlockIcon (Basic graphical layout of logical block).

Connectors

TypeNameDescription
output BooleanOutputyConnector of Boolean output signal

Modelica definition

partial block partialBooleanSO 
  "Partial block with 1 output Boolean signal"

         Blocks.Interfaces.BooleanOutput y "Connector of Boolean output signal";
  extends partialBooleanBlockIcon;


end partialBooleanSO;

Modelica.Blocks.Interfaces.partialBooleanSource Modelica.Blocks.Interfaces.partialBooleanSource

Partial source block (has 1 output Boolean signal and an appropriate default icon)

Modelica.Blocks.Interfaces.partialBooleanSource

Information


Basic block for Boolean sources of package Blocks.Sources. This component has one continuous Boolean output signal y and a 3D icon (e.g. used in Blocks.Logical library).

Extends from partialBooleanBlockIcon (Basic graphical layout of logical block).

Connectors

TypeNameDescription
output BooleanOutputyConnector of Boolean output signal

Modelica definition

partial block partialBooleanSource 
  "Partial source block (has 1 output Boolean signal and an appropriate default icon)"
  extends partialBooleanBlockIcon;

  Blocks.Interfaces.BooleanOutput y "Connector of Boolean output signal";


end partialBooleanSource;

Modelica.Blocks.Interfaces.partialBooleanThresholdComparison Modelica.Blocks.Interfaces.partialBooleanThresholdComparison

Partial block to compare the Real input u with a threshold and provide the result as 1 Boolean output signal

Modelica.Blocks.Interfaces.partialBooleanThresholdComparison

Information


Block has one continuous Real input and one continuous Boolean output signal as well as a 3D icon (e.g. used in Blocks.Logical library).

Parameters

TypeNameDefaultDescription
Realthreshold0Comparison with respect to threshold

Connectors

TypeNameDescription
input RealInputuConnector of Boolean input signal
output BooleanOutputyConnector of Boolean output signal

Modelica definition

partial block partialBooleanThresholdComparison 
  "Partial block to compare the Real input u with a threshold and provide the result as 1 Boolean output signal"

  parameter Real threshold=0 "Comparison with respect to threshold";

  Blocks.Interfaces.RealInput u "Connector of Boolean input signal";
  Blocks.Interfaces.BooleanOutput y "Connector of Boolean output signal";


end partialBooleanThresholdComparison;

Modelica.Blocks.Interfaces.partialBooleanComparison Modelica.Blocks.Interfaces.partialBooleanComparison

Partial block with 2 Real input and 1 Boolean output signal (the result of a comparison of the two Real inputs

Modelica.Blocks.Interfaces.partialBooleanComparison

Information


Block has two continuous Real input and one continuous Boolean output signal as a result of the comparision of the two input signals. The block has a 3D icon (e.g. used in Blocks.Logical library).

Connectors

TypeNameDescription
input RealInputu1Connector of first Boolean input signal
input RealInputu2Connector of second Boolean input signal
output BooleanOutputyConnector of Boolean output signal

Modelica definition

partial block partialBooleanComparison 
  "Partial block with 2 Real input and 1 Boolean output signal (the result of a comparison of the two Real inputs"

  Blocks.Interfaces.RealInput u1 "Connector of first Boolean input signal";
  Blocks.Interfaces.RealInput u2 "Connector of second Boolean input signal";
  Blocks.Interfaces.BooleanOutput y "Connector of Boolean output signal";


end partialBooleanComparison;

Modelica.Blocks.Interfaces.PartialConversionBlock Modelica.Blocks.Interfaces.PartialConversionBlock

Partial block defining the interface for conversion blocks

Modelica.Blocks.Interfaces.PartialConversionBlock

Information


This block defines the interface of a conversion block that converts from one unit into another one.

Connectors

TypeNameDescription
input RealInputuConnector of Real input signal to be converted
output RealOutputyConnector of Real output signal containing input signal u in another unit

Modelica definition

partial block PartialConversionBlock 
  "Partial block defining the interface for conversion blocks"

  RealInput u "Connector of Real input signal to be converted";
  RealOutput y 
    "Connector of Real output signal containing input signal u in another unit";

end PartialConversionBlock;

HTML-documentation generated by Dymola Sun Jan 17 21:09:17 2010.