.Modelica_LinearSystems2.WorkInProgress.StateSpace.Examples.analysis2

Information

This example shows the usage of function Modelica_LinearSystems2.StateSpace.Analysis.isControllable which is to check whether a system is controllable or not.

Interface

function analysis2
  import Modelica_LinearSystems2;
  import Modelica_LinearSystems2.StateSpace;
  import Modelica_LinearSystems2.Math.Complex;
  import Re = Modelica_LinearSystems2.Math.Complex.real;
  import Im = Modelica_LinearSystems2.Math.Complex.imag;
  input StateSpace ssi = Modelica_LinearSystems2.StateSpace(A = [-6.0, 0, 2, -13.0; -9.0, -12.0, -3.25, 19.25; 0, 0, 1, 34.0; 0, 0, -34.0, -31.0]/6, B = [1; 1; 1; 1], C = identity(4), D = zeros(4, 1), xNames = {"x1", "x2", "x3", "x4"}, uNames = {"u"}, yNames = {"y1", "y2", "y3", "y4"});
  input Modelica_LinearSystems2.Internal.AnalyseOptions analyseOptions = Modelica_LinearSystems2.Internal.AnalyseOptions(plotEigenValues = true, plotInvariantZeros = true, plotStepResponse = true, plotFrequencyResponse = false, printEigenValues = true, printEigenValueProperties = true, printInvariantZeros = true, printControllability = false, printObservability = false, headingEigenValues = "Eigenvalues", headingInvariantzeros = "Invariant zeros", headingStepResponse = "Step response", headingFrequencyResponse = "Frequency response");
  input Boolean systemOnFile = false "True, if state space system is defined on file" annotation(
    Dialog(group = "system data definition"),
    choices(checkBox = true));
  input String fileName = "NoName" "file where matrix [A, B; C, D] is stored" annotation(
    Dialog(group = "system data definition", loadSelector(filter = "MAT files (*.mat);; All files (*.*)", caption = "state space system data file"), enable = systemOnFile));
  input String matrixName = "ABCD" "Name of the state space system matrix" annotation(
    Dialog(group = "system data definition", enable = systemOnFile));
  output Boolean ok;
end analysis2;

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