Model { Name "DT_PID" Version 5.1 SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines on ShowLineDimensions on ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off SortedOrder 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 "Thu Feb 10 13:34:53 2005" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "throne" ModifiedDateFormat "%" LastModifiedDate "Thu Oct 11 10:09:05 2007" 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 "FixedStepDiscrete" SolverMode "Auto" StartTime "0.0" StopTime "Tf" MaxOrder 5 MaxStep "1e-5" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "Ts" RelTol "1e-4" 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 DigitalClock } Block { BlockType DiscreteFilter Numerator "[1]" Denominator "[1 2]" Realization "auto" RTWStateStorageClass "Auto" } 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 Saturate UpperLimit "0.5" LowerLimit "-0.5" LinearizeAsGain on ZeroCross on } Block { BlockType Step Time "1" Before "0" After "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" } Block { BlockType UnitDelay X0 "0" RTWStateStorageClass "Auto" } } 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 "DT_PID" Location [-19, 152, 929, 570] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Gain Name "C" Position [775, 130, 805, 160] Gain "C" Multiplication "Matrix(K*u)" } Block { BlockType DigitalClock Name "Digital Clock" Position [40, 23, 105, 47] SampleTime "Ts" } Block { BlockType DiscreteFilter Name "Discrete Filter" Position [260, 127, 320, 163] Numerator "[Ki]" Denominator "[1 -1]" SampleTime "Ts" } Block { BlockType DiscreteFilter Name "Discrete Filter1" Position [260, 192, 320, 228] Numerator "[Kd -Kd]" Denominator "[1]" SampleTime "Ts" } Block { BlockType Gain Name "G" Position [670, 200, 700, 230] Orientation "left" ForegroundColor "blue" BackgroundColor "[1.000000, 1.000000, 0.000000]" Gain "G" Multiplication "Matrix(K*u)" } Block { BlockType Gain Name "Gpf" Position [105, 130, 135, 160] Gain "Gpf" Multiplication "Matrix(K*u)" } Block { BlockType Gain Name "H" Position [560, 130, 590, 160] ForegroundColor "blue" BackgroundColor "[1.000000, 1.000000, 0.000000]" Gain "H" Multiplication "Matrix(K*u)" } Block { BlockType Step Name "Input" Position [30, 130, 60, 160] Time "0" After "Amp" SampleTime "Ts" } Block { BlockType Gain Name "Kp" Position [275, 70, 305, 100] Gain "Kp" Multiplication "Matrix(K*u)" } Block { BlockType Saturate Name "Saturation" Position [470, 130, 500, 160] ForegroundColor "blue" BackgroundColor "[1.000000, 1.000000, 0.000000]" UpperLimit "saturation_level" LowerLimit "-saturation_level" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [610, 135, 630, 155] ForegroundColor "blue" BackgroundColor "[1.000000, 1.000000, 0.000000]" ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum2" Ports [3, 1] Position [405, 130, 425, 160] ShowName off Inputs "|+|+|+|" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [160, 135, 180, 155] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType ToWorkspace Name "To Workspace1" Position [620, 70, 680, 100] VariableName "m_u" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace2" Position [135, 20, 195, 50] VariableName "m_time" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace3" Position [855, 130, 915, 160] VariableName "m_y" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType UnitDelay Name "Unit Delay" Position [660, 125, 695, 165] ForegroundColor "blue" BackgroundColor "[1.000000, 1.000000, 0.000000]" X0 "[0;0;0]" SampleTime "Ts" } Line { SrcBlock "Saturation" SrcPort 1 Points [0, 0; 20, 0] Branch { DstBlock "H" DstPort 1 } Branch { Points [0, -60] DstBlock "To Workspace1" DstPort 1 } } Line { SrcBlock "Digital Clock" SrcPort 1 DstBlock "To Workspace2" DstPort 1 } Line { SrcBlock "Input" SrcPort 1 DstBlock "Gpf" DstPort 1 } Line { SrcBlock "H" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Unit Delay" DstPort 1 } Line { SrcBlock "G" SrcPort 1 Points [-45, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Gpf" SrcPort 1 DstBlock "Sum3" DstPort 1 } Line { SrcBlock "Unit Delay" SrcPort 1 Points [0, 0; 30, 0] Branch { DstBlock "C" DstPort 1 } Branch { Points [0, 70] DstBlock "G" DstPort 1 } } Line { SrcBlock "C" SrcPort 1 Points [0, 0; 15, 0] Branch { DstBlock "To Workspace3" DstPort 1 } Branch { Points [0, 145; -655, 0] DstBlock "Sum3" DstPort 2 } } Line { SrcBlock "Discrete Filter" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Discrete Filter1" SrcPort 1 Points [30, 0; 0, -55] DstBlock "Sum2" DstPort 3 } Line { SrcBlock "Kp" SrcPort 1 Points [40, 0; 0, 50] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Sum3" SrcPort 1 Points [0, 0; 30, 0] Branch { DstBlock "Discrete Filter" DstPort 1 } Branch { Points [0, -60] DstBlock "Kp" DstPort 1 } Branch { Points [0, 65] DstBlock "Discrete Filter1" DstPort 1 } } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Saturation" DstPort 1 } } }