functiontimeResponse

Plot the time response of a system represented by a transfer function. The response type is selectable

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

Information

Syntax

ZerosAndPoles.Plot.timeResponse(zp);
   or
ZerosAndPoles.Plot.timeResponse(
  zp,
  dt,
  tSpan,
  response,
  x0,
  columnLabels,
  defaultDiagram=Modelica_LinearSystems2.Internal.DefaultDiagramTimeResponse(),
  device=Modelica_LinearSystems2.Utilities.Plot.Records.Device())

Description

This function plots the time response of a transfer function. The character of the time response if defined by the input response, i.e. Impulse, Step, Ramp, or Initial.

Example

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

  Types.TimeResponse response = Modelica_LinearSystems2.Utilities.Types.TimeResponse.Step;

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

See also

impulse, step, ramp, initialResponse

Inputs

TypeNameDefaultDescription
ZerosAndPoleszp
Realdt0Sample time [s]
RealtSpan0Simulation time span [s]
TimeResponseresponseTimeResponse.Steptype of time response
Real[ZerosAndPoles.Analysis.denominatorDegree(zp)]x0zeros(ZerosAndPoles.Analysis.denominatorDegree(zp))Initial state vector
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