Model { Name "pake_flc2" 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 "Mon Sep 20 14:06:07 2004" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "WinXp" ModifiedDateFormat "%" LastModifiedDate "Mon Nov 08 11:46:07 2004" 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 "1000" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" RelTol "1e-6" 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 off MaxDataPoints "1000" SignalLoggingName "sigsOut" ConsistencyChecking "none" ArrayBoundsChecking "none" AlgebraicLoopMsg "none" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" InheritedTsInSrcMsg "none" 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 "none" UnconnectedOutputMsg "none" UnconnectedLineMsg "none" SfunCompatibilityCheckMsg "none" RTWInlineParameters off BlockReductionOpt on BooleanDataType off 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 RTWOptions "-aEnforceIntegerDowncast=1 -aExtMode=0 -aFoldNonRol" "ledExpr=1 -aForceParamTrailComments=0 -aGenerateComments=1 -aIgnoreCustomStor" "ageClasses=1 -aIncHierarchyInIds=0 -aInlineInvariantSignals=0 -aLocalBlockOut" "puts=1 -aLogVarNameModifier=\"rt_\" -aRTWVerbose=1 -aRollThreshold=5 -aShowEl" "iminatedStatements=1" BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType ActionPort InitializeStates "held" ActionType "unset" } 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 Demux Outputs "4" DisplayOption "none" BusSelectionMode off } 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 If NumInputs "1" IfExpression "u1 > 0" ShowElse on ZeroCross on } 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 Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" ZeroCross on } Block { BlockType Merge Inputs "2" InitialOutput "[]" AllowUnequalInputPortWidths off InputPortOffsets "[]" } Block { BlockType MinMax Function "min" Inputs "1" ZeroCross on } Block { BlockType Mux Inputs "4" DisplayOption "none" } 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 RelationalOperator Operator ">=" ShowAdditionalParam off InputSameDT on LogicOutDataTypeMode "Logical (see Advanced Sim. Parameters)" LogicDataType "uint(8)" 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 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 UnitDelay X0 "0" SampleTime "1" 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 "pake_flc2" Location [6, 84, 1018, 715] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType SubSystem Name "Fuzzy Logic \nController" Ports [1, 1] Position [280, 130, 330, 170] AncestorBlock "fuzblock/Fuzzy Logic \nController" FontName "Arial" TreatAsAtomicUnit off MaskType "FIS" MaskDescription "FIS" MaskHelp "web(['file:///' docroot '/toolbox/fuzzy/fuzzylo" "giccontroller.html']);" MaskPromptString "FIS File or Structure:" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskVarAliasString "MaskParam1" MaskVariables "fis=@1;" MaskInitialization "fis = fuzblockmask(gcb,fis);" MaskDisplay "plot(0, -0.3, 6, -0.3, 0, 1.2, 6, 1.2, [0 6], [" "0 0], [1 2 3],[0 1 0],[2 3 4],[0 1 0],[3 4 5],[0 1 0])" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "fiskeretasug2" System { Name "Fuzzy Logic \nController" Location [251, 557, 620, 673] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [25, 43, 55, 57] } Block { BlockType Reference Name "FIS Wizard" Ports [1, 1] Position [135, 24, 205, 76] FontName "Arial" SourceBlock "fuzwiz/FIS Wizard" SourceType "FIS Wizard" fis "fis" } Block { BlockType Outport Name "Out1" Position [305, 43, 335, 57] } Line { SrcBlock "In1" SrcPort 1 DstBlock "FIS Wizard" DstPort 1 } Line { SrcBlock "FIS Wizard" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Gain Name "Gain" Position [585, 240, 630, 270] Gain "1000" } Block { BlockType Gain Name "Gain1" Position [665, 239, 715, 271] Orientation "left" NamePlacement "alternate" Gain "500" } Block { BlockType Gain Name "Gain2" Position [365, 135, 430, 165] Gain "0.0001" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [480, 135, 510, 165] } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [640, 135, 670, 165] } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [245, 131, 250, 169] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [310, 481, 315, 519] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Scope Name "Scope" Ports [1] Position [800, 134, 830, 166] Location [383, 384, 698, 582] Open off NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } TimeRange "10000" YMin "0" YMax "30" DataFormat "StructureWithTime" MaxDataPoints "50000" SampleInput on } Block { BlockType Scope Name "Scope1" Ports [1] Position [285, 49, 315, 81] Location [5, 58, 1029, 770] Open on NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } TimeRange "100" DataFormat "StructureWithTime" LimitDataPoints off SampleInput on } Block { BlockType Scope Name "Scope2" Ports [1] Position [395, 49, 425, 81] Location [5, 58, 1029, 770] Open on NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } TimeRange "1000" YMin "-0.226989" YMax "-0.223869" DataFormat "StructureWithTime" LimitDataPoints off SampleInput on } Block { BlockType Scope Name "Scope3" Ports [1] Position [505, 44, 535, 76] Location [5, 58, 1029, 770] Open off NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } TimeRange "100" SaveName "ScopeData1" DataFormat "StructureWithTime" LimitDataPoints off SampleInput on } Block { BlockType Scope Name "Scope4" Ports [1] Position [375, 489, 405, 521] Location [5, 53, 1029, 765] Open off NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } TimeRange "100" SaveName "ScopeData2" DataFormat "StructureWithTime" LimitDataPoints off SampleInput on } Block { BlockType Step Name "Step" Position [30, 145, 60, 175] After "100" SampleTime "1" } Block { BlockType Step Name "Step1" Position [175, 425, 205, 455] After "10" SampleTime "1" } Block { BlockType Step Name "Step2" Position [165, 495, 195, 525] Before "5" After "20" SampleTime "1" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [110, 150, 130, 170] ShowName off IconShape "round" Inputs "|+-" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [625, 270, 645, 290] Orientation "down" NamePlacement "alternate" ShowName off IconShape "round" Inputs "|++" } Block { BlockType UnitDelay Name "Unit Delay" Position [170, 45, 205, 85] } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 Points [45, 0] Branch { Points [0, 105] DstBlock "Gain" DstPort 1 } Branch { DstBlock "Integrator1" DstPort 1 } } Line { SrcBlock "Mux" SrcPort 1 Points [5, 0] Branch { DstBlock "Fuzzy Logic \nController" DstPort 1 } Branch { Points [0, -85] DstBlock "Scope1" DstPort 1 } } Line { SrcBlock "Fuzzy Logic \nController" SrcPort 1 Points [5, 0] Branch { DstBlock "Gain2" DstPort 1 } Branch { Points [0, -85] DstBlock "Scope2" DstPort 1 } } Line { SrcBlock "Gain2" SrcPort 1 Points [20, 0] Branch { DstBlock "Integrator" DstPort 1 } Branch { Points [0, -90] DstBlock "Scope3" DstPort 1 } } Line { SrcBlock "Integrator1" SrcPort 1 Points [60, 0] Branch { Points [0, 105] DstBlock "Gain1" DstPort 1 } Branch { DstBlock "Scope" DstPort 1 } } Line { SrcBlock "Unit Delay" SrcPort 1 Points [20, 0] DstBlock "Mux" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [15, 0] Branch { DstBlock "Mux" DstPort 2 } Branch { Points [0, -95] DstBlock "Unit Delay" DstPort 1 } } Line { SrcBlock "Sum1" SrcPort 1 Points [0, 10; -515, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Step" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Mux1" SrcPort 1 Points [20, 0; 0, 5] DstBlock "Scope4" DstPort 1 } Line { SrcBlock "Step1" SrcPort 1 Points [85, 0] DstBlock "Mux1" DstPort 1 } Line { SrcBlock "Step2" SrcPort 1 DstBlock "Mux1" DstPort 2 } } }