.Modelica_LinearSystems2.WorkInProgress.StateSpace.Examples.plotBodeSISODiscrete

Information

Plots the Bode diagram of continuous state space system and the corresponding discrete state space system and  with automatic determination of the frequency range to plot 

Interface

function plotBodeSISODiscrete
  import Modelica;
  import Modelica_LinearSystems2.StateSpace;
  import Modelica_LinearSystems2.WorkInProgress.DiscreteStateSpace;
  import Modelica_LinearSystems2.TransferFunction;
  input Boolean systemOnFile = false "True, if state space system is defined on file";
  input String fileName = "NoName" "file where matrix [A, B; C, D] is stored";
  input Real A[:, size(A, 1)] = [-1.0, 0.0, 0.0; 0.0, -2.0, 0.0; 0.0, 0.0, -3.0];
  input Real B[size(A, 2), :] = [0.0, 1.0; 1.0, 1.0; -1.0, 0.0];
  input Real C[:, size(A, 1)] = [0.0, 1.0, 1.0; 1.0, 1.0, 1.0];
  input Real D[size(C, 1), size(B, 2)] = [1.0, 0.0; 0.0, 1.0];
  input Modelica.Units.SI.Time Ts = 0.1 "Sample time";
  input Modelica_LinearSystems2.Utilities.Types.Method method = Modelica_LinearSystems2.Utilities.Types.Method.StepExact "Discretization method";
  input Integer iu = 1 "index of inout";
  input Integer iy = 1 "index of output";
  output Boolean ok;
end plotBodeSISODiscrete;

Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos