functionfromReal
Generate a StateSpace 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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | r | Value of Real variable | |
| Modelica.Units.SI.Time | Ts | 1 | Sample time |
| Modelica_LinearSystems2.Utilities.Types.Method | method | Modelica_LinearSystems2.Utilities.Types.Method.Trapezoidal | Discretization method |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| DiscreteStateSpace | dss | = r |