functionbode

Plot discrete zeros a-and-poles transfer function as bode plot

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

Information

Syntax

DiscreteZerosAndPoles.Plot.bode(dzp)
   or
DiscreteZerosAndPoles.Plot.bode(
  dzp,
  nPoints,
  autoRange,
  f_min,
  f_max,
  magnitude=true,
  phase=true,
  defaultDiagram=Modelica_LinearSystems2.Internal.DefaultDiagramBodePlot(),
  device=Modelica_LinearSystems2.Utilities.Plot.Records.Device() )

Description

This function plots the bode-diagram of a DiscreteZerosAndPoles transfer function.

Example

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

algorithm
  Modelica_LinearSystems2.DiscreteZerosAndPoles.Plot.plotBode(dzp)
//  gives:


Inputs

TypeNameDefaultDescription
DiscreteZerosAndPolesdzpDiscreteZerosAndPoles function to be plotted
IntegernPoints200Number of points
BooleanautoRangetrueTrue, if abszissa range is automatically determined
SI.Frequencyf_min0.1Minimum frequency value, if autoRange = false
SI.Frequencyf_max10Maximum frequency value, if autoRange = false
Booleanmagnitudetrue= true, to plot the magnitude of dzp
Booleanphasetrue= true, to plot the pase of dzp
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
BooleanHztrue= true, to plot abszissa in [Hz], otherwise in [rad/s] (= 2*pi*Hz)
BooleandBfalse= true, to plot magnitude in [], otherwise in [dB] (=20*log10(value))