Model { Name "g_z_cl" Version 5.0 SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ExecutionOrder off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Wed Aug 10 21:36:46 2005" Creator "kannan" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "kannan" ModifiedDateFormat "%" LastModifiedDate "Mon Feb 6 08:29:08 2006" ModelVersionFormat "1.%" ConfigurationManager "None" SimParamPage "Solver" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "normal" 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 on ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock off BufferReuse on RTWExpressionDepthLimit 5 SimulationMode "normal" Solver "ode45" SolverMode "Auto" StartTime "t_init" StopTime "t_final" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" RelTol "1e-3" AbsTol "auto" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" LoadExternalInput off ExternalInput "[t, u]" LoadInitialState off InitialState "xInitial" SaveTime on TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on OutputSaveName "yout" SaveFinalState off FinalStateName "xFinal" SaveFormat "Array" Decimation "1" LimitDataPoints on MaxDataPoints "1000" SignalLoggingName "sigsOut" ConsistencyChecking "none" ArrayBoundsChecking "none" AlgebraicLoopMsg "warning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" CheckForMatrixSingularity "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterPrecisionLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SfunCompatibilityCheckMsg "none" RTWInlineParameters off BlockReductionOpt on BooleanDataType on ConditionallyExecuteInputs on ParameterPooling on OptimizeBlockIOStorage on ZeroCross on AssertionControl "UseLocalSettings" ProdHWDeviceType "Microprocessor" ProdHWWordLengths "8,16,32,32" RTWSystemTargetFile "grt.tlc" RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off RTWRetainRTWFile off TLCProfiler off TLCDebug off TLCCoverage off TLCAssertion off BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Clock DisplayTime off } Block { BlockType Constant Value "1" VectorParams1D on ShowAdditionalParam off OutDataTypeMode "Inherit from 'Constant value'" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" } Block { BlockType DiscreteFilter Numerator "[1]" Denominator "[1 2]" SampleTime "1" Realization "auto" RTWStateStorageClass "Auto" } Block { BlockType Inport Port "1" PortDimensions "-1" SampleTime "-1" ShowAdditionalParam off LatchInput off DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" Interpolate on } Block { BlockType Outport Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType RandomNumber Mean "0" Variance "1" Seed "0" SampleTime "-1" VectorParams1D on } Block { BlockType Scope Floating off ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType "S-Function" FunctionName "system" PortCounts "[]" SFunctionModules "''" } Block { BlockType Step Time "1" Before "0" After "1" SampleTime "-1" VectorParams1D on ZeroCross on } Block { BlockType SubSystem ShowPortLabels on Permissions "ReadWrite" RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Switch Criteria "u2 >= Threshold" Threshold "0" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow on ZeroCross on } Block { BlockType ToWorkspace VariableName "simulink_output" MaxDataPoints "1000" Decimation "1" SampleTime "0" } } 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 "g_z_cl" Location [643, 605, 1248, 896] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "portrait" PaperPositionMode "auto" PaperType "A4" PaperUnits "inches" ZoomFactor "103" ReportName "simulink-default.rpt" Block { BlockType DiscreteFilter Name " Filter 2" Position [275, 86, 315, 124] Numerator "N1" Denominator "D1" SampleTime "Ts" } Block { BlockType Clock Name "Clock" Position [125, 170, 145, 190] Decimation "10" } Block { BlockType DiscreteFilter Name "Discrete Filter5" Position [415, 86, 445, 124] ShowName off Numerator "zk" Denominator "1" SampleTime "Ts" } Block { BlockType DiscreteFilter Name "Feedback \nFilter" Position [340, 147, 400, 183] Orientation "left" Numerator "S" Denominator "R" SampleTime "Ts" } Block { BlockType DiscreteFilter Name "Feedforward\nFilter" Position [130, 87, 190, 123] Numerator "gamma*T" Denominator "R" SampleTime "Ts" } Block { BlockType DiscreteFilter Name "Filter 1" Position [415, 16, 455, 54] Numerator "C" Denominator "D" SampleTime "Ts" } Block { BlockType Reference Name "Manual\nSwitch" Ports [2, 1] Position [75, 87, 105, 123] SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "0" action "0" } Block { BlockType DiscreteFilter Name "Plant" Position [350, 86, 385, 124] Numerator "B" Denominator "A" SampleTime "Ts" } Block { BlockType Reference Name "Ramp" Ports [0, 1] Position [15, 50, 45, 80] SourceBlock "simulink/Sources/Ramp" SourceType "Ramp" slope "1" start "0" X0 "0" VectorParams1D on } Block { BlockType RandomNumber Name "Random\nNumber" Position [355, 20, 385, 50] Variance "N_var" SampleTime "Ts" } Block { BlockType Step Name "Step" Position [15, 130, 45, 160] Time "0" After "st" SampleTime "Ts" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [230, 95, 250, 115] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [475, 95, 495, 115] ShowName off IconShape "round" Inputs "++|" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType ToWorkspace Name "e" Position [220, 52, 240, 68] Orientation "left" VariableName "e" MaxDataPoints "inf" SampleTime "Ts" SaveFormat "Array" } Block { BlockType Scope Name "e1" Ports [1] Position [210, 27, 240, 43] Orientation "left" NamePlacement "alternate" Location [58, 247, 382, 838] Open off NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } YMin "-6e+164" YMax "1.02293e+149" SaveName "ScopeData2" DataFormat "StructureWithTime" } Block { BlockType ToWorkspace Name "time" Position [165, 165, 200, 195] VariableName "t" MaxDataPoints "inf" SampleTime "Ts" SaveFormat "Array" } Block { BlockType ToWorkspace Name "u" Position [285, 52, 305, 68] Orientation "left" VariableName "u" MaxDataPoints "inf" SampleTime "Ts" SaveFormat "Array" } Block { BlockType Scope Name "u1" Ports [1] Position [275, 27, 305, 43] Orientation "left" NamePlacement "alternate" Location [111, 147, 435, 870] Open on NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } YMin "-6e+164" YMax "1.02293e+149" SaveName "ScopeData1" DataFormat "StructureWithTime" } Block { BlockType ToWorkspace Name "y" Position [550, 122, 570, 138] VariableName "y" MaxDataPoints "inf" SampleTime "Ts" SaveFormat "Array" } Block { BlockType Scope Name "y1" Ports [1] Position [550, 97, 580, 113] NamePlacement "alternate" Location [655, 191, 979, 870] Open on NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } YMin "-6e+164" YMax "1.02293e+149" DataFormat "StructureWithTime" } Line { SrcBlock "Feedforward\nFilter" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Feedback \nFilter" SrcPort 1 Points [-95, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Clock" SrcPort 1 DstBlock "time" DstPort 1 } Line { SrcBlock "Plant" SrcPort 1 DstBlock "Discrete Filter5" DstPort 1 } Line { SrcBlock "Discrete Filter5" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Filter 1" SrcPort 1 Points [25, 0] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Random\nNumber" SrcPort 1 DstBlock "Filter 1" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 Points [0, 0; 20, 0] Branch { DstBlock "y1" DstPort 1 } Branch { Points [0, 45] Branch { Points [0, 15] DstBlock "Feedback \nFilter" DstPort 1 } Branch { Points [0, -20] DstBlock "y" DstPort 1 } } } Line { SrcBlock "Sum" SrcPort 1 Points [0, 0; 5, 0] Branch { DstBlock " Filter 2" DstPort 1 } Branch { Points [0, -45] Branch { DstBlock "e" DstPort 1 } Branch { Points [0, -25] DstBlock "e1" DstPort 1 } } } Line { SrcBlock " Filter 2" SrcPort 1 Points [0, 0; 10, 0] Branch { DstBlock "Plant" DstPort 1 } Branch { Points [0, -45] Branch { Points [0, -25] DstBlock "u1" DstPort 1 } Branch { DstBlock "u" DstPort 1 } } } Line { SrcBlock "Ramp" SrcPort 1 Points [5, 0; 0, 30] DstBlock "Manual\nSwitch" DstPort 1 } Line { SrcBlock "Step" SrcPort 1 Points [5, 0; 0, -30] DstBlock "Manual\nSwitch" DstPort 2 } Line { SrcBlock "Manual\nSwitch" SrcPort 1 DstBlock "Feedforward\nFilter" DstPort 1 } Annotation { Name " Delay" Position [428, 129] } } }