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).
Name | Description |
---|---|
RealInput | 'input Real' as connector |
RealOutput | 'output Real' as connector |
BooleanInput | 'input Boolean' as connector |
BooleanOutput | 'output Boolean' as connector |
IntegerInput | 'input Integer' as connector |
IntegerOutput | 'output Integer' as connector |
BlockIcon | Basic graphical layout of input/output block |
SO | Single Output continuous control block |
MO | Multiple Output continuous control block |
SISO | Single Input Single Output continuous control block |
SI2SO | 2 Single Input / 1 Single Output continuous control block |
SIMO | Single Input Multiple Output continuous control block |
MISO | Multiple Input Single Output continuous control block |
MIMO | Multiple Input Multiple Output continuous control block |
MIMOs | Multiple Input Multiple Output continuous control block with same number of inputs and outputs |
MI2MO | 2 Multiple Input / Multiple Output continuous control block |
SignalSource | Base class for continuous signal source |
SVcontrol | Single-Variable continuous controller |
MVcontrol | Multi-Variable continuous controller |
DiscreteBlockIcon | Graphical layout of discrete block component icon |
DiscreteBlock | Base class of discrete control blocks |
DiscreteSISO | Single Input Single Output discrete control block |
DiscreteMIMO | Multiple Input Multiple Output discrete control block |
DiscreteMIMOs | Multiple Input Multiple Output discrete control block |
SVdiscrete | Discrete Single-Variable controller |
MVdiscrete | Discrete Multi-Variable controller |
BooleanBlockIcon | Basic graphical layout of Boolean block |
BooleanSISO | Single Input Single Output control block with signals of type Boolean |
BooleanMIMOs | Multiple Input Multiple Output continuous control block with same number of inputs and outputs of boolean type |
MI2BooleanMOs | 2 Multiple Input / Boolean Multiple Output block with same signal lengths |
SI2BooleanSO | 2 Single Input / Boolean Single Output block |
BooleanSignalSource | Base class for Boolean signal sources |
IntegerBlockIcon | Basic graphical layout of Integer block |
IntegerSO | Single Integer Output continuous control block |
IntegerMO | Multiple Integer Output continuous control block |
IntegerSignalSource | Base class for continuous Integer signal source |
IntegerSIBooleanSO | Integer Input Boolean Output continuous control block |
IntegerMIBooleanMOs | Multiple Integer Input Multiple Boolean Output continuous control block with same number of inputs and outputs |
partialBooleanBlockIcon | Basic graphical layout of logical block |
partialBooleanSISO | Partial block with 1 input and 1 output Boolean signal |
partialBooleanSI2SO | Partial block with 2 input and 1 output Boolean signal |
partialBooleanSI3SO | Partial block with 3 input and 1 output Boolean signal |
partialBooleanSI | Partial block with 1 input Boolean signal |
partialBooleanSO | Partial block with 1 output Boolean signal |
partialBooleanSource | Partial source block (has 1 output Boolean signal and an appropriate default icon) |
partialBooleanThresholdComparison | Partial block to compare the Real input u with a threshold and provide the result as 1 Boolean output signal |
partialBooleanComparison | Partial block with 2 Real input and 1 Boolean output signal (the result of a comparison of the two Real inputs |
Adaptors | Obsolete package with components to send signals to a bus or receive signals from a bus (only for backward compatibility) |
PartialConversionBlock | Partial block defining the interface for conversion blocks |
Connector with one input signal of type Real.
Extends from Real.
connector RealInput = input Real "'input Real' as connector";
Connector with one output signal of type Real.
Extends from Real.
connector RealOutput = output Real "'output Real' as connector";
Connector with one input signal of type Boolean.
Extends from Boolean.
connector BooleanInput = input Boolean "'input Boolean' as connector";
Connector with one output signal of type Boolean.
Extends from Boolean.
connector BooleanOutput = output Boolean "'output Boolean' as connector";
Connector with one input signal of type Integer.
Extends from Integer.
connector IntegerInput = input Integer "'input Integer' as connector";
Connector with one output signal of type Integer.
Extends from Integer.
connector IntegerOutput = output Integer "'output Integer' as connector";
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.
partial block BlockIcon "Basic graphical layout of input/output block"end BlockIcon;
Block has one continuous Real output signal.
Extends from BlockIcon (Basic graphical layout of input/output block).
Type | Name | Description |
---|---|---|
output RealOutput | y | Connector of Real output signal |
partial block SO "Single Output continuous control block" extends BlockIcon;RealOutput y "Connector of Real output signal"; end SO;
Block has one continuous Real output signal vector.
Extends from BlockIcon (Basic graphical layout of input/output block).
Type | Name | Default | Description |
---|---|---|---|
Integer | nout | 1 | Number of outputs |
Type | Name | Description |
---|---|---|
output RealOutput | y[nout] | Connector of Real output signals |
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;
Block has one continuous Real input and one continuous Real output signal.
Extends from BlockIcon (Basic graphical layout of input/output block).
Type | Name | Description |
---|---|---|
input RealInput | u | Connector of Real input signal |
output RealOutput | y | Connector of Real output signal |
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;
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).
Type | Name | Description |
---|---|---|
input RealInput | u1 | Connector of Real input signal 1 |
input RealInput | u2 | Connector of Real input signal 2 |
output RealOutput | y | Connector of Real output signal |
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;
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).
Type | Name | Default | Description |
---|---|---|---|
Integer | nout | 1 | Number of outputs |
Type | Name | Description |
---|---|---|
input RealInput | u | Connector of Real input signal |
output RealOutput | y[nout] | Connector of Real output signals |
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;
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).
Type | Name | Default | Description |
---|---|---|---|
Integer | nin | 1 | Number of inputs |
Type | Name | Description |
---|---|---|
input RealInput | u[nin] | Connector of Real input signals |
output RealOutput | y | Connector of Real output signal |
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;
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).
Type | Name | Default | Description |
---|---|---|---|
Integer | nin | 1 | Number of inputs |
Integer | nout | 1 | Number of outputs |
Type | Name | Description |
---|---|---|
input RealInput | u[nin] | Connector of Real input signals |
output RealOutput | y[nout] | Connector of Real output signals |
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;
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).
Type | Name | Default | Description |
---|---|---|---|
Integer | n | 1 | Number of inputs (= number of outputs) |
Type | Name | Description |
---|---|---|
input RealInput | u[n] | Connector of Real input signals |
output RealOutput | y[n] | Connector of Real output signals |
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;
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).
Type | Name | Default | Description |
---|---|---|---|
Integer | n | 1 | Dimension of input and output vectors. |
Type | Name | Description |
---|---|---|
input RealInput | u1[n] | Connector 1 of Real input signals |
input RealInput | u2[n] | Connector 2 of Real input signals |
output RealOutput | y[n] | Connector of Real output signals |
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;
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).
Type | Name | Default | Description |
---|---|---|---|
Real | offset | 0 | Offset of output signal y |
Time | startTime | 0 | Output y = offset for time < startTime [s] |
Type | Name | Description |
---|---|---|
output RealOutput | y | Connector of Real output signal |
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;
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).
Type | Name | Description |
---|---|---|
input RealInput | u_s | Connector of setpoint input signal |
input RealInput | u_m | Connector of measurement input signal |
output RealOutput | y | Connector of actuator output signal |
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;
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).
Type | Name | Default | Description |
---|---|---|---|
Integer | nu_s | 1 | Number of setpoint inputs |
Integer | nu_m | 1 | Number of measurement inputs |
Integer | ny | 1 | Number of actuator outputs |
Type | Name | Description |
---|---|---|
input RealInput | u_s[nu_s] | Connector of setpoint input signals |
input RealInput | u_m[nu_m] | Connector of measurement input signals |
output RealOutput | y[ny] | Connector of actuator output signals |
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;
Block that has only the basic icon for an input/output, discrete block (no declarations, no equations), e.g., from Blocks.Discrete.
partial block DiscreteBlockIcon "Graphical layout of discrete block component icon"end DiscreteBlockIcon;
Basic definitions of a discrete block of library Blocks.Discrete.
Extends from DiscreteBlockIcon (Graphical layout of discrete block component icon).
Type | Name | Default | Description |
---|---|---|---|
Time | samplePeriod | Sample period of component [s] | |
Time | startTime | 0 | First sample time instant [s] |
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;
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).
Type | Name | Default | Description |
---|---|---|---|
Time | samplePeriod | Sample period of component [s] | |
Time | startTime | 0 | First sample time instant [s] |
Type | Name | Description |
---|---|---|
input RealInput | u | Continuous input signal |
output RealOutput | y | Continuous output signal |
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;
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).
Type | Name | Default | Description |
---|---|---|---|
Time | samplePeriod | Sample period of component [s] | |
Time | startTime | 0 | First sample time instant [s] |
Integer | nin | 1 | Number of inputs |
Integer | nout | 1 | Number of outputs |
Type | Name | Description |
---|---|---|
input RealInput | u[nin] | Continuous input signals |
output RealOutput | y[nout] | Continuous output signals |
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;
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).
Type | Name | Default | Description |
---|---|---|---|
Integer | n | 1 | Number of inputs (= number of outputs) |
Time | samplePeriod | Sample period of component [s] | |
Time | startTime | 0 | First sample time instant [s] |
Type | Name | Description |
---|---|---|
input RealInput | u[n] | Continuous input signals |
output RealOutput | y[n] | Continuous output signals |
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;
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).
Type | Name | Default | Description |
---|---|---|---|
Time | samplePeriod | Sample period of component [s] | |
Time | startTime | 0 | First sample time instant [s] |
Type | Name | Description |
---|---|---|
input RealInput | u_s | Continuous scalar setpoint input signal |
input RealInput | u_m | Continuous scalar measurement input signal |
output RealOutput | y | Continuous scalar actuator output signal |
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"; equationconnect(u_s, sampler_s.u); connect(u_m, sampler_m.u); end SVdiscrete;
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).
Type | Name | Default | Description |
---|---|---|---|
Time | samplePeriod | Sample period of component [s] | |
Time | startTime | 0 | First sample time instant [s] |
Integer | nu_s | 1 | Number of setpoint inputs |
Integer | nu_m | 1 | Number of measurement inputs |
Integer | ny | 1 | Number of actuator outputs |
Type | Name | Description |
---|---|---|
input RealInput | u_s[nu_s] | Continuous setpoint input signals |
input RealInput | u_m[nu_m] | Continuous measurement input signals |
output RealOutput | y[ny] | Continuous actuator output signals |
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"; equationconnect(u_s, sampler_s.u); connect(u_m, sampler_m.u); end MVdiscrete;
Block that has only the basic icon for an input/output, Boolean block (no declarations, no equations).
partial block BooleanBlockIcon "Basic graphical layout of Boolean block"end BooleanBlockIcon;
Block has one continuous Boolean input and one continuous Boolean output signal.
Extends from BooleanBlockIcon (Basic graphical layout of Boolean block).
Type | Name | Description |
---|---|---|
input BooleanInput | u | Connector of Boolean input signal |
output BooleanOutput | y | Connector of Boolean output signal |
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;
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).
Type | Name | Default | Description |
---|---|---|---|
Integer | n | 1 | Number of inputs (= number of outputs) |
Type | Name | Description |
---|---|---|
input BooleanInput | u[n] | Connector of Boolean input signals |
output BooleanOutput | y[n] | Connector of Boolean output signals |
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;
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).
Type | Name | Default | Description |
---|---|---|---|
Integer | n | 1 | Dimension of input and output vectors. |
Type | Name | Description |
---|---|---|
input RealInput | u1[n] | Connector 1 of Boolean input signals |
input RealInput | u2[n] | Connector 2 of Boolean input signals |
output BooleanOutput | y[n] | Connector of Boolean output signals |
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;
Block has two Boolean input signals u1 and u2 and one Boolean output signal y.
Extends from BooleanBlockIcon (Basic graphical layout of Boolean block).
Type | Name | Description |
---|---|---|
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 |
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;
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).
Type | Name | Description |
---|---|---|
output BooleanOutput | y | Connector of Boolean output signal |
partial block BooleanSignalSource "Base class for Boolean signal sources" extends BooleanBlockIcon;BooleanOutput y "Connector of Boolean output signal"; end BooleanSignalSource;
Block that has only the basic icon for an input/output, Integer block (no declarations, no equations).
partial block IntegerBlockIcon "Basic graphical layout of Integer block"end IntegerBlockIcon;
Block has one continuous Integer output signal.
Extends from IntegerBlockIcon (Basic graphical layout of Integer block).
Type | Name | Description |
---|---|---|
output IntegerOutput | y | Connector of Integer output signal |
partial block IntegerSO "Single Integer Output continuous control block" extends IntegerBlockIcon;IntegerOutput y "Connector of Integer output signal"; end IntegerSO;
Block has one continuous Integer output signal vector.
Extends from IntegerBlockIcon (Basic graphical layout of Integer block).
Type | Name | Default | Description |
---|---|---|---|
Integer | nout | 1 | Number of outputs |
Type | Name | Description |
---|---|---|
output IntegerOutput | y[nout] | Connector of Integer output signals |
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;
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).
Type | Name | Default | Description |
---|---|---|---|
Integer | offset | 0 | Offset of output signal y |
Time | startTime | 0 | Output y = offset for time < startTime [s] |
Type | Name | Description |
---|---|---|
output IntegerOutput | y | Connector of Integer output signal |
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;
Block has a continuous Integer input and a continuous Boolean output signal.
Extends from BooleanBlockIcon (Basic graphical layout of Boolean block).
Type | Name | Description |
---|---|---|
input IntegerInput | u | Connector of Integer input signal |
output BooleanOutput | y | Connector of Boolean output signal |
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;
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).
Type | Name | Default | Description |
---|---|---|---|
Integer | n | 1 | Number of inputs (= number of outputs) |
Type | Name | Description |
---|---|---|
input IntegerInput | u[n] | Connector of Integer input signals |
output BooleanOutput | y[n] | Connector of Boolean output signals |
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;
Block that has only the basic icon for an input/output, Boolean block (no declarations, no equations) used especially in the Blocks.Logical library.
partial block partialBooleanBlockIcon "Basic graphical layout of logical block"end partialBooleanBlockIcon;
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).
Type | Name | Description |
---|---|---|
input BooleanInput | u | Connector of Boolean input signal |
output BooleanOutput | y | Connector of Boolean output signal |
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;
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).
Type | Name | Description |
---|---|---|
input BooleanInput | u1 | Connector of first Boolean input signal |
input BooleanInput | u2 | Connector of second Boolean input signal |
output BooleanOutput | y | Connector of Boolean output signal |
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;
Extends from partialBooleanBlockIcon (Basic graphical layout of logical block).
Type | Name | Description |
---|---|---|
input BooleanInput | u1 | Connector of first Boolean input signal |
input BooleanInput | u2 | Connector of second Boolean input signal |
input BooleanInput | u3 | Connector of third Boolean input signal |
output BooleanOutput | y | Connector of Boolean output signal |
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;
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).
Type | Name | Description |
---|---|---|
input BooleanInput | u | Connector of Boolean input signal |
partial block partialBooleanSI "Partial block with 1 input Boolean signal" extends partialBooleanBlockIcon;Blocks.Interfaces.BooleanInput u "Connector of Boolean input signal"; end partialBooleanSI;
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).
Type | Name | Description |
---|---|---|
output BooleanOutput | y | Connector of Boolean output signal |
partial block partialBooleanSO "Partial block with 1 output Boolean signal"Blocks.Interfaces.BooleanOutput y "Connector of Boolean output signal"; extends partialBooleanBlockIcon;end partialBooleanSO;
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).
Type | Name | Description |
---|---|---|
output BooleanOutput | y | Connector of Boolean output signal |
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;
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).
Type | Name | Default | Description |
---|---|---|---|
Real | threshold | 0 | Comparison with respect to threshold |
Type | Name | Description |
---|---|---|
input RealInput | u | Connector of Boolean input signal |
output BooleanOutput | y | Connector of Boolean output signal |
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;
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).
Type | Name | Description |
---|---|---|
input RealInput | u1 | Connector of first Boolean input signal |
input RealInput | u2 | Connector of second Boolean input signal |
output BooleanOutput | y | Connector of Boolean output signal |
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;
This block defines the interface of a conversion block that converts from one unit into another one.
Type | Name | Description |
---|---|---|
input RealInput | u | Connector of Real input signal to be converted |
output RealOutput | y | Connector of Real output signal containing input signal u in another unit |
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;