apsuat.mdl

来自「sliding mode add fuzzy」· MDL 代码 · 共 1,283 行 · 第 1/3 页

MDL
1,283
字号
	Name			"MCU: don vi dieu khien\ntrung tam voi ky thua"
"t \ndieu khien Fuzzy Logic"
	Location		[190, 158, 618, 339]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"automatic"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Inport
	  Name			  "Vetor 2 chieu\nMuc chenh lech ap\nva toc do"
" thay doi ap"
	  Position		  [75, 43, 105, 57]
	  Port			  "1"
	  Interpolate		  on
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  "Ham FIS duoc nap\n tu file apsuat_fuzzy.fis"
" "
	  Ports			  [1, 1]
	  Position		  [185, 24, 255, 76]
	  FunctionName		  "sffis"
	  Parameters		  "fis"
	  PortCounts		  "[]"
	  SFunctionModules	  "sfsup"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Tin hieu ra de\ndieu khien Valve"
	  Position		  [335, 43, 365, 57]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "Vetor 2 chieu\nMuc chenh lech ap\nva toc do"
" thay doi ap"
	  SrcPort		  1
	  DstBlock		  "Ham FIS duoc nap\n tu file apsuat_fuzzy.fis"
" "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Ham FIS duoc nap\n tu file apsuat_fuzzy.fis"
" "
	  SrcPort		  1
	  DstBlock		  "Tin hieu ra de\ndieu khien Valve"
	  DstPort		  1
	}
	Annotation {
	  Position		  [136, 120]
	  Text			  "1. Tin hieu ra su dung phuong phap Centroid"
	}
	Annotation {
	  Position		  [137, 155]
	  Text			  "2.Quy trinh dieu khien dua tren co so Logic"
" mo\nGo fuzzy apsuat_fuzzy de xem cac luat dieu khien\n"
	}
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [3, 1]
      Position		      [615, 145, 620, 225]
      ShowName		      off
      Inputs		      "3"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Tao ap\nsuat \"nhieu\""
      Ports		      [0, 1]
      Position		      [405, 238, 455, 272]
      BackgroundColor	      "magenta"
      DropShadow	      on
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskType		      "Truong Hoang Long is me. Zelda is you"
      MaskDisplay	      "disp('ZELDA')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Tao ap\nsuat \"nhieu\""
	Location		[159, 94, 650, 434]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Selector
	  Name			  "Chon loai nhieu"
	  Ports			  [1, 1]
	  Position		  [315, 145, 370, 185]
	  InputType		  "Vector"
	  ElementSrc		  "Internal"
	  Elements		  "K"
	  RowSrc		  "Internal"
	  Rows			  "1"
	  ColumnSrc		  "Internal"
	  Columns		  "1"
	  InputPortWidth	  "4"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [4, 1]
	  Position		  [285, 15, 290, 310]
	  ShowName		  off
	  Inputs		  "4"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Sin
	  Name			  "Phan ung co ap\nsuat thay doi theo hinh sin"
	  Position		  [60, 110, 90, 140]
	  Amplitude		  "0.2"
	  Frequency		  "0.04"
	  Phase			  "0"
	  SampleTime		  "0"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  SignalGenerator
	  Name			  "Phan ung co ap suat\ntang va giam tuyen\nti"
"nh theo duong thang"
	  Position		  [60, 35, 90, 65]
	  WaveForm		  "sawtooth"
	  Amplitude		  "0.2"
	  Frequency		  "0.01"
	  Units			  "Hertz"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Step
	  Name			  "Phan ung giam\nap (tuc thoi)"
	  Position		  [60, 260, 90, 290]
	  Time			  "50"
	  Before		  "0"
	  After			  "-0.2"
	  SampleTime		  "0"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Step
	  Name			  "Phan ung tang\n ap (tuc thoi)"
	  Position		  [60, 185, 90, 215]
	  Time			  "50"
	  Before		  "0"
	  After			  "0.2"
	  SampleTime		  "0"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Scope
	  Name			  "Xem ap\nsuat  nhieu"
	  Ports			  [1]
	  Position		  [415, 44, 445, 76]
	  Floating		  off
	  Location		  [188, 365, 512, 604]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "OneTimeTick"
	  ZoomMode		  "on"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  Grid			  "on"
	  TimeRange		  "200"
	  YMin			  "0"
	  YMax			  "0.2"
	  SaveToWorkspace	  off
	  SaveName		  "ScopeData6"
	  DataFormat		  "StructureWithTime"
	  LimitDataPoints	  on
	  MaxDataPoints		  "5000"
	  Decimation		  "1"
	  SampleInput		  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Ap suat nhieu"
	  Position		  [415, 158, 445, 172]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "Chon loai nhieu"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Phan ung giam\nap (tuc thoi)"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Phan ung tang\n ap (tuc thoi)"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Phan ung co ap\nsuat thay doi theo hinh sin"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Phan ung co ap suat\ntang va giam tuyen\nti"
