.Modelica_LinearSystems2.Examples.StateSpace.analysisControllablePoles

Information

This example shows the usage of function StateSpace.Internal.controllablePoles which is to compute the controllable and uncontrollable poles of a state space system.

Interface

function analysisControllablePoles
  extends Modelica.Icons.Function;
  import Modelica_LinearSystems2;
  import Modelica_LinearSystems2.StateSpace;
  import Modelica_LinearSystems2.Math.Matrices;
  import Modelica.Utilities.Streams.print;
  input StateSpace ssi = Modelica_LinearSystems2.StateSpace(A = [1, 0, 0, 0, 0, 0; 1, 0, 0, 0, 0, 0; 0, 2, 3, 0, 78, 6; 1, 1, 2, 2, 3, 3; 10, 13, 34, 0, 0, 1; 0, 0, 0, 2, 0, 0], B = [0, 0; 0, 0; 0, 0; 0, 0; 1, 0; 0, 0], C = [1, 0, 1, 0, 1, 0; 0, 1, 0, 1, 0, 1; 0, 1, 0, 1, 0, 1], D = [0, 0; 0, 0; 0, 0]);
  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 analysisControllablePoles;

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