functionfromReal

Generate a DiscreteStateSpace data record from a real value

Information

Syntax

dss = 'constructor'.fromReal(r)
   or
dss = 'constructor'.fromReal(r, Ts, method)

Description

This function constructs a DiscreteStateSpace record dss from a Real value, i.e. a discrete state space system without a state and an output without dynamics:

y = r*u

Therefore, the matrices are defined by

dss.A = fill(0,0,0);
dss.B = fill(0,0,1);
dss.C = fill(0,1,0);
dss.D = [r];
dss.B2 = fill(0,0,1);

The default values of sample time Ts and discretization method method are

    Ts = 1
method = Modelica_LinearSystems2.Types.Method.Trapezoidal

respectively.

Inputs

TypeNameDefaultDescription
RealrValue of Real variable
Modelica.Units.SI.TimeTs1Sample time
Modelica_LinearSystems2.Utilities.Types.MethodmethodModelica_LinearSystems2.Utilities.Types.Method.TrapezoidalDiscretization method

Outputs

TypeNameDefaultDescription
DiscreteStateSpacedss= r