Model { Name "SLEW1" Version 3.00 SimParamPage "Solver" SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off ShowPortDataTypes off StartTime "0.0" StopTime "40" 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 21:04:48 2000" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" ModifiedDateFormat "%" LastModifiedDate "Tue Jan 18 21:08:04 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 "SLEW1" 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 "Dist" Position [380, 25, 410, 55] BackgroundColor "cyan" DropShadow on FontName "Arial" FontSize 14 Time "20" Before "0" After "1" SampleTime "0" } Block { BlockType SubSystem Name "PI CONTROLLER" Ports [1, 1, 0, 0, 0] Position [155, 92, 275, 138] ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 ShowPortLabels off MaskType "PI controller" MaskDescription "PI controller" MaskHelp "PI controller with anti wind up feature for sle" "w rate limitation" MaskPromptString "Prop gain Kp:|Integral time Tr:|slew rate limit" " s_max:" MaskStyleString "edit,edit,edit" MaskTunableValueString "on,on,on" MaskCallbackString "||" MaskEnableString "on,on,on" MaskVisibilityString "on,on,on" MaskInitialization "Kp=@1;Tr=@2;slewc=@3;" MaskDisplay "disp('PI+A.WU ')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "0.5|1.5|slew" System { Name "PI CONTROLLER" Location [62, 249, 542, 511] 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, 75, 35, 95] ForegroundColor "blue" DropShadow on FontName "Arial" FontSize 14 Port "1" PortWidth "-1" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType Gain Name "Gain" Position [160, 73, 205, 117] ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 Gain "Kp" SaturateOnIntegerOverflow on } Block { BlockType RateLimiter Name "Slew rate \nlim. model" Position [295, 73, 355, 117] ForegroundColor "red" DropShadow on FontName "Arial" FontSize 14 RisingSlewLimit "slewc" FallingSlewLimit "-slewc" } Block { BlockType Sum Name "Sum4" Ports [2, 1, 0, 0, 0] Position [95, 77, 115, 113] ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "+-" SaturateOnIntegerOverflow on } Block { BlockType TransferFcn Name "Transfer Fcn" Position [185, 164, 265, 216] Orientation "left" ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 Numerator "-1/Kp" Denominator "[Tr 1]" } Block { BlockType Outport Name "out_1" Position [430, 85, 450, 105] ForegroundColor "green" DropShadow on FontName "Arial" FontSize 14 Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Transfer Fcn" SrcPort 1 Points [-131, 0; 0, -85] DstBlock "Sum4" DstPort 2 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Slew rate \nlim. model" DstPort 1 } Line { SrcBlock "Sum4" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { SrcBlock "Slew rate \nlim. model" SrcPort 1 Points [41, 0] Branch { DstBlock "out_1" DstPort 1 } Branch { Points [0, 95] DstBlock "Transfer Fcn" DstPort 1 } } } } Block { BlockType SubSystem Name "PLANT" Ports [2, 1, 0, 0, 0] Position [495, 54, 575, 136] BackgroundColor "yellow" DropShadow on ShowName off FontName "Arial" FontSize 14 ShowPortLabels off MaskType "PLANT" MaskDisplay "disp('Plant')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "PLANT" Location [181, 308, 651, 548] 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 [30, 20, 50, 40] ForegroundColor "blue" DropShadow on FontName "Arial" FontSize 14 Port "1" PortWidth "-1" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType Inport Name "in_2" Position [30, 75, 50, 95] ForegroundColor "blue" DropShadow on FontName "Arial" FontSize 14 Port "2" PortWidth "-1" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType TransportDelay Name "Delay" Position [330, 56, 385, 94] DropShadow on FontName "Arial" FontSize 14 DelayTime "1." InitialInput "0" BufferSize "4096" } Block { BlockType TransferFcn Name "Plant" Position [160, 59, 240, 111] DropShadow on FontName "Arial" FontSize 14 Numerator "1" Denominator "[1 2 1 ]" } Block { BlockType RateLimiter Name "Slew rate\nlim." Position [85, 69, 130, 101] DropShadow on FontName "Arial" FontSize 14 RisingSlewLimit "slew" FallingSlewLimit "-slew" } Block { BlockType Sum Name "Sum3" Ports [2, 1, 0, 0, 0] Position [280, 55, 300, 95] DropShadow on ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "++" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "out_1" Position [425, 65, 445, 85] ForegroundColor "green" DropShadow on FontName "Arial" FontSize 14 Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Plant" SrcPort 1 DstBlock "Sum3" DstPort 2 } Line { SrcBlock "Sum3" SrcPort 1 DstBlock "Delay" DstPort 1 } Line { SrcBlock "Slew rate\nlim." SrcPort 1 DstBlock "Plant" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 Points [195, 0; 0, 35] DstBlock "Sum3" DstPort 1 } Line { SrcBlock "Delay" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "in_2" SrcPort 1 DstBlock "Slew rate\nlim." DstPort 1 } } } Block { BlockType Step Name "Ref" Position [15, 90, 45, 120] 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 [670, 68, 715, 122] BackgroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 Floating off Location [212, 161, 678, 475] Open off NumInputPorts "1" TickLabels "on" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "40.000000" YMin "-2" YMax "2" 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 [90, 97, 110, 133] ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "+-" SaturateOnIntegerOverflow on } Block { BlockType ToWorkspace Name "cont" Position [390, 169, 440, 191] BackgroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 VariableName "u" Buffer "10000" Decimation "1" SampleTime "0" SaveFormat "Matrix" } Block { BlockType ToWorkspace Name "plant" Position [665, 154, 715, 176] BackgroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 VariableName "y" Buffer "6000" Decimation "1" SampleTime "0" SaveFormat "Matrix" } Block { BlockType ToWorkspace Name "ref" Position [160, 14, 210, 36] 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 "PI CONTROLLER" DstPort 1 } Line { SrcBlock "Dist" SrcPort 1 Points [45, 0; 0, 35] DstBlock "PLANT" DstPort 1 } Line { SrcBlock "PI CONTROLLER" SrcPort 1 Points [69, 0] Branch { DstBlock "PLANT" DstPort 2 } Branch { Points [0, 65] DstBlock "cont" DstPort 1 } } Line { SrcBlock "Ref" SrcPort 1 Points [8, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [0, -80] DstBlock "ref" DstPort 1 } } Line { SrcBlock "PLANT" SrcPort 1 Points [15, 0] Branch { Points [44, 0] Branch { DstBlock "Scope1" DstPort 1 } Branch { Points [0, 70] DstBlock "plant" DstPort 1 } } Branch { Points [0, 160; -530, 0; 0, -130] DstBlock "Sum" DstPort 2 } } Annotation { Position [397, 277] VerticalAlignment "top" ForegroundColor "blue" Text "LOOP TO EVALUATE THE ANTI WINDUP CONTROL OF A P" "LANT WITH SLEW RATE LIMITATION\nTHE USER SHOULD SPECIFY A VALUE FOR THE VARIA" "BLE slew, WHICH CORRESPONDS TO THE SLEW RATE\nLIMITATION IN THE PLANT." DropShadow on FontName "Arial" FontSize 14 } } }