.Modelica_LinearSystems2.DiscreteZerosAndPoles.Plot.initialResponse

Information

Syntax

DiscreteZerosAndPoles.Plot.initialResponse(zp)
   or
DiscreteZerosAndPoles.Plot.initialResponse(
  zp,
  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

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

  Modelica_LinearSystems2.DiscreteZerosAndPoles.Plot.initialResponseZP(dzp, y0=y0, tSpan=1)
  // gives:

See also

impulse, step, ramp

Interface

encapsulated function initialResponse
  import Modelica;
  import Modelica_LinearSystems2;
  import Modelica_LinearSystems2.DiscreteZerosAndPoles;
  import Modelica_LinearSystems2.Utilities.Types.TimeResponse;
  input DiscreteZerosAndPoles dzp;
  input Real tSpan = 0 "Simulation time span [s]";
  input TimeResponse response = TimeResponse.Initial "type of time response";
  input Real y0 "Initial output (for initial condition plot)";
  extends Modelica_LinearSystems2.Internal.PartialPlotFunction(defaultDiagram = Modelica_LinearSystems2.Internal.DefaultDiagramTimeResponse(heading = "Initial response of  dzp = " + String(dzp) + "  with y0 = " + String(y0)));
end initialResponse;

Generated at 2024-12-03T19:25:34Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos