functioninitialResponse

Initial condition response plot

Extends from Modelica_LinearSystems2.Internal.PartialPlotFunction (Interface of a plot function).

Information

Syntax

ZerosAndPoles.Plot.initialResponse(zp)
   or
ZerosAndPoles.Plot.initialResponse(
  zp,
  dt,
  tSpan,
  y0,
  columnLabels,
  defaultDiagram=Modelica_LinearSystems2.Internal.DefaultDiagramTimeResponse(),
  device=Modelica_LinearSystems2.Utilities.Plot.Records.Device())

Description

This function plots the initial response, i.e. the zeros input response of a zeros and poles transfer function. It is based on timeResponse.

Example

  ZerosAndPoles p = Modelica_LinearSystems2.ZerosAndPoles.p();
  Modelica_LinearSystems2.ZerosAndPoles zp = (p + 1)/(p^2 + 5*p + 12);
  Real y0=1;

algorithm
   Modelica_LinearSystems2.ZerosAndPoles.Plot.initialResponseZP(zp, y0=y0, dt=0.02, tSpan=3)
//  gives:

See also

impulse, step, ramp

Inputs

TypeNameDefaultDescription
Modelica_LinearSystems2.ZerosAndPoleszp
Realdt0Sample time [s]
RealtSpan0Simulation time span [s]
Modelica_LinearSystems2.Utilities.Types.TimeResponseresponseModelica_LinearSystems2.Utilities.Types.TimeResponse.Initialtype of time response
Realy0Initial output (for initial condition plot)
Plot.Records.DiagramdefaultDiagram (from PartialPlotFunction)Default diagram layout
Plot.Records.Devicedevice (from PartialPlotFunction)Modelica_LinearSystems2.Utilities.Plot.Records.Device()Properties of device where figure is shown