⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shower.mdl

📁 模糊控制工具箱,很好用的,有相应的说明文件,希望对大家有用!
💻 MDL
📖 第 1 页 / 共 4 页
字号:
      UpperSaturationLimit    "inf"
      LowerSaturationLimit    "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      AbsoluteTolerance	      "auto"
      IgnoreLimit	      off
      ZeroCross		      on
    }
    Block {
      BlockType		      Logic
      Operator		      "AND"
      Inputs		      "2"
      AllPortsSameDT	      on
      OutDataTypeMode	      "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Merge
      Inputs		      "2"
      InitialOutput	      "[]"
      AllowUnequalInputPortWidths off
      InputPortOffsets	      "[]"
    }
    Block {
      BlockType		      MinMax
      Function		      "min"
      Inputs		      "1"
      InputSameDT	      on
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Mux
      Inputs		      "4"
      DisplayOption	      "none"
      UseBusObject	      off
      BusObject		      "BusObject"
      NonVirtualBus	      off
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Product
      Inputs		      "2"
      Multiplication	      "Element-wise(.*)"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      RelationalOperator
      Operator		      ">="
      InputSameDT	      on
      LogicOutDataTypeMode    "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Saturate
      UpperLimit	      "0.5"
      LowerLimit	      "-0.5"
      LinearizeAsGain	      on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Scope
      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	      "-1"
    }
    Block {
      BlockType		      SignalGenerator
      WaveForm		      "sine"
      TimeSource	      "Use simulation time"
      Amplitude		      "1"
      Frequency		      "1"
      Units		      "Hertz"
      VectorParams1D	      on
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Switch
      Criteria		      "u2 >= Threshold"
      Threshold		      "0"
      InputSameDT	      on
      OutDataTypeMode	      "Inherit via internal rule"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      ToWorkspace
      VariableName	      "simulink_output"
      MaxDataPoints	      "1000"
      Decimation	      "1"
      SampleTime	      "0"
      FixptAsFi		      off
    }
  }
  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		    "shower"
    Location		    [113, 74, 639, 491]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Demux
      Name		      "Demux"
      Ports		      [1, 2]
      Position		      [75, 266, 115, 299]
      Orientation	      "left"
      Outputs		      "2"
    }
    Block {
      BlockType		      Reference
      Name		      "Fuzzy Logic\nController"
      Ports		      [1, 1]
      Position		      [155, 260, 215, 310]
      Orientation	      "left"
      FontName		      "Arial"
      SourceBlock	      "fuzblock/Fuzzy Logic \nController"
      SourceType	      "FIS"
      ShowPortLabels	      on
      fis		      "fisMatrix"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux2"
      Ports		      [4, 1]
      Position		      [140, 133, 170, 167]
    }
    Block {
      BlockType		      Mux
      Name		      "Mux3"
      Ports		      [2, 1]
      Position		      [255, 265, 285, 300]
      Orientation	      "left"
      Inputs		      "2"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux4"
      Ports		      [2, 1]
      Position		      [310, 200, 340, 235]
      Orientation	      "left"
      Inputs		      "2"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux5"
      Ports		      [2, 1]
      Position		      [325, 55, 355, 90]
      Orientation	      "left"
      Inputs		      "2"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [255, 322, 295, 348]
      VariableName	      "in"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace1"
      Position		      [75, 322, 115, 348]
      Orientation	      "left"
      VariableName	      "out"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      SubSystem
      Name		      "cold water\nvalve"
      Ports		      [1, 2]
      Position		      [60, 169, 105, 216]
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      System {
	Name			"cold water\nvalve"
	Location		[53, 437, 460, 713]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "in_1"
	  Position		  [30, 25, 50, 45]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	  HoldInput		  off
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [2, 1]
	  Position		  [220, 26, 250, 59]
	  Inputs		  "2"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "flow rate\n(cold)"
	  Position		  [280, 35, 320, 55]
	  Expr			  "k*u(1)*((k*u(1))<=u(2)) + u(2)*((k*u(1))>u("
"2))"
	}
	Block {
	  BlockType		  Sum
	  Name			  "max\nflow"
	  Ports			  [2, 1]
	  Position		  [150, 105, 170, 125]
	}
	Block {
	  BlockType		  Constant
	  Name			  "max flow\nconstant"
	  Position		  [50, 155, 70, 175]
	}
	Block {
	  BlockType		  SignalGenerator
	  Name			  "max flow\nvariation"
	  Ports			  [0, 1]
	  Position		  [35, 93, 80, 127]
	  Amplitude		  "0.000000"
	  Frequency		  "0.101325"
	  Units			  "rad/sec"
	}
	Block {
	  BlockType		  Constant
	  Name			  "temp (cold)"
	  Position		  [45, 208, 80, 242]
	  Value			  "10"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "valve\nsetting\n(cold)"
	  Ports			  [1, 1]
	  Position		  [75, 20, 115, 50]
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskHideContents	  off
	  MaskType		  "Limited Integrator."
	  MaskDescription	  "Limited Integrator"
	  MaskHelp		  "Implements a limited integrator with \\nan "
"expression of the form:\\n\\nif(x<=lb and u<0) or (x>=ub and u>0)\\n   xdot=0"
"\\nelse\\n   xdot=u"
	  MaskPromptString	  "Lower bound:|Upper bound:|Initial condition"
":"
	  MaskStyleString	  "edit,edit,edit"
	  MaskTunableValueString  "on,on,on"
	  MaskCallbackString	  "||"
	  MaskEnableString	  "on,on,on"
	  MaskVisibilityString	  "on,on,on"
	  MaskToolTipString	  "on,on,on"
	  MaskVarAliasString	  ",,"
	  MaskInitialization	  "lower_limit=@1;upper_limit=@2;X0=@3;"
	  MaskDisplay		  "plot(-1,-0.2,3.5,1.2,[0.05,1,2,2.9],[0,0,1,"
"1]);disp(' 1/s    ')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "0.001|2|0.1"
	  MaskTabNameString	  ",,"
	  System {
	    Name		    "valve\nsetting\n(cold)"
	    Location		    [452, 229, 1117, 789]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Inport"
	      Position		      [25, 85, 45, 105]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	      HoldInput		      off
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [325, 179, 395, 201]
	      ShowName		      off
	      Value		      "upper_limit"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant1"
	      Position		      [325, 345, 390, 365]
	      ShowName		      off
	      Value		      "lower_limit"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant2"
	      Position		      [20, 135, 40, 155]
	      Value		      "0"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant3"
	      Position		      [355, 260, 375, 280]
	      ShowName		      off
	      Value		      "0"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant4"
	      Position		      [355, 425, 375, 445]
	      ShowName		      off
	      Value		      "0"
	    }
	    Block {
	      BlockType		      Integrator
	      Name		      "Integrator"
	      Ports		      [1, 1]
	      Position		      [165, 99, 200, 141]
	      InitialCondition	      "X0"
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "Logical\nOperator"
	      Ports		      [2, 1]
	      Position		      [570, 280, 605, 315]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "Logical\nOperator1"
	      Ports		      [2, 1]
	      Position		      [490, 200, 525, 235]
	      ShowName		      off
	      Operator		      "OR"
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "Logical\nOperator2"
	      Ports		      [2, 1]
	      Position		      [490, 360, 525, 395]
	      ShowName		      off
	      Operator		      "OR"
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\noperator"
	      Position		      [415, 151, 445, 204]
	      ShowName		      off
	      Operator		      "<="
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\noperator1"
	      Position		      [415, 312, 445, 368]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\noperator2"
	      Position		      [415, 231, 445, 284]
	      ShowName		      off
	      Operator		      "<="
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\noperator3"
	      Position		      [415, 396, 445, 449]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Saturate
	      Name		      "Saturation"
	      Position		      [325, 110, 350, 130]
	      UpperLimit	      "upper_limit"
	      LowerLimit	      "lower_limit"
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch"
	      Position		      [110, 80, 135, 160]
	      Threshold		      "0.5"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Outport"
	      Position		      [515, 110, 535, 130]
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Constant4"
	      SrcPort		      1
	      DstBlock		      "Relational\noperator3"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Constant3"
	      SrcPort		      1
	      DstBlock		      "Relational\noperator2"
	      DstPort		      2

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -