zp = ZerosAndPoles'constructor'.fromReal(r)
This function constructs a ZerosAndPoles record zp from a real value, i.e. a without dynamics:
y = r*u
Therefore, the record is defined by
zp.k = r; zp.n1 = fill(0,1); zp.n2 = fill(0,1,2); zp.d1 = fill(0,1); zp.d2 = fill(0,1,2);
encapsulated function fromReal import Modelica; import Modelica_LinearSystems2.ZerosAndPoles; input Real r "Value of real variable"; input String uName = "" "Input name"; input String yName = "" "Output name"; output ZerosAndPoles zp(redeclare Real n1[0], redeclare Real n2[0, 2], redeclare Real d1[0], redeclare Real d2[0, 2]) "= r"; end fromReal;