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.Types.TimeResponse.Step; algorithm Modelica_LinearSystems2.DiscreteZerosAndPoles.Plot.timeResponse(dzp, tSpan=3, response=response) // gives:
See also
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_LinearSystems2.DiscreteZerosAndPoles | dzp | ||
| Real | tSpan | 0 | Simulation time span [s] |
| Modelica_LinearSystems2.Utilities.Types.TimeResponse | response | Modelica_LinearSystems2.Utilities.Types.TimeResponse.Step | Type of time response |
| Real[DiscreteZerosAndPoles.Analysis.denominatorDegree(dzp)] | x0 | zeros(DiscreteZerosAndPoles.Analysis.denominatorDegree(dzp)) | Initial state vector |
| Plot.Records.Diagram | defaultDiagram (from PartialPlotFunction) | Default diagram layout | |
| Plot.Records.Device | device (from PartialPlotFunction) | Modelica_LinearSystems2.Utilities.Plot.Records.Device() | Properties of device where figure is shown |