Model { Name "qaff1" Version 3.00 SimParamPage "Solver" SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off ShowPortDataTypes off StartTime "0.0" StopTime "20" SolverMode "SingleTasking" Solver "ode45" RelTol "1e-3" AbsTol "1e-3" Refine "1" MaxStep ".010" InitialStep "auto" FixedStep "auto" MaxOrder 5 OutputOption "RefineOutputTimes" OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime on TimeSaveName "t" SaveState off StateSaveName "xout" SaveOutput off OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState off FinalStateName "xFinal" SaveFormat "Matrix" LimitMaxRows off MaxRows "1000" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" IntegerOverflowMsg "warning" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" SignalLabelMismatchMsg "none" ConsistencyChecking "off" ZeroCross on SimulationMode "normal" BlockDataTips on BlockParametersDataTip on BlockAttributesDataTip off BlockPortWidthsDataTip off BlockDescriptionStringDataTip off BlockMaskParametersDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off OptimizeBlockIOStorage on BufferReuse on BooleanDataType off RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "oneshot" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect off Created "Tue Jan 18 19:59:16 2000" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" ModifiedDateFormat "%" LastModifiedDate "Tue Jan 18 20:02:18 2000" ModelVersionFormat "1.%" ConfigurationManager "none" 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 "qaff1" Location [2, 74, 802, 560] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on ReportName "simulink-default.rpt" Block { BlockType SubSystem Name "Band-Limited\nWhite Noise" Ports [0, 1, 0, 0, 0] Position [535, 302, 580, 338] Orientation "left" BackgroundColor "cyan" DropShadow on FontName "Arial" FontSize 14 ShowPortLabels off MaskType "Continuous White Noise." MaskDescription "White noise for continuous (s-domain) systems." "\nBand-limited using zero-order-hold." MaskHelp "Implemented using white noise into Zero-Order H" "old block. The seed and power can be vectors of the same length to produce a " "vector of white noise sources. For faster simulation, set sample time to the " "highest value possible but in accordance with the fastest dynamics of system." MaskPromptString "Noise Power:|Sample Time:|Seed" MaskStyleString "edit,edit,edit" MaskTunableValueString "on,on,on" MaskCallbackString "||" MaskEnableString "on,on,on" MaskVisibilityString "on,on,on" MaskInitialization "Cov = @1; Ts = @2; seed = @3; r = rand(1,12); r" "2 = [r(1),r;r,r(12)]; t =[1:13;1:13];" MaskDisplay "plot(t(:),r2(:))" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "[0.1]|0.1|[23341]" System { Name "Band-Limited\nWhite Noise" Location [56, 339, 341, 468] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "cyan" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Gain Name "Gain" Position [155, 31, 195, 69] Gain "[sqrt(Cov)]/[sqrt(Ts)]" SaturateOnIntegerOverflow on } Block { BlockType RandomNumber Name "White Noise" Position [25, 40, 45, 60] Mean "0" Variance "1" Seed "seed" SampleTime "0" } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold" Position [85, 34, 120, 66] SampleTime "Ts" } Block { BlockType Outport Name "Out_1" Position [230, 40, 250, 60] Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "White Noise" SrcPort 1 DstBlock "Zero-Order\nHold" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Out_1" DstPort 1 } Line { SrcBlock "Zero-Order\nHold" SrcPort 1 DstBlock "Gain" DstPort 1 } } } Block { BlockType Step Name "Dist_o" Position [535, 46, 570, 74] BackgroundColor "cyan" DropShadow on FontName "Arial" FontSize 14 Time "10" Before "0" After "1" SampleTime "0" } Block { BlockType Step Name "Dist_o1" Position [330, 46, 360, 74] BackgroundColor "cyan" DropShadow on FontName "Arial" FontSize 14 Time "10" Before "0" After "1" SampleTime "0" } Block { BlockType StateSpace Name "HP filter" Position [435, 302, 490, 338] Orientation "left" BackgroundColor "cyan" DropShadow on FontName "Arial" FontSize 14 A "at" B "bt" C "ct" D "dt" X0 "0" MaskType "buttap,lp2hp" MaskDescription "Analog Butterworth high pass filter.\n\n(Requir" "es Signal Processing Toolbox)" MaskHelp "Butterworth high pass filter using MATLAB's but" "ter and lp2hp commands." MaskPromptString "Cutoff frequency (rad/sec):|Order" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskInitialization "[at,bt,ct,dt,w,mag]=filtm('buttap','lp2hp',@1,[" "],20,@2);" MaskDisplay "plot(w,mag)" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "0.5|5" } Block { BlockType ZeroPole Name "Model" Position [230, 194, 345, 246] Orientation "left" ForegroundColor "red" DropShadow on FontName "Arial" FontSize 14 Zeros "[2]" Poles "[-2; -1]" Gain "[-1]" } Block { BlockType ZeroPole Name "Plant" Position [470, 107, 585, 163] BackgroundColor "yellow" DropShadow on FontName "Arial" FontSize 14 Zeros "[2]" Poles "[-2; -1]" Gain "[-1]" } Block { BlockType ZeroPole Name "Q(s)" Position [185, 123, 245, 167] ForegroundColor "red" DropShadow on FontName "Arial" FontSize 14 Zeros "z" Poles "p" Gain "k" MaskType "buttap" MaskDescription "Analog Butterworth low pass filter.\n\n(Require" "s Signal Processing Toolbox)" MaskHelp "Butterworth low pass filter using MATLAB's butt" "er command." MaskPromptString "Cutoff frequency (rad/sec)|Order" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskInitialization "[z,p,k]=buttap(@2); z=@1*z; p=@1*p; k=real(prod" "(-p)); [num,den]=zp2tf(z,p,k); w=logspace(log10(@1/10),log10(10*@1),20); h=fr" "eqs(num,den,w); " MaskDisplay "plot(20*log10(w),20*log10(abs(h)))" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "5|4" } Block { BlockType Step Name "Ref" Position [45, 116, 80, 144] BackgroundColor "cyan" DropShadow on FontName "Arial" FontSize 14 Time "1" Before "0" After "1" SampleTime "0" } Block { BlockType Scope Name "Scope1" Ports [1, 0, 0, 0, 0] Position [710, 99, 750, 151] BackgroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 Floating off Location [464, 160, 795, 474] Open off NumInputPorts "1" TickLabels "on" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "20.000000" YMin "-2" YMax "2" SaveToWorkspace off SaveName "ScopeData" DataFormat "Matrix" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "Scope2" Ports [1, 0, 0, 0, 0] Position [215, 54, 255, 106] Orientation "left" BackgroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 Floating off Location [591, 565, 922, 879] Open off NumInputPorts "1" TickLabels "on" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "20.000000" YMin "-2.000000" YMax "2.000000" SaveToWorkspace off SaveName "ScopeData" DataFormat "Matrix" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1, 0, 0, 0] Position [125, 118, 145, 167] ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "+-" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum1" Ports [2, 1, 0, 0, 0] Position [630, 99, 650, 146] BackgroundColor "yellow" DropShadow on ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "++" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum2" Ports [2, 1, 0, 0, 0] Position [365, 259, 385, 306] Orientation "left" BackgroundColor "yellow" DropShadow on ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "++" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum3" Ports [2, 1, 0, 0, 0] Position [160, 249, 180, 296] Orientation "left" ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "-+" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum4" Ports [2, 1, 0, 0, 0] Position [420, 109, 440, 156] BackgroundColor "yellow" DropShadow on ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "++" SaturateOnIntegerOverflow on } Block { BlockType ToWorkspace Name "To Workspace" Position [710, 184, 755, 206] BackgroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 VariableName "y" Buffer "10000" Decimation "1" SampleTime "0" SaveFormat "Matrix" } Block { BlockType ToWorkspace Name "To Workspace1" Position [135, 19, 185, 41] BackgroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 VariableName "r" Buffer "10000" Decimation "1" SampleTime "0" SaveFormat "Matrix" } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Q(s)" DstPort 1 } Line { SrcBlock "Dist_o" SrcPort 1 Points [40, 0] DstBlock "Sum1" DstPort 1 } Line { SrcBlock "HP filter" SrcPort 1 Points [-30, 0] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Q(s)" SrcPort 1 Points [47, 0] Branch { Points [0, -65] DstBlock "Scope2" DstPort 1 } Branch { Points [95, 0] Branch { DstBlock "Sum4" DstPort 2 } Branch { Points [-15, 0; 0, 75] DstBlock "Model" DstPort 1 } } } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Sum3" DstPort 2 } Line { SrcBlock "Model" SrcPort 1 Points [-15, 0; 0, 40] DstBlock "Sum3" DstPort 1 } Line { SrcBlock "Sum3" SrcPort 1 Points [-60, 0; 0, -120] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 Points [35, 0] Branch { DstBlock "Scope1" DstPort 1 } Branch { Points [-18, 0; 0, 70; 18, 0] Branch { Points [-18, 0; 0, 75] DstBlock "Sum2" DstPort 1 } Branch { DstBlock "To Workspace" DstPort 1 } } } Line { SrcBlock "Band-Limited\nWhite Noise" SrcPort 1 DstBlock "HP filter" DstPort 1 } Line { SrcBlock "Plant" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum4" SrcPort 1 DstBlock "Plant" DstPort 1 } Line { SrcBlock "Ref" SrcPort 1 Points [0, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [15, 0; 0, -100] DstBlock "To Workspace1" DstPort 1 } } Line { SrcBlock "Dist_o1" SrcPort 1 Points [25, 0; 0, 60] DstBlock "Sum4" DstPort 1 } Annotation { Position [342, 398] VerticalAlignment "top" ForegroundColor "blue" Text "LOOP TO TEST DIFFERENT CHOICE FOR Q(s) IN THE C" "ONTROL OF A NMP PLANT" DropShadow on FontName "Arial" FontSize 14 } } }