"nh theo duong thang"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Chon loai nhieu"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    DstBlock		    "Ap suat nhieu"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -105]
	    DstBlock		    "Xem ap\nsuat  nhieu"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Tin hieu 2 chieu\ncho bo dieu khien"
      Ports		      [2, 1]
      Position		      [215, 118, 220, 202]
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Scope
      Name		      "Tin hieu Logic mo"
      Ports		      [1]
      Position		      [415, 94, 445, 126]
      BackgroundColor	      "green"
      DropShadow	      on
      NamePlacement	      "alternate"
      Floating		      off
      Location		      [6, 510, 795, 570]
      Open		      off
      NumInputPorts	      "1"
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      Grid		      "on"
      TimeRange		      "20"
      YMin		      "-1"
      YMax		      "1"
      SaveToWorkspace	      off
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Derivative
      Name		      "Toc do thay\ndoi ap suat"
      Position		      [100, 164, 135, 196]
      DropShadow	      on
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
    }
    Line {
      SrcBlock		      "Tin hieu 2 chieu\ncho bo dieu khien"
      SrcPort		      1
      DstBlock		      "MCU: don vi dieu khien\ntrung tam voi ky thuat "
"\ndieu khien Fuzzy Logic"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Ap suat\ntrung binh\ncan duy tri\ncho he\n thon"
"g"
      SrcPort		      1
      Points		      [0, 0; 15, 0]
      Branch {
	DstBlock		"Do lech"
	DstPort			1
      }
      Branch {
	Points			[0, -100; 510, 0; 0, 130]
	DstBlock		"Mux"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Do lech"
      SrcPort		      1
      DstBlock		      "Tin hieu 2 chieu\ncho bo dieu khien"
      DstPort		      1
    }
    Line {
      SrcBlock		      "MCU: don vi dieu khien\ntrung tam voi ky thuat "
"\ndieu khien Fuzzy Logic"
      SrcPort		      1
      Points		      [5, 0; 5, 0]
      Branch {
	DstBlock		"He thong Valve\ndieu khien\nap suat"
	DstPort			1
      }
      Branch {
	Points			[0, -50]
	DstBlock		"Tin hieu Logic mo"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Toc do thay\ndoi ap suat"
      SrcPort		      1
      Points		      [20, 0; 0, 55; -30, 0]
      DstBlock		      "Han che bien\ndo de lam co\nbao toc do"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Han che bien\ndo de lam co\nbao toc do"
      SrcPort		      1
      Points		      [10, 0; 0, -55; -30, 0; 0, -55]
      DstBlock		      "Tin hieu 2 chieu\ncho bo dieu khien"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Cong suat cap\nap suat cuc dai"
      SrcPort		      1
      Points		      [10, 0]
      DstBlock		      "He thong Valve\ndieu khien\nap suat"
      DstPort		      2
    }
    Line {
      SrcBlock		      "He thong can\ndieu ap"
      SrcPort		      1
      Points		      [0, 0; 10, 0]
      Branch {
	DstBlock		"Mux"
	DstPort			2
      }
      Branch {
	Points			[0, 130; -510, 0; 0, -135]
	Branch {
	  DstBlock		  "Toc do thay\ndoi ap suat"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, -35]
	  DstBlock		  "Do lech"
	  DstPort		  2
	}
      }
    }
    Line {
      SrcBlock		      "He thong Valve\ndieu khien\nap suat"
      SrcPort		      1
      DstBlock		      "He thong can\ndieu ap"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Tao ap\nsuat \"nhieu\""
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	DstBlock		"He thong can\ndieu ap"
	DstPort			2
      }
      Branch {
	Points			[110, 0; 0, 10; 20, 0]
	DstBlock		"Mux"
	DstPort			3
      }
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	DstBlock		"Ket qua cua su\ndieu khien ap suat"
	DstPort			1
      }
      Branch {
	DstBlock		"Ket qua cua su\ndieu khien ap suat "
	DstPort			1
      }
    }
    Annotation {
      Position		      [342, 324]
      Text		      "Ap suat hoi tiep ve cho bo dieu khien"
    }
  }
}

⌨️ 快捷键说明

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