Model { Name "uvmrac_non_nom_final" Version 2.09 SimParamPage Solver SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off PaperOrientation landscape PaperType usletter PaperUnits inches StartTime "0.0" StopTime "0.4" Solver ode1 RelTol "1e-3" AbsTol "1e-6" Refine "1" MaxStep "auto" InitialStep "auto" FixedStep "0.00002" MaxOrder 5 OutputOption RefineOutputTimes OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime on TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState off FinalStateName "xFinal" LimitMaxRows off MaxRows "1000" Decimation "1" AlgebraicLoopMsg warning MinStepSizeMsg warning UnconnectedInputMsg warning UnconnectedOutputMsg warning UnconnectedLineMsg warning ConsistencyChecking off ZeroCross on SimulationMode normal RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_unix.tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off ExtModeMexFile "ext_comm" ExtModeBatchMode off BlockDefaults { Orientation right ForegroundColor black BackgroundColor white DropShadow off NamePlacement normal FontName "Helvetica" FontSize 10 FontWeight normal FontAngle normal ShowName on } AnnotationDefaults { HorizontalAlignment center VerticalAlignment middle ForegroundColor black BackgroundColor white DropShadow off FontName "Helvetica" FontSize 10 FontWeight normal FontAngle normal } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight normal FontAngle normal } System { Name "uvmrac_non_nom_final" Location [146, 148, 883, 766] Open on ScreenColor white Block { BlockType StateSpace Name "G(s)" Position [210, 122, 270, 158] A "Ap" B "Bp" C "Cp" D "Dp" X0 "xp0" } Block { BlockType StateSpace Name "Modelo" Position [210, 27, 270, 63] A "Am" B "[1 0; 0 1]" C "eye(2)" D "zeros(2)" X0 "[0 ; 0]" } Block { BlockType Reference Name "Sp" Ports [1, 1, 0, 0, 0] Position [610, 145, 640, 175] SourceBlock "simulink/Linear/Matrix\nGain" SourceType "Matrix Gain" K "Sp" } Block { BlockType Gain Name "c1" Position [390, 225, 430, 255] Gain "c1" } Block { BlockType Gain Name "c2" Position [440, 175, 470, 205] Gain "c2" } Block { BlockType Constant Name "c3*wdc*bar_d+delta" Position [415, 275, 435, 295] Value "dd" } Block { BlockType Reference Name "d" Ports [1, 1, 0, 0, 0] Position [50, 395, 80, 425] Orientation up SourceBlock "simulink/Linear/Matrix\nGain" SourceType "Matrix Gain" K "[1 ; 1]" } Block { BlockType SignalGenerator Name "d1" Position [15, 450, 45, 480] WaveForm square Amplitude "2" Frequency "30" Units rad/sec } Block { BlockType Scope Name "e" Ports [1, 0, 0, 0, 0] Position [535, 45, 565, 75] Floating off Location [370, 56, 694, 295] Open on Grid on TickLabels on ZoomMode on TimeRange "auto" YMin "-0.5 " YMax "1 " SaveToWorkspace on SaveName "e" LimitMaxRows on MaxRows "5000" Decimation "10" SampleInput off SampleTime "0" } Block { BlockType Sum Name "erro" Ports [2, 1, 0, 0, 0] Position [320, 72, 350, 103] Inputs "-+" } Block { BlockType Sum Name "f" Ports [3, 1, 0, 0, 0] Position [490, 213, 525, 277] Inputs "+++" } Block { BlockType Product Name "f e/||e||" Ports [3, 1, 0, 0, 0] Position [560, 144, 590, 176] Inputs "*/*" } Block { BlockType Mux Name "r" Ports [2, 1, 0, 0, 0] Position [130, 27, 165, 63] Inputs "2" } Block { BlockType SignalGenerator Name "r1" Position [50, 20, 80, 50] WaveForm square Amplitude "80" Frequency "24" Units rad/sec } Block { BlockType SignalGenerator Name "r2" Position [50, 90, 80, 120] WaveForm sine Amplitude "40" Frequency "18" Units rad/sec } Block { BlockType Reference Name "theta_nomT" Ports [1, 1, 0, 0, 0] Position [460, 320, 490, 350] SourceBlock "simulink/Linear/Matrix\nGain" SourceType "Matrix Gain" K "theta_nomT" } Block { BlockType Scope Name "u" Ports [1, 0, 0, 0, 0] Position [450, 420, 480, 450] Floating off Location [368, 351, 692, 590] Open on Grid on TickLabels on ZoomMode on TimeRange "auto" YMin "-4 " YMax "5 " SaveToWorkspace on SaveName "u" LimitMaxRows on MaxRows "50000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Sum Name "u+d" Ports [2, 1, 0, 0, 0] Position [55, 315, 90, 350] Orientation up NamePlacement alternate Inputs "++" } Block { BlockType Sum Name "unom+SpU" Ports [2, 1, 0, 0, 0] Position [545, 362, 575, 393] Orientation left Inputs "+-" } Block { BlockType Mux Name "w" Ports [4, 1, 0, 0, 0] Position [175, 222, 210, 258] Inputs "4" } Block { BlockType StateSpace Name "w1" Position [225, 417, 285, 453] A "[-1 0;0 -1]" B "[1 0; 0 1]" C "eye(2)" D "zeros(2,2)" X0 "[0; 0]" } Block { BlockType StateSpace Name "w2" Position [225, 497, 285, 533] A "[-1 0;0 -1]" B "[1 0; 0 1]" C "eye(2)" D "zeros(2,2)" X0 "[0; 0]" } Block { BlockType Scope Name "y" Ports [1, 0, 0, 0, 0] Position [320, 125, 350, 155] Floating off Location [29, 336, 353, 575] Open on Grid on TickLabels on ZoomMode on TimeRange "auto" YMin "-0.5 " YMax "1 " SaveToWorkspace on SaveName "y" LimitMaxRows on MaxRows "5000" Decimation "10" SampleInput off SampleTime "0" } Block { BlockType Scope Name "ym" Ports [1, 0, 0, 0, 0] Position [320, 15, 350, 45] Floating off Location [15, 50, 339, 289] Open on Grid on TickLabels on ZoomMode on TimeRange "auto" YMin "-0.4 " YMax "0.5 " SaveToWorkspace on SaveName "ym" LimitMaxRows on MaxRows "5000" Decimation "10" SampleInput off SampleTime "0" } Block { BlockType Fcn Name "||e||" Position [380, 75, 440, 105] Expr "sqrt(u(1)^2+u(2)^2)" } Block { BlockType Fcn Name "||w||" Position [295, 225, 355, 255] Expr "sqrt(u(1))" } Block { BlockType Reference Name "||w||2" Ports [2, 1, 0, 0, 0] Position [240, 222, 270, 253] SourceBlock "simulink/Linear/Dot Product" SourceType "Dot Product" } Line { SrcBlock "d" SrcPort 1 DstBlock "u+d" DstPort 1 } Line { SrcBlock "d1" SrcPort 1 Points [15, 0] DstBlock "d" DstPort 1 } Line { SrcBlock "u+d" SrcPort 1 Points [0, -170] DstBlock "G(s)" DstPort 1 } Line { SrcBlock "unom+SpU" SrcPort 1 Points [-135, 0] Branch { Points [-200, 0] Branch { Points [-125, 0] DstBlock "u+d" DstPort 2 } Branch { Points [0, 55] DstBlock "w1" DstPort 1 } } Branch { Points [0, 55] DstBlock "u" DstPort 1 } } Line { SrcBlock "theta_nomT" SrcPort 1 Points [105, 0; 0, 35] DstBlock "unom+SpU" DstPort 1 } Line { SrcBlock "Sp" SrcPort 1 Points [15, 0; 0, 225] DstBlock "unom+SpU" DstPort 2 } Line { SrcBlock "r" SrcPort 1 Points [15, 0] Branch { Points [0, 80; -70, 0; 0, 40; -25, 0; 0, 90] DstBlock "w" DstPort 4 } Branch { DstBlock "Modelo" DstPort 1 } } Line { SrcBlock "w2" SrcPort 1 Points [60, 0; 0, -215; -200, 0; 0, -65] DstBlock "w" DstPort 2 } Line { SrcBlock "w1" SrcPort 1 Points [25, 0; 0, -145; -175, 0; 0, -65] DstBlock "w" DstPort 1 } Line { SrcBlock "w" SrcPort 1 Points [5, 0] Branch { Points [0, 95] DstBlock "theta_nomT" DstPort 1 } Branch { Points [0, -10] DstBlock "||w||2" DstPort 1 } Branch { Points [0, 5] DstBlock "||w||2" DstPort 2 } } Line { SrcBlock "c3*wdc*bar_d+delta" SrcPort 1 Points [15, 0; 0, -20] DstBlock "f" DstPort 3 } Line { SrcBlock "||w||2" SrcPort 1 DstBlock "||w||" DstPort 1 } Line { SrcBlock "||e||" SrcPort 1 Points [30, 0; 0, 50] Branch { Points [-50, 0] DstBlock "c2" DstPort 1 } Branch { Points [0, 20] DstBlock "f e/||e||" DstPort 2 } } Line { SrcBlock "Modelo" SrcPort 1 Points [20, 0] Branch { Points [0, 35] DstBlock "erro" DstPort 1 } Branch { Points [0, -15] DstBlock "ym" DstPort 1 } } Line { SrcBlock "c1" SrcPort 1 Points [40, 0] DstBlock "f" DstPort 2 } Line { SrcBlock "||w||" SrcPort 1 DstBlock "c1" DstPort 1 } Line { SrcBlock "f e/||e||" SrcPort 1 DstBlock "Sp" DstPort 1 } Line { SrcBlock "c2" SrcPort 1 DstBlock "f" DstPort 1 } Line { SrcBlock "r1" SrcPort 1 DstBlock "r" DstPort 1 } Line { SrcBlock "r2" SrcPort 1 Points [30, 0] DstBlock "r" DstPort 2 } Line { SrcBlock "G(s)" SrcPort 1 Points [20, 0] Branch { Points [0, -45] DstBlock "erro" DstPort 2 } Branch { Points [0, 0] Branch { Points [0, 45; -185, 0; 0, 60] Branch { DstBlock "w" DstPort 3 } Branch { Points [0, 270] DstBlock "w2" DstPort 1 } } Branch { DstBlock "y" DstPort 1 } } } Line { SrcBlock "f" SrcPort 1 Points [0, -75] DstBlock "f e/||e||" DstPort 3 } Line { SrcBlock "erro" SrcPort 1 Points [5, 0] Branch { DstBlock "||e||" DstPort 1 } Branch { Points [0, -30; 140, 0] Branch { Points [0, 90] DstBlock "f e/||e||" DstPort 1 } Branch { DstBlock "e" DstPort 1 } } } } }