functionfromReal
Generate a DiscreteZerosAndPoles data record from a real value
Information
Syntax
dzp = 'constructor'.fromReal(r)
Description
This function constructs a DiscreteZerosAndPoles record zp from a Real value, i.e. a without dynamics:
y = r*u
Therefore, the record is defined by
dzp.k = r; dzp.n1 = fill(0,1); dzp.n2 = fill(0,1,2); dzp.d1 = fill(0,1); dzp.d2 = fill(0,1,2);
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | r | Value of Real variable | |
| Modelica.Units.SI.Time | Ts | 0 | Sample time |
| Modelica_LinearSystems2.Utilities.Types.Method | method | Modelica_LinearSystems2.Utilities.Types.Method.Trapezoidal | Discretization method |
| String | uName | "" | input name |
| String | yName | "" | output name |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| DiscreteZerosAndPoles | dzp | = r |