Model { Name "TANK1" Version 3.00 SimParamPage "Solver" SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths on ShowPortDataTypes off StartTime "0.0" StopTime "200" SolverMode "SingleTasking" Solver "ode45" RelTol "1e-4" AbsTol "1e-4" Refine "1" MaxStep ".10" 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 CloseFcn ";slview('closediagram',bdroot);;slview('closediagra" "m',bdroot);" Created "Tue Jan 18 19:15:26 2000" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" ModifiedDateFormat "%" LastModifiedDate "Tue Jan 18 19:28:06 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 "TANK1" Location [2, 72, 798, 552] 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 Integrator Name "Integrator" Ports [1, 1, 0, 0, 0] Position [350, 127, 390, 173] ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 ExternalReset "none" InitialConditionSource "internal" InitialCondition "2" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType SubSystem Name "MODEL" Ports [1, 1, 0, 0, 0] Position [295, 232, 360, 288] Orientation "left" ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 ShowPortLabels off MaskType "Model" MaskDisplay "disp('Model')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "MODEL" Location [120, 212, 718, 457] 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 [40, 50, 60, 70] ForegroundColor "blue" DropShadow on FontName "Arial" FontSize 14 Port "1" PortWidth "-1" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType Fcn Name "Fcn" Position [285, 123, 360, 167] Orientation "left" ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 Expr "sqrt(abs(u[1]))" } Block { BlockType Gain Name "Gain" Position [125, 124, 175, 166] Orientation "left" ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 Gain "2" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "Integrator1" Ports [1, 1, 0, 0, 0] Position [320, 43, 370, 97] ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 ExternalReset "none" InitialConditionSource "internal" InitialCondition "0.25" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Sum Name "Sum2" Ports [2, 1, 0, 0, 0] Position [240, 54, 260, 81] ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "+-" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "out_1" Position [485, 60, 505, 80] ForegroundColor "green" DropShadow on FontName "Arial" FontSize 14 Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Fcn" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [-20, 0; 0, -70] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [85, 0] Branch { DstBlock "out_1" DstPort 1 } Branch { Points [0, 75] DstBlock "Fcn" DstPort 1 } } } } Block { BlockType Mux Name "Mux" Ports [2, 1, 0, 0, 0] Position [600, 44, 650, 91] ForegroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 Inputs "2" DisplayOption "none" } Block { BlockType SubSystem Name "PLANT" Ports [1, 1, 0, 0, 0] Position [500, 119, 555, 181] BackgroundColor "yellow" DropShadow on ShowName off FontName "Arial" FontSize 14 ShowPortLabels off MaskDisplay "disp('Plant')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "PLANT" Location [53, 256, 665, 527] 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 [40, 75, 60, 95] ForegroundColor "blue" DropShadow on FontName "Arial" FontSize 14 Port "1" PortWidth "-1" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType Fcn Name "Fcn" Position [360, 153, 435, 197] Orientation "left" DropShadow on FontName "Arial" FontSize 14 Expr "sqrt(abs(u[1]))" } Block { BlockType Gain Name "Gain" Position [185, 156, 230, 194] Orientation "left" DropShadow on ShowName off FontName "Arial" FontSize 14 Gain "2" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "Integrator" Ports [1, 1, 0, 0, 0] Position [265, 74, 300, 116] DropShadow on ShowName off FontName "Arial" FontSize 14 ExternalReset "none" InitialConditionSource "internal" InitialCondition "0.25" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Sum Name "Sum" Ports [2, 1, 0, 0, 0] Position [145, 74, 165, 116] DropShadow on ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "+-" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "out_1" Position [565, 85, 585, 105] ForegroundColor "green" DropShadow on FontName "Arial" FontSize 14 Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [-60, 0; 0, -70] DstBlock "Sum" DstPort 2 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 Points [215, 0; 0, 5] Branch { Points [0, -5] DstBlock "out_1" DstPort 1 } Branch { Points [0, 75] DstBlock "Fcn" DstPort 1 } } Line { SrcBlock "Fcn" SrcPort 1 DstBlock "Gain" DstPort 1 } } } Block { BlockType SubSystem Name "Reference " Ports [0, 1, 0, 0, 0] Position [60, 118, 150, 162] BackgroundColor "cyan" DropShadow on ShowName off FontName "Arial" FontSize 14 ShowPortLabels off MaskType "Ref" MaskDisplay "disp('Reference')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Reference " Location [54, 248, 639, 499] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "cyan" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Constant Name "Constant" Position [75, 128, 95, 152] DropShadow on FontName "Arial" FontSize 14 Value "1" } Block { BlockType SignalGenerator Name "Signal\nGenerator" Position [145, 48, 190, 82] DropShadow on FontName "Arial" FontSize 14 WaveForm "square" Amplitude "0.500000" Frequency "0.100000" Units "rad/sec" } Block { BlockType Sum Name "Sum1" Ports [2, 1, 0, 0, 0] Position [255, 110, 275, 150] DropShadow on ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "++" SaturateOnIntegerOverflow on } Block { BlockType TransferFcn Name "Transfer Fcn" Position [310, 101, 480, 159] DropShadow on ShowName off FontName "Arial" FontSize 14 Numerator "[.001]" Denominator "[1 .3 .03 .001]" } Block { BlockType Outport Name "out_1" Position [530, 120, 550, 140] DropShadow on FontName "Arial" FontSize 14 Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Transfer Fcn" DstPort 1 } Line { SrcBlock "Signal\nGenerator" SrcPort 1 Points [41, 0; 0, 55] DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Transfer Fcn" SrcPort 1 DstBlock "out_1" DstPort 1 } } } Block { BlockType Scope Name "Scope" Ports [1, 0, 0, 0, 0] Position [685, 41, 730, 99] BackgroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 Floating off Location [248, 168, 625, 482] Open off NumInputPorts "1" TickLabels "on" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "200.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 [265, 133, 285, 162] ForegroundColor "red" DropShadow on ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "+-" SaturateOnIntegerOverflow on } Block { BlockType ToWorkspace Name "plant output" Position [610, 136, 655, 164] BackgroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 VariableName "y" Buffer "6000" Decimation "1" SampleTime "0" SaveFormat "Matrix" } Block { BlockType ToWorkspace Name "plant output1" Position [545, 216, 590, 244] BackgroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 VariableName "u" Buffer "6000" Decimation "1" SampleTime "0" SaveFormat "Matrix" } Block { BlockType ToWorkspace Name "plant output2" Position [250, 76, 295, 104] BackgroundColor "green" DropShadow on ShowName off FontName "Arial" FontSize 14 VariableName "r" Buffer "6000" Decimation "1" SampleTime "0" SaveFormat "Matrix" } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Scope" DstPort 1 } Line { SrcBlock "MODEL" SrcPort 1 Points [-49, 0; 0, -105] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Reference " SrcPort 1 Points [26, 0] Branch { Points [0, -85] DstBlock "Mux" DstPort 1 } Branch { Points [30, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [0, -50] DstBlock "plant output2" DstPort 1 } } } Line { SrcBlock "Integrator" SrcPort 1 Points [35, 0; 0, 0] Branch { Points [0, 110] DstBlock "MODEL" DstPort 1 } Branch { Points [30, 0] Branch { DstBlock "PLANT" DstPort 1 } Branch { Points [0, 80] DstBlock "plant output1" DstPort 1 } } } Line { SrcBlock "PLANT" SrcPort 1 Points [20, 0] Branch { DstBlock "plant output" DstPort 1 } Branch { Points [0, -70] DstBlock "Mux" DstPort 2 } } Annotation { Position [352, 324] VerticalAlignment "top" ForegroundColor "blue" Text "EXAMPLE TO ILLUSTRATE THE USE OF HIGH GAIN FEED" "BACK TO GENERATE INVERSES\n(check the initial conditions in the integrators)" DropShadow on FontName "Arial" FontSize 14 } Annotation { Position [101, 193] Text "Double click on the reference\n block to change" " the \nreference and to change its filtering" FontSize 11 } } }