functiontimeResponse

Plot the time response of a system represented by a discrete zeros-and-poles transfer function. The response type is selectable

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

Information

Syntax

DiscreteZerosAndPoles.Plot.timeResponse(dzp);
   or
DiscreteZerosAndPoles.Plot.timeResponse(
  dzp,
  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 discrete zeros and poles transfer function. The character of the time response if defined by the input response, i.e. Impulse, Step, Ramp, or Initial.

Example

  DiscreteZerosAndPoles q = Modelica_LinearSystems2.DiscreteZerosAndPoles.q();
  DiscreteZerosAndPoles dzp=(q^2 - 1.5*q + 0.6)/( (q - 0.8)*(q - 0.75) )
  dzp.Ts = 0.1;

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

algorithm
   Modelica_LinearSystems2.DiscreteZerosAndPoles.Plot.timeResponse(dzp, tSpan=3, response=response)
//  gives:

See also

impulse, step, ramp, initialResponse

Inputs

TypeNameDefaultDescription
DiscreteZerosAndPolesdzp
RealtSpan0Simulation time span [s]
TimeResponseresponseTimeResponse.StepType of time response
Real[DiscreteZerosAndPoles.Analysis.denominatorDegree(dzp)]x0zeros(DiscreteZerosAndPoles.Analysis.denominatorDegree(dzp))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