ZerosAndPoles.Plot.ramp(zp) or ZerosAndPoles.Plot.ramp( zp, dt, tSpan, x0, columnLabels, defaultDiagram=Modelica_LinearSystems2.Internal.DefaultDiagramTimeResponse(), device=Modelica_LinearSystems2.Utilities.Plot.Records.Device())
This function plots the ramp response of a zeros-and-poles transfer function. It is based on timeResponse.
ZerosAndPoles p = Modelica_LinearSystems2.ZerosAndPoles.p(); Modelica_LinearSystems2.ZerosAndPoles zp =(2*p^2 + 7*p + 13)/(p + 1)/(p^2 + 5*p + 12); algorithm Modelica_LinearSystems2.ZerosAndPoles.Plot.ramp(zp) // gives:
impulse, step, initialResponse
encapsulated function ramp import Modelica_LinearSystems2; import Modelica_LinearSystems2.ZerosAndPoles; import Modelica_LinearSystems2.Utilities.Types.TimeResponse; input ZerosAndPoles zp; input Real dt = 0 "Sample time [s]"; input Real tSpan = 0 "Simulation time span [s]"; input TimeResponse response = TimeResponse.Ramp "type of time response"; input Real x0[ZerosAndPoles.Analysis.denominatorDegree(zp)] = zeros(ZerosAndPoles.Analysis.denominatorDegree(zp)) "Initial state vector"; extends Modelica_LinearSystems2.Internal.PartialPlotFunction(defaultDiagram = Modelica_LinearSystems2.Internal.DefaultDiagramTimeResponse(heading = "Ramp response of zp = " + String(zp))); end ramp;