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

📄 newfuzzy8.mdl

📁 用RBF神经网络和模糊控制方法控制二级倒立摆源码
💻 MDL
📖 第 1 页 / 共 4 页
字号:
      BlockType		      Demux
      Name		      "Demux"
      Ports		      [1, 6]
      Position		      [340, 248, 345, 287]
      BackgroundColor	      "black"
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      12
      Outputs		      "6"
      DisplayOption	      "bar"
      Port {
	PortNumber		2
	Name			"ang1"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      Port {
	PortNumber		3
	Name			"ang2"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      Port {
	PortNumber		4
	Name			"bar"
	PropagatedSignals	"bar"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      Port {
	PortNumber		5
	Name			"ang1bar"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      Port {
	PortNumber		6
	Name			"ang2bar"
	PropagatedSignals	"ang2bar"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
    }
    Block {
      BlockType		      Scope
      Name		      "E"
      Ports		      [1]
      Position		      [269, 340, 301, 370]
      Orientation	      "up"
      FontName		      "Times New Roman"
      FontSize		      12
      Floating		      off
      Location		      [212, 226, 536, 465]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "16"
      YMin		      "-2.061349693251536"
      YMax		      "1.938650306748464"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "EC"
      Ports		      [1]
      Position		      [195, 464, 225, 496]
      Orientation	      "left"
      NamePlacement	      "alternate"
      FontName		      "Times New Roman"
      FontSize		      12
      Floating		      off
      Location		      [212, 226, 536, 465]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "16"
      YMin		      "-2.061349693251536"
      YMax		      "1.938650306748464"
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Fuzzy Logic \nController"
      Ports		      [1, 1]
      Position		      [165, 381, 225, 429]
      Orientation	      "left"
      NamePlacement	      "alternate"
      FontName		      "Times New Roman"
      FontSize		      12
      SourceBlock	      "fuzblock/Fuzzy Logic \nController"
      SourceType	      "FIS"
      ShowPortLabels	      on
      fis		      "myfuuzy5"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain1"
      Position		      [390, 190, 420, 220]
      Orientation	      "up"
      NamePlacement	      "alternate"
      FontName		      "Times New Roman"
      FontSize		      12
      Gain		      "0.1"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "Gain24"
      Position		      [300, 380, 330, 410]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      12
      Gain		      " 0.001"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "Gain25"
      Position		      [300, 465, 330, 495]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      12
      Gain		      "0.001"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "K_u"
      Position		      [125, 305, 155, 335]
      Orientation	      "up"
      FontName		      "Times New Roman"
      FontSize		      12
      Gain		      "-1000"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
      Port {
	PortNumber		1
	Name			"\n"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "More Info"
      Ports		      []
      Position		      [455, 25, 493, 59]
      DropShadow	      on
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      12
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      MaskDisplay	      "disp('?')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"More Info"
	Location		[2, 82, 1014, 717]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Annotation {
	  Name			  "Associated with the demo is an animation fu"
"nction that\nwill automatically open a figure window and display to it."
	  Position		  [196, 162]
	  UseDisplayTextAsClickCallback	off
	}
	Annotation {
	  Name			  "This system models a double pendulum system"
" with\nan applied external moment that varies periodically."
	  Position		  [180, 117]
	  UseDisplayTextAsClickCallback	off
	}
	Annotation {
	  Name			  "Lions Wang\nBJUT\nIAIR\nRuan Xiaogang"
	  Position		  [162, 62]
	  UseDisplayTextAsClickCallback	off
	}
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [2, 1]
      Position		      [255, 386, 260, 424]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      12
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux1"
      Ports		      [3, 1]
      Position		      [810, 234, 840, 266]
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      12
      Inputs		      "3"
    }
    Block {
      BlockType		      Scope
      Name		      "OUTPUT"
      Ports		      [1]
      Position		      [325, 149, 355, 181]
      NamePlacement	      "alternate"
      FontName		      "Times New Roman"
      FontSize		      12
      Floating		      off
      Location		      [5, 52, 1021, 725]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData6"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Constant
      Name		      "Reference\nUSED FOR FLASH"
      Position		      [850, 145, 900, 165]
      Orientation	      "left"
      FontName		      "Times New Roman"
      FontSize		      12
      Value		      "0"
    }
    Block {
      BlockType		      StateSpace
      Name		      "SYSTEM"
      Position		      [235, 253, 295, 287]
      FontName		      "Times New Roman"
      FontSize		      12
      A			      "[0 0 0 1.0000 0 0 ;0 0  0 0 1.0000 0 ;0 0 0 0 0"
"  1.0000;
\n0 -1.5352 0.0487  -10.1733    0.0066 -0.0034 ;0 38.3769  -13.8131"
"   22.1408 -0.2412 0.1629
;0 -41.4394 39.1031 -2.1059 0.4085 -0.3240]"
      B			      "[0;0;0;0.9597; -2.0888; 0.1987]"
      C			      "[1 0 0 0 0 0;0 1 0 0 0 0;0 0 1 0 0 0; 0 0 0 1 0"
"  0;0 0 0 0 1 0;0 0  0 0  0 1 ]"
      D			      "[0;0;0;0;0;0]"
      X0		      "[0 0.7  0 0 0 0]"
      Port {
	PortNumber		1
	Name			"x"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
    }
    Block {
      BlockType		      SignalGenerator
      Name		      "Signal Gen."
      Ports		      [0, 1]
      Position		      [850, 103, 895, 137]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      12
      WaveForm		      "square"
      Amplitude		      "0.000000"
      Frequency		      "0.400000"
      Units		      "rad/sec"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum14"
      Ports		      [3, 1]
      Position		      [355, 470, 375, 490]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      12
      IconShape		      "round"
      Inputs		      "+++"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Sum
      Name		      "Sum2"
      Ports		      [2, 1]
      Position		      [790, 140, 810, 160]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      12
    }
    Block {
      BlockType		      Sum
      Name		      "Sum3"
      Ports		      [3, 1]
      Position		      [360, 385, 380, 405]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      12
      IconShape		      "round"
      Inputs		      "+++"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Sum
      Name		      "Sum4"
      Ports		      [2, 1]
      Position		      [765, 205, 785, 225]
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      12
      IconShape		      "round"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [870, 306, 905, 324]
      ShowName		      off
      FontName		      "Times New Roman"
      FontSize		      12
      VariableName	      "y"
      SampleTime	      "0.1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      Scope
      Name		      "U\n"
      Ports		      [1]
      Position		      [200, 149, 230, 181]
      FontName		      "Times New Roman"
      FontSize		      12
      Floating		      off
      Location		      [534, 388, 858, 627]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "0.16384"
      YMin		      "-0.7631901840490818"
      YMax		      "0.8368098159509183"
      SaveName		      "ScopeData3"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "X"
      Ports		      [1]
      Position		      [420, 148, 450, 182]
      NamePlacement	      "alternate"
      FontName		      "Times New Roman"
      FontSize		      12
      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, 149, 635, 181]
      NamePlacement	      "alternate"
      FontName		      "Times New Roman"
      FontSize		      12
      Floating		      off
      Location		      [633, 183, 957, 422]
      Open		      off
      NumInputPorts	      "1"

⌨️ 快捷键说明

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