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

TypeNameDefaultDescription
RealrValue of Real variable
Modelica.Units.SI.TimeTs0Sample time
Modelica_LinearSystems2.Utilities.Types.MethodmethodModelica_LinearSystems2.Utilities.Types.Method.TrapezoidalDiscretization method
StringuName""input name
StringyName""output name

Outputs

TypeNameDefaultDescription
DiscreteZerosAndPolesdzp= r