Model { Name "piddiskrit" 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 on BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Wed Jun 29 13:52:57 2005" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "WinXp" ModifiedDateFormat "%" LastModifiedDate "Thu Jul 21 16:34:30 2005" 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 on BufferReuse on RTWExpressionDepthLimit 5 SimulationMode "normal" Solver "ode23t" SolverMode "Auto" StartTime "0.0" StopTime "10.0" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" RelTol "1e-2" 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 Gain Gain "1" Multiplication "Element-wise(K.*u)" ShowAdditionalParam off ParameterDataTypeMode "Same as input" ParameterDataType "sfix(16)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "2^0" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" ZeroCross 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 Step Time "1" Before "0" After "1" SampleTime "-1" VectorParams1D on ZeroCross on } 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 ToWorkspace VariableName "simulink_output" MaxDataPoints "1000" Decimation "1" SampleTime "0" } Block { BlockType UnitDelay X0 "0" SampleTime "1" RTWStateStorageClass "Auto" } Block { BlockType ZeroOrderHold SampleTime "1" } } 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 "piddiskrit" Location [2, 84, 1014, 717] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "113" ReportName "simulink-default.rpt" Block { BlockType Gain Name "Gain" Position [435, 99, 480, 131] Gain "4.37" } Block { BlockType Gain Name "Gain1" Position [475, 164, 520, 196] Gain "195" } Block { BlockType Gain Name "Gain2" Position [425, 238, 475, 282] Gain "0.0001" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [735, 185, 765, 215] } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [795, 185, 825, 215] } Block { BlockType Scope Name "Scope" Ports [1] Position [215, 99, 245, 131] Location [180, 147, 504, 386] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } DataFormat "StructureWithTime" } Block { BlockType Scope Name "Scope1" Ports [1] Position [290, 54, 320, 86] Location [183, 204, 507, 443] Open off NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } SaveName "ScopeData1" DataFormat "StructureWithTime" } Block { BlockType Scope Name "Scope2" Ports [1] Position [670, 109, 700, 141] Location [186, 474, 510, 713] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } SaveToWorkspace on SaveName "uk1" DataFormat "Array" } Block { BlockType Scope Name "Scope3" Ports [1] Position [860, 94, 890, 126] Location [532, 296, 856, 535] Open off NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } SaveName "ScopeData3" DataFormat "StructureWithTime" } Block { BlockType Step Name "Step" Position [70, 100, 100, 130] SampleTime "0" } Block { BlockType Step Name "Step1" Position [70, 150, 100, 180] Time "2" After "-1.5" SampleTime "0" } Block { BlockType Step Name "Step2" Position [70, 205, 100, 235] Time "3" Before "-0.5" After "0.5" SampleTime "0" } Block { BlockType Step Name "Step3" Position [70, 260, 100, 290] Time "4" Before "0.5" After "0" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [4, 1] Position [155, 180, 185, 210] ShowName off IconShape "round" Inputs "|++++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [615, 190, 635, 210] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [560, 125, 580, 145] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [395, 145, 415, 165] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum4" Ports [2, 1] Position [225, 185, 245, 205] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum5" Ports [2, 1] Position [310, 250, 330, 270] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType ToWorkspace Name "To Workspace" Position [270, 335, 330, 365] VariableName "ek" MaxDataPoints "inf" SampleTime "0.01" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace1" Position [675, 285, 735, 315] VariableName "uk" MaxDataPoints "inf" SampleTime "0.01" SaveFormat "Array" } Block { BlockType UnitDelay Name "Unit Delay" Position [325, 175, 360, 215] SampleTime "0.01" } Block { BlockType UnitDelay Name "Unit Delay1" Position [350, 295, 385, 335] Orientation "left" SampleTime "0.01" } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold" Position [670, 181, 705, 219] SampleTime "0.01" } Line { SrcBlock "Zero-Order\nHold" SrcPort 1 Points [175, 0; 0, -195] } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Step" SrcPort 1 Points [44, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Step2" SrcPort 1 Points [45, 0; 0, -4] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Step3" SrcPort 1 Points [65, 0] DstBlock "Sum" DstPort 4 } Line { SrcBlock "Sum" SrcPort 1 Points [5, 0] Branch { DstBlock "Sum4" DstPort 1 } Branch { Points [0, -80] DstBlock "Scope" DstPort 1 } } Line { SrcBlock "Sum4" SrcPort 1 Points [5, 0] Branch { Points [15, 0] Branch { Points [15, 0] Branch { DstBlock "Unit Delay" DstPort 1 } Branch { Points [0, -80; 85, 0] Branch { DstBlock "Gain" DstPort 1 } Branch { Points [0, 40] DstBlock "Sum3" DstPort 1 } } Branch { Points [0, 65] DstBlock "Sum5" DstPort 1 } } Branch { Points [0, -125] DstBlock "Scope1" DstPort 1 } } Branch { DstBlock "To Workspace" DstPort 1 } } Line { SrcBlock "Unit Delay" SrcPort 1 Points [40, 0] DstBlock "Sum3" DstPort 2 } Line { SrcBlock "Sum3" SrcPort 1 Points [0, 25] DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [20, 0; 0, 20] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 Points [45, 0] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 Points [5, 0] Branch { Points [0, 100] DstBlock "To Workspace1" DstPort 1 } Branch { Points [5, 0] Branch { DstBlock "Zero-Order\nHold" DstPort 1 } Branch { Points [0, -75] DstBlock "Scope2" DstPort 1 } } } Line { SrcBlock "Sum2" SrcPort 1 Points [5, 0; 0, 65] DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Unit Delay1" SrcPort 1 Points [-25, 0] DstBlock "Sum5" DstPort 2 } Line { SrcBlock "Sum5" SrcPort 1 Points [70, 0] Branch { DstBlock "Gain2" DstPort 1 } Branch { Points [0, 55] DstBlock "Unit Delay1" DstPort 1 } } Line { SrcBlock "Gain2" SrcPort 1 Points [145, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Integrator1" SrcPort 1 Points [20, 0] Branch { Points [15, 0; 0, 215; -630, 0] DstBlock "Sum4" DstPort 2 } Branch { Points [-5, 0] DstBlock "Scope3" DstPort 1 } } Line { SrcBlock "Step1" SrcPort 1 Points [15, 0; 0, 30] DstBlock "Sum" DstPort 2 } } }