Model { Name "distff" Version 3.00 SimParamPage "Solver" SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off ShowPortDataTypes off StartTime "0.0" StopTime "15" SolverMode "SingleTasking" Solver "ode45" RelTol "1e-3" AbsTol "1e-3" Refine "1" MaxStep "0.01" 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 20:09:30 2000" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" ModifiedDateFormat "%" LastModifiedDate "Tue Jan 18 20:11:20 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 "distff" 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 Step Name "Disturbance" Position [590, 20, 625, 50] Orientation "left" BackgroundColor "cyan" DropShadow on FontName "Arial" FontSize 14 Time "5" Before "0" After "1" SampleTime "0" } Block { BlockType SubSystem Name "Gf" Ports [1, 1, 0, 0, 0] Position [355, 22, 450, 88] Orientation "left" ForegroundColor "red" DropShadow on FontName "Arial" FontSize 14 ShowPortLabels off MaskType "Disturbance feedforward" MaskDescription "Disturbance feedforward" MaskPromptString "ON (1) or OFF (0):|numerator of Gf:|denominator" " of Gf" MaskStyleString "edit,edit,edit" MaskTunableValueString "on,on,on" MaskCallbackString "||" MaskEnableString "on,on,on" MaskVisibilityString "on,on,on" MaskInitialization "K=@1;ngf=@2;dgf=@3;" MaskDisplay "disp('DIST-FF')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "0|[-1 -1]|[0.2 1]" System { Name "Gf" Location [184, 227, 668, 503] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "in_1" Position [370, 105, 390, 125] Orientation "left" ForegroundColor "blue" DropShadow on FontName "Arial" FontSize 14 Port "1" PortWidth "-1" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType TransferFcn Name "Gf-K" Position [235, 79, 305, 151] Orientation "left" ForegroundColor "red" DropShadow on FontName "Arial" FontSize 14 Numerator "ngf" Denominator "dgf" } Block { BlockType Gain Name "switch" Position [120, 95, 175, 135] Orientation "left" ForegroundColor "red" DropShadow on FontName "Arial" FontSize 14 Gain "K" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "out_1" Position [40, 105, 60, 125] Orientation "left" ForegroundColor "green" DropShadow on FontName "Arial" FontSize 14 Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Gf-K" SrcPort 1 DstBlock "switch" DstPort 1 } Line { SrcBlock "switch" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Gf-K" DstPort 1 } } } Block { BlockType SubSystem Name "Go" Ports [1, 1, 0, 0, 0] Position [505, 239, 560, 291] ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 ShowPortLabels off MaskType "Go" MaskDisplay "disp('Go(s)')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Go" Location [513, 445, 780, 575] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "in_1" Position [15, 60, 35, 80] Port "1" PortWidth "-1" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType TransferFcn Name "Go1Go22" Position [50, 50, 135, 90] Numerator "[1]" Denominator "[2 3 1]" } Block { BlockType TransportDelay Name "Go22\nDelay_" Position [195, 55, 235, 85] DelayTime "1" InitialInput "0" BufferSize "1024" } Block { BlockType Outport Name "out_1" Position [250, 60, 270, 80] Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Go1Go22" SrcPort 1 DstBlock "Go22\nDelay_" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Go1Go22" DstPort 1 } Line { SrcBlock "Go22\nDelay_" SrcPort 1 DstBlock "out_1" DstPort 1 } } } Block { BlockType TransferFcn Name "Go1" Position [425, 133, 485, 187] BackgroundColor "yellow" DropShadow on ShowName off FontName "Arial" FontSize 14 Numerator "[1]" Denominator "[1 1]" MaskType "Go1" MaskDisplay "disp('Go1(s)')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType SubSystem Name "Go2" Ports [1, 1, 0, 0, 0] Position [600, 123, 660, 177] BackgroundColor "yellow" DropShadow on ShowName off FontName "Arial" FontSize 14 ShowPortLabels off MaskType "Go2" MaskDisplay "disp('Go2(s)')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Go2" Location [247, 307, 718, 580] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "yellow" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "in_1" Position [35, 71, 60, 99] ForegroundColor "blue" DropShadow on FontName "Arial" FontSize 14 Port "1" PortWidth "-1" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType TransferFcn Name "Go21" Position [145, 54, 230, 116] DropShadow on FontName "Arial" FontSize 14 Numerator "[1]" Denominator "[2 1]" } Block { BlockType TransportDelay Name "Go22\nDelay" Position [295, 55, 355, 115] DropShadow on FontName "Arial" FontSize 14 DelayTime "1" InitialInput "0" BufferSize "1024" } Block { BlockType Outport Name "out_1" Position [405, 69, 435, 101] ForegroundColor "green" DropShadow on FontName "Arial" FontSize 14 Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Go21" SrcPort 1 DstBlock "Go22\nDelay" DstPort 1 } Line { SrcBlock "Go22\nDelay" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Go21" DstPort 1 } } } Block { BlockType ToWorkspace Name "Plant" Position [715, 179, 765, 201] BackgroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 VariableName "y" Buffer "6000" Decimation "1" SampleTime "0" SaveFormat "Matrix" } Block { BlockType TransferFcn Name "Q(s)" Position [190, 144, 295, 196] ForegroundColor "red" DropShadow on FontName "Arial" FontSize 14 Numerator "[18 27 9]" Denominator "[1 4 9]" } Block { BlockType Step Name "Ref" Position [25, 140, 60, 170] BackgroundColor "cyan" DropShadow on FontName "Arial" FontSize 14 Time "1" Before "0" After "1" SampleTime "0" } Block { BlockType Scope Name "Scope" Ports [1, 0, 0, 0, 0] Position [725, 19, 770, 71] BackgroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 Floating off Location [370, 193, 707, 507] Open off NumInputPorts "1" TickLabels "on" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "15.000000" YMin "-1.500000" YMax "1.500000" 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 [135, 141, 155, 194] 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 [550, 120, 570, 175] 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 [335, 131, 355, 184] ForegroundColor "red" 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 [624, 285, 671, 305] Orientation "down" ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "-+" SaturateOnIntegerOverflow on } Block { BlockType ToWorkspace Name "control" Position [430, 213, 480, 237] BackgroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 VariableName "u" Buffer "6000" Decimation "1" SampleTime "0" SaveFormat "Matrix" } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Q(s)" DstPort 1 } Line { SrcBlock "Go1" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Go2" DstPort 1 } Line { SrcBlock "Go" SrcPort 1 Points [70, 0] DstBlock "Sum3" DstPort 1 } Line { SrcBlock "Sum3" SrcPort 1 Points [0, 8; -561, 0; 0, -138] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Ref" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Q(s)" SrcPort 1 Points [19, 0] Branch { DstBlock "Sum2" DstPort 2 } Branch { Points [0, 95] DstBlock "Go" DstPort 1 } } Line { SrcBlock "Go2" SrcPort 1 Points [29, 0] Branch { Points [-14, 0] Branch { Points [20, 0] DstBlock "Plant" DstPort 1 } Branch { Points [5, 0; 0, 120] DstBlock "Sum3" DstPort 2 } } Branch { Points [0, -105] DstBlock "Scope" DstPort 1 } } Line { SrcBlock "Sum2" SrcPort 1 Points [50, 0] Branch { DstBlock "Go1" DstPort 1 } Branch { Points [-20, 0; 0, 65] DstBlock "control" DstPort 1 } } Line { SrcBlock "Gf" SrcPort 1 Points [-30, 0] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Disturbance" SrcPort 1 Points [-81, 0; 0, 20] Branch { Points [0, 80] DstBlock "Sum1" DstPort 1 } Branch { DstBlock "Gf" DstPort 1 } } Annotation { Position [417, 361] VerticalAlignment "top" ForegroundColor "red" Text "THE USER CAN ENABLE OR DISABLE THE DISTURBANCE " "FEEDFORWARD ACTION\n BY DOUBLE CLICKING ON BLOCK DIST-FF" DropShadow on FontName "Arial" FontSize 14 } Annotation { Position [397, 331] VerticalAlignment "top" ForegroundColor "blue" Text "DISTURBANCE FEEDFORWARD EXAMPLE " DropShadow on FontName "Arial" FontSize 14 } } }