Model { Name "c5mlimcy" Version 5.1 SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off 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 "Sun Jun 22 11:45:42 2003" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "D Xue" ModifiedDateFormat "%" LastModifiedDate "Tue Sep 20 13:08:45 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 "ode45" SolverMode "Auto" StartTime "0.0" StopTime "40.0" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" RelTol "1e-8" 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 Lookup InputValues "[-4:5]" OutputValues " rand(1,10)-0.5" ShowAdditionalParam off LookUpMeth "Interpolation-Extrapolation" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Memory X0 "0" InheritSampleTime off LinearizeMemory off RTWStateStorageClass "Auto" } Block { BlockType Outport Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType RelationalOperator Operator ">=" ShowAdditionalParam off InputSameDT on LogicOutDataTypeMode "Logical (see Advanced Sim. Parameters)" LogicDataType "uint(8)" ZeroCross 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 TransferFcn Numerator "[1]" Denominator "[1 2 1]" AbsoluteTolerance "auto" Realization "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 "c5mlimcy" Location [302, 204, 1003, 497] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "portrait" PaperPositionMode "auto" PaperType "a4letter" PaperUnits "centimeters" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Gain Name "Gain" Position [255, 185, 285, 215] Orientation "left" ShowName off FontName "Times New Roman" FontSize 14 Gain "-1" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [360, 125, 390, 155] FontName "Times New Roman" FontSize 14 InitialCondition "1" } Block { BlockType Memory Name "Memory" Position [85, 150, 115, 180] FontName "Times New Roman" FontSize 14 } Block { BlockType RelationalOperator Name "Relational\nOperator" Position [150, 122, 180, 153] FontName "Times New Roman" FontSize 14 } Block { BlockType Switch Name "Switch" Position [310, 125, 340, 155] FontName "Times New Roman" FontSize 14 Threshold "0.5" } Block { BlockType TransferFcn Name "Transfer Fcn" Position [420, 122, 480, 158] FontName "Times New Roman" FontSize 14 Numerator "10" Denominator "[1 1]" } Block { BlockType Lookup Name "u decreasing" Position [185, 68, 255, 112] FontName "Times New Roman" FontSize 14 InputValues "[-3,-2 -2+eps,1,1+eps,3]" OutputValues "[-1,-1,0,0,1,1]" } Block { BlockType Lookup Name "u increasing" Position [105, 23, 175, 67] FontName "Times New Roman" FontSize 14 InputValues "[-3,-1 -1+eps,2 2+eps,3]" OutputValues "[-1,-1,0,0,1,1]" } Block { BlockType Outport Name "Out1" Position [530, 133, 560, 147] FontName "Times New Roman" FontSize 14 } Block { BlockType Outport Name "Out2" Position [530, 88, 560, 102] FontName "Times New Roman" FontSize 14 Port "2" } Line { SrcBlock "Memory" SrcPort 1 Points [5, 0; 0, -20] DstBlock "Relational\nOperator" DstPort 2 } Line { SrcBlock "u decreasing" SrcPort 1 Points [10, 0; 0, 60] DstBlock "Switch" DstPort 3 } Line { SrcBlock "u increasing" SrcPort 1 Points [105, 0; 0, 85] DstBlock "Switch" DstPort 1 } Line { SrcBlock "Relational\nOperator" SrcPort 1 DstBlock "Switch" DstPort 2 } Line { SrcBlock "Switch" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Transfer Fcn" SrcPort 1 Points [0, 0; 10, 0] Branch { DstBlock "Out1" DstPort 1 } Branch { Points [0, 60] DstBlock "Gain" DstPort 1 } } Line { SrcBlock "Integrator" SrcPort 1 Points [0, 0; 5, 0] Branch { DstBlock "Transfer Fcn" DstPort 1 } Branch { Points [0, -45] DstBlock "Out2" DstPort 1 } } Line { SrcBlock "Gain" SrcPort 1 Points [-230, 0; 0, -70; 30, 0] Branch { Points [10, 0] Branch { Points [0, -85] DstBlock "u increasing" DstPort 1 } Branch { Points [15, 0] Branch { Points [0, -40] DstBlock "u decreasing" DstPort 1 } Branch { DstBlock "Relational\nOperator" DstPort 1 } } } Branch { Points [0, 35] DstBlock "Memory" DstPort 1 } } } }