Model { Name "QAWUP" 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 "0.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 20:45:58 2000" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" ModifiedDateFormat "%" LastModifiedDate "Tue Jan 18 21:00:58 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 "QAWUP" Location [2, 74, 789, 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 [530, 80, 560, 110] BackgroundColor "cyan" DropShadow on FontName "Arial" FontSize 14 Time "10" Before "0" After "-1" SampleTime "0" } Block { BlockType Gain Name "Gain" Position [230, 165, 275, 205] ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 Gain "qi" SaturateOnIntegerOverflow on } Block { BlockType TransferFcn Name "Go" Position [465, 277, 575, 333] ForegroundColor "red" DropShadow on FontName "Arial" FontSize 14 Numerator "2" Denominator "[1 3 2]" } Block { BlockType Mux Name "Mux" Ports [2, 1, 0, 0, 0] Position [680, 19, 720, 61] ForegroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 Inputs "2" DisplayOption "none" } Block { BlockType TransferFcn Name "Plant" Position [510, 154, 600, 216] BackgroundColor "yellow" DropShadow on FontName "Arial" FontSize 14 Numerator "2" Denominator "[1 3 2]" } Block { BlockType ToWorkspace Name "Planta" Position [690, 164, 730, 186] BackgroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 VariableName "y" Buffer "6000" Decimation "1" SampleTime "0" SaveFormat "Matrix" } Block { BlockType Step Name "Ref" Position [25, 139, 55, 171] BackgroundColor "cyan" DropShadow on FontName "Arial" FontSize 14 Time "1" Before "0" After "1" SampleTime "0" } Block { BlockType Saturate Name "Saturation" Position [450, 165, 490, 205] BackgroundColor "yellow" DropShadow on ShowName off FontName "Arial" FontSize 14 UpperLimit "sat" LowerLimit "-sat" } Block { BlockType Saturate Name "Saturation1" Position [300, 165, 340, 205] ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 UpperLimit "sat" LowerLimit "-sat" } Block { BlockType Scope Name "Scope" Ports [1, 0, 0, 0, 0] Position [700, 85, 745, 145] Orientation "left" BackgroundColor "green" DropShadow on NamePlacement "alternate" ShowName off FontName "Arial" FontSize 14 Floating off Location [250, 280, 795, 594] Open off NumInputPorts "1" TickLabels "on" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "20.000000" YMin "-1.2" YMax "1.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 [120, 144, 140, 191] 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 [690, 269, 710, 316] ForegroundColor "red" 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 [630, 149, 650, 196] 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 [185, 159, 205, 206] ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "+-" SaturateOnIntegerOverflow on } Block { BlockType TransferFcn Name "[Q(s)]^(-1) - (qi)^(-1)" Position [185, 259, 350, 311] Orientation "left" ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 Numerator "nqi" Denominator "dqi" MaskDescription "[Q(s)]^(-1) - (qi)^(-1)" MaskPromptString "numerator (nqi)|denominator (dqi)" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskVariables "nqi=@1;dqi=@2;" MaskDisplay "disp('[Q(s)]^(-1) - (qi)^(-1)')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "nqi|dqi" } Block { BlockType ToWorkspace Name "control" Position [405, 89, 445, 111] BackgroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 VariableName "u" Buffer "6000" Decimation "1" SampleTime "0" SaveFormat "Matrix" } Block { BlockType ToWorkspace Name "ref" Position [195, 88, 235, 112] BackgroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 VariableName "r" Buffer "6000" Decimation "1" SampleTime "0" SaveFormat "Matrix" } Line { SrcBlock "Go" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 Points [15, 0; 0, 90; -645, 0; 0, -205] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Plant" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Dist" SrcPort 1 Points [50, 0] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Saturation" SrcPort 1 DstBlock "Plant" DstPort 1 } Line { SrcBlock "Sum3" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Sum3" DstPort 1 } Line { SrcBlock "[Q(s)]^(-1) - (qi)^(-1)" SrcPort 1 Points [-15, 0; 0, -90] DstBlock "Sum3" DstPort 2 } Line { SrcBlock "Saturation1" SrcPort 1 Points [87, 0] Branch { Points [-60, 0; 0, 100] DstBlock "[Q(s)]^(-1) - (qi)^(-1)" DstPort 1 } Branch { Points [5, 0] Branch { Points [-2, 0] Branch { DstBlock "Saturation" DstPort 1 } Branch { Points [-23, 0; 0, 120] DstBlock "Go" DstPort 1 } } Branch { Points [-65, 0; 0, -85] DstBlock "control" DstPort 1 } } } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Saturation1" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 Points [35, 0] DstBlock "Scope" DstPort 1 } Line { SrcBlock "Ref" SrcPort 1 Points [12, 0] Branch { Points [0, -125] DstBlock "Mux" DstPort 1 } Branch { Points [35, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [-10, 0; 0, -55] DstBlock "ref" DstPort 1 } } } Line { SrcBlock "Sum2" SrcPort 1 Points [20, 0] Branch { Points [-13, 0; 0, -125] DstBlock "Mux" DstPort 2 } Branch { Points [-10, 0; 0, 105] DstBlock "Sum1" DstPort 1 } Branch { DstBlock "Planta" DstPort 1 } } Annotation { Position [342, 402] VerticalAlignment "top" ForegroundColor "blue" Text "IMC ARCHITECTURE WITH ANTI WIND-UP MECHANISM" DropShadow on FontName "Arial" FontSize 14 } Annotation { Position [397, 436] VerticalAlignment "top" ForegroundColor "red" Text "NOTE THAT qi, nqi(s) AND dqi(s) CAN BE OBTAINED" " USING MATLAB FUNCTION awup.m, \n[qi,nqi,dqi]=awup(nq,dq), THE READER MUST PR" "OVIDE nq and dq. ALSO ASIGN A VALUE TO \nTHE SATURATION LEVEL sat" DropShadow on FontName "Arial" FontSize 14 } } }