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

📄 newfuzzy7.mdl

📁 用RBF神经网络和模糊控制方法控制二级倒立摆源码
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "16"
      YMin		      "-2.061349693251536"
      YMax		      "1.938650306748464"
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "flash"
      Ports		      [1]
      Position		      [855, 202, 890, 238]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      System {
	Name			"flash"
	Location		[0, 88, 1012, 738]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [45, 40, 75, 50]
	  ShowName		  off
	  IconDisplay		  "Port number and signal name"
	  Port {
	    PortNumber		    1
	    Name		    "ang1&ang2"
	    PropagatedSignals	    "ang1, ang2"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  "Animation function"
	  Ports			  [1]
	  Position		  [315, 25, 385, 65]
	  DeleteFcn		  "if ~isempty(findobj('type','figure','name',"
"'simppend Animation'));close('simppend Animation'); end;"
	  FunctionName		  "mypndanim2"
	  Parameters		  "0.05"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope"
	  Ports			  [1]
	  Position		  [205, 109, 235, 141]
	  Floating		  off
	  Location		  [188, 390, 835, 629]
	  Open			  off
	  NumInputPorts		  "1"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  DataFormat		  "StructureWithTime"
	  SampleTime		  "0"
	}
	Line {
	  Name			  "ang1&ang2"
	  Labels		  [0, 0]
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [90, 0]
	  Branch {
	    Points		    [0, 80]
	    DstBlock		    "Scope"
	    DstPort		    1
	  }
	  Branch {
	    Labels		    [1, 0]
	    DstBlock		    "Animation function"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      Gain
      Name		      "k1"
      Position		      [400, 320, 430, 350]
      Orientation	      "down"
      NamePlacement	      "alternate"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "k2"
      Position		      [455, 320, 485, 350]
      Orientation	      "down"
      NamePlacement	      "alternate"
      Gain		      "-231.11"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "k3"
      Position		      [505, 320, 535, 350]
      Orientation	      "down"
      NamePlacement	      "alternate"
      Gain		      "326.3442"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "k4"
      Position		      [575, 320, 605, 350]
      Orientation	      "down"
      NamePlacement	      "alternate"
      Gain		      "0.9843"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "k5"
      Position		      [630, 320, 660, 350]
      Orientation	      "down"
      NamePlacement	      "alternate"
      Gain		      "-5.5640"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "k6"
      Position		      [685, 320, 715, 350]
      Orientation	      "down"
      NamePlacement	      "alternate"
      Gain		      "52.3631"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Scope
      Name		      "u"
      Ports		      [1]
      Position		      [60, 279, 90, 311]
      Orientation	      "left"
      NamePlacement	      "alternate"
      Floating		      off
      Location		      [525, 186, 849, 425]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData7"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "u1"
      Ports		      [1]
      Position		      [60, 374, 90, 406]
      Orientation	      "left"
      NamePlacement	      "alternate"
      Floating		      off
      Location		      [5, 48, 1029, 729]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData5"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "x"
      Ports		      [1]
      Position		      [435, 113, 465, 147]
      NamePlacement	      "alternate"
      Floating		      off
      Location		      [633, 183, 957, 422]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "100"
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "xbar"
      Ports		      [1]
      Position		      [605, 114, 635, 146]
      NamePlacement	      "alternate"
      Floating		      off
      Location		      [633, 183, 957, 422]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData11"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Line {
      Name		      "u\n"
      Labels		      [0, 0]
      SrcBlock		      "Gain26"
      SrcPort		      1
      Points		      [0, 0; 0, -10]
      Branch {
	Labels			[-1, 1]
	DstBlock		"u"
	DstPort			1
      }
      Branch {
	Labels			[2, 0]
	Points			[0, -60; 45, 0]
	Branch {
	  Labels		  [1, 0]
	  DstBlock		  "double pend system"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, -100]
	  DstBlock		  "Scope3"
	  DstPort		  1
	}
      }
    }
    Line {
      Name		      "x"
      Labels		      [0, 0]
      SrcBlock		      "double pend system"
      SrcPort		      1
      Points		      [0, 0; 10, 0]
      Branch {
	Labels			[1, 0]
	DstBlock		"Demux"
	DstPort			1
      }
      Branch {
	Labels			[1, 0]
	DstBlock		"Scope8"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      DstBlock		      "Fuzzy Logic \nController \nwith Ruleviewer"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fuzzy Logic \nController \nwith Ruleviewer"
      SrcPort		      1
      Points		      [-20, 0; 0, -20]
      Branch {
	DstBlock		"Gain26"
	DstPort			1
      }
      Branch {
	DstBlock		"u1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "k2"
      SrcPort		      1
      Points		      [0, 45]
      DstBlock		      "Sum3"
      DstPort		      2
    }
    Line {
      SrcBlock		      "k3"
      SrcPort		      1
      Points		      [0, 70]
      DstBlock		      "Sum3"
      DstPort		      3
    }
    Line {
      SrcBlock		      "k4"
      SrcPort		      1
      Points		      [0, 165]
      DstBlock		      "Sum14"
      DstPort		      1
    }
    Line {
      SrcBlock		      "k5"
      SrcPort		      1
      Points		      [0, 190]
      DstBlock		      "Sum14"
      DstPort		      2
    }
    Line {
      SrcBlock		      "k6"
      SrcPort		      1
      Points		      [0, 215]
      DstBlock		      "Sum14"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Sum3"
      SrcPort		      1
      DstBlock		      "Gain24"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum14"
      SrcPort		      1
      DstBlock		      "Gain25"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain25"
      SrcPort		      1
      Points		      [0, 0; -10, 0]
      Branch {
	DstBlock		"Mux"
	DstPort			2
      }
      Branch {
	DstBlock		"ec"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Gain24"
      SrcPort		      1
      Points		      [0, 0; -5, 0]
      Branch {
	DstBlock		"Mux"
	DstPort			1
      }
      Branch {
	DstBlock		"e"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      1
      Points		      [0, 0; 20, 0]
      Branch {
	Points			[45, 0]
	DstBlock		"k1"
	DstPort			1
      }
      Branch {
	Points			[45, 0]
	DstBlock		"Gain1"
	DstPort			1
      }
    }
    Line {
      Name		      "ang1"
      SrcBlock		      "Demux"
      SrcPort		      2
      Points		      [0, 0; 120, 0]
      Branch {
	DstBlock		"k2"
	DstPort			1
      }
      Branch {
	Points			[0, -15]
	Branch {
	  Labels		  [1, 0]
	  DstBlock		  "ang1"
	  DstPort		  1
	}
	Branch {
	  DstBlock		  "ang1& ang2"
	  DstPort		  1
	}
      }
    }
    Line {
      Name		      "ang2"
      SrcBlock		      "Demux"
      SrcPort		      3
      Points		      [0, 0; 170, 0]
      Branch {
	Labels			[-1, 0]
	DstBlock		"k3"
	DstPort			1
      }
      Branch {
	Points			[0, 0]
	Branch {
	  Labels		  [1, 0]
	  DstBlock		  "ang2"
	  DstPort		  1
	}
	Branch {
	  DstBlock		  "ang1& ang2"
	  DstPort		  2
	}
      }
    }
    Line {
      Name		      "xbar"
      SrcBlock		      "Demux"
      SrcPort		      4
      Points		      [0, 0; 240, 0]
      Branch {
	Labels			[1, 1]
	DstBlock		"k4"
	DstPort			1
      }
      Branch {
	Labels			[-1, 0; 1, 0]
	DstBlock		"xbar"
	DstPort			1
      }
    }
    Line {
      Name		      "ang1bar"
      Labels		      [0, 0]
      SrcBlock		      "Demux"
      SrcPort		      5
      Points		      [0, 0; 295, 0]
      Branch {
	Labels			[1, 1]
	DstBlock		"k5"
	DstPort			1
      }
      Branch {
	Labels			[1, 0]
	DstBlock		"ang1bar"
	DstPort			1
      }
    }
    Line {
      Name		      "ang2bar\n\n"
      SrcBlock		      "Demux"
      SrcPort		      6
      Points		      [0, 0; 350, 0]
      Branch {
	Labels			[1, 0]
	DstBlock		"k6"
	DstPort			1
      }
      Branch {
	Labels			[1, 1]
	DstBlock		"ang2bar"
	DstPort			1
      }
    }
    Line {
      Labels		      [1, 0]
      SrcBlock		      "ang1& ang2"
      SrcPort		      1
      DstBlock		      "flash"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain1"
      SrcPort		      1
      Points		      [0, -20]
      DstBlock		      "x"
      DstPort		      1
    }
    Line {
      SrcBlock		      "k1"
      SrcPort		      1
      Points		      [0, 20]
      DstBlock		      "Sum3"
      DstPort		      1
    }
    Annotation {
      Name		      "x"
      Position		      [366, 207]
      UseDisplayTextAsClickCallback off
    }
    Annotation {
      Name		      "x"
      Position		      [406, 172]
      UseDisplayTextAsClickCallback off
    }
    Annotation {
      Name		      "Double Pendulum System\n(Double click on the \""
"?\" for more info)"
      Position		      [472, 32]
      UseDisplayTextAsClickCallback off
      FontSize		      14
    }
    Annotation {
      Name		      "Lions Wang\nBJUT\nIAIR\nRuan Xiaogang"
      Position		      [822, 37]
      UseDisplayTextAsClickCallback off
      FontSize		      16
    }
  }
}

⌨️ 快捷键说明

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