functiontimeResponse

Plot the time response of the system. The response type is selectable

Extends from Modelica_LinearSystems2.Internal.PartialPlotFunctionMIMO (Interface of a plot function for MIMO systems).

Information

Syntax

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

Description

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

Example

  Modelica_LinearSystems2.StateSpace ss=Modelica_LinearSystems2.StateSpace(
    A=[-1.0,0.0,0.0; 0.0,-2.0,3.0; 0.0,-2.0,-3.0],
    B=[1.0; 1.0; 0.0],
    C=[0.0,1.0,1.0],
    D=[0.0])

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

algorithm
  Modelica_LinearSystems2.StateSpace.Plot.timeResponse(ss, response=response)
// gives:

See also

impulse, step, ramp, initial

Inputs

TypeNameDefaultDescription
StateSpacessState space system
Modelica.Units.SI.Timedt0Sample time
Modelica.Units.SI.TimetSpan0Simulation time span
TimeResponseresponseTimeResponse.Step
Real[size(ss.A, 1)]x0zeros(size(ss.A, 1))Initial state vector
BooleansubPlotstrueTrue, if all subsystem time responses are plotted in one window with subplots
Plot.Records.DiagramdefaultDiagram (from PartialPlotFunctionMIMO)Default diagram layout
Plot.Records.Devicedevice (from PartialPlotFunctionMIMO)Modelica_LinearSystems2.Utilities.Plot.Records.Device()Properties of device where figure is shown