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

📄 mimo_lib.mdl

📁 内模控制器(IMC)工具箱。包括参数整定、PID控制器参数转换等
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	  Mdelay		  "Kdelay(2)"
	}
	Block {
	  BlockType		  Reference
	  Name			  "K{1,1,1}"
	  Ports			  [1, 1, 0, 0, 0]
	  Position		  [190, 30, 220, 60]
	  Orientation		  "left"
	  SourceBlock		  "simulink3/Math/Matrix\nGain"
	  SourceType		  "Matrix Gain"
	  K			  "[zeros(1,lengthDs-length(K{1}))  K{1}]"
	}
	Block {
	  BlockType		  Reference
	  Name			  "K{1,1,2}"
	  Ports			  [1, 1, 0, 0, 0]
	  Position		  [190, 85, 220, 115]
	  Orientation		  "left"
	  SourceBlock		  "simulink3/Math/Matrix\nGain"
	  SourceType		  "Matrix Gain"
	  K			  "[zeros(1,lengthDs-length(K{2}))  K{2}]"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [75, 56, 90, 84]
	  Orientation		  "left"
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "|++"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [25, 63, 55, 77]
	  Orientation		  "left"
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "K{1,1,1}"
	  SrcPort		  1
	  DstBlock		  "Kdelay(1,1,1)\n"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "K{1,1,2}"
	  SrcPort		  1
	  DstBlock		  "Kdelay(1,1,2)"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Kdelay(1,1,1)\n"
	  SrcPort		  1
	  Points		  [-15, 0]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Kdelay(1,1,2)"
	  SrcPort		  1
	  Points		  [-15, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [-20, 0]
	  Branch {
	    Points		    [0, -30]
	    DstBlock		    "K{1,1,1}"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 25]
	    DstBlock		    "K{1,1,2}"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "2_input_state"
      Ports		      [1, 2, 0, 0, 0]
      Position		      [215, 120, 250, 155]
      ShowPortLabels	      on
      MaskType		      "2_input_state"
      MaskDescription	      "The block generate the state vectors of signal "
"[ ..., x''', x'', x' , x ] of each 2 input signals. "
      MaskPromptString	      "D(s) :"
      MaskStyleString	      "edit"
      MaskTunableValueString  "on"
      MaskEnableString	      "on"
      MaskVisibilityString    "on"
      MaskVariables	      "Ds=@1;"
      MaskDisplay	      "disp('1/D(s)')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"2_input_state"
	Location		[514, 424, 764, 596]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"automatic"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 78, 55, 92]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Reference
	  Name			  "1_input_state"
	  Ports			  [1, 1, 0, 0, 0]
	  Position		  [120, 34, 160, 66]
	  SourceBlock		  "MIMO_lib/1_input_state"
	  SourceType		  "SISO_MSF"
	  Ds			  "Ds{1}"
	}
	Block {
	  BlockType		  Reference
	  Name			  "1_input_state1"
	  Ports			  [1, 1, 0, 0, 0]
	  Position		  [120, 104, 160, 136]
	  SourceBlock		  "MIMO_lib/1_input_state"
	  SourceType		  "SISO_MSF"
	  Ds			  "Ds{2}"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 2, 0, 0, 0]
	  Position		  [80, 66, 85, 104]
	  BackgroundColor	  "black"
	  ShowName		  off
	  Outputs		  "2"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [195, 43, 225, 57]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out2"
	  Position		  [195, 113, 225, 127]
	  Port			  "2"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  DstBlock		  "1_input_state"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  DstBlock		  "1_input_state1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "1_input_state"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "1_input_state1"
	  SrcPort		  1
	  DstBlock		  "Out2"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "2x2m"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [55, 194, 100, 236]
      ShowPortLabels	      on
      MaskType		      "diagonal transferfunction matrix"
      MaskDescription	      "A block for the simulation of diagonal transfer"
" function matrix, for example the prefilter, and qd part of the feed back con"
"troller."
      MaskPromptString	      "diagonal cell array of numurator polynomial|dia"
"gonal cell array of denominator polynomial"
      MaskStyleString	      "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskVariables	      "num=@1;den=@2;"
      MaskDisplay	      "disp('diag TF')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "|"
      System {
	Name			"2x2m"
	Location		[430, 406, 740, 554]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"automatic"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 68, 55, 82]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 2, 0, 0, 0]
	  Position		  [80, 56, 85, 94]
	  BackgroundColor	  "black"
	  ShowName		  off
	  Outputs		  "2"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [225, 56, 230, 94]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn"
	  Position		  [120, 27, 180, 63]
	  Numerator		  "num{1,1}"
	  Denominator		  "den{1,1}"
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn1"
	  Position		  [120, 87, 180, 123]
	  Numerator		  "num{2,2}"
	  Denominator		  "den{2,2}"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [255, 68, 285, 82]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  DstBlock		  "Transfer Fcn"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  DstBlock		  "Transfer Fcn1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Transfer Fcn"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Transfer Fcn1"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Demux"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "2x2system"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [45, 17, 105, 63]
      ShowPortLabels	      on
      MaskType		      "2x2 system"
      MaskDescription	      "The system is described by a cell array of nume"
"rator polynomial, a cell array denominator polynomial of s , and a cell array"
" of dead time."
      MaskPromptString	      "numerator :|denominator:|dead time:"
      MaskStyleString	      "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString	      "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskVariables	      "num=@1;den=@2;dead=@3;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "||"
      System {
	Name			"2x2system"
	Location		[396, 329, 897, 620]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"automatic"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Inport
	  Name			  "u"
	  Position		  [25, 123, 55, 137]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 2, 0, 0, 0]
	  Position		  [75, 111, 80, 149]
	  BackgroundColor	  "black"
	  ShowName		  off
	  Outputs		  "2"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [400, 116, 405, 154]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [340, 58, 360, 82]
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "|++"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [340, 178, 360, 202]
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "|++"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn"
	  Position		  [165, 27, 225, 63]
	  Numerator		  "num{1,1}"
	  Denominator		  "den{1,1}"
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn1"
	  Position		  [165, 82, 225, 118]
	  Numerator		  "num{1,2}"
	  Denominator		  "den{1,2}"
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn2"
	  Position		  [165, 147, 225, 183]
	  Numerator		  "num{2,1}"
	  Denominator		  "den{2,1}"
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn3"
	  Position		  [170, 207, 230, 243]
	  Numerator		  "num{2,2}"
	  Denominator		  "den{2,2}"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Transport\nDelay"
	  Ports			  [1, 1, 0, 0, 0]
	  Position		  [255, 30, 285, 60]
	  SourceBlock		  "MIMO_lib/Mdelay"
	  SourceType		  "Mdelay"
	  Mdelay		  "dead{1,1}"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Transport\nDelay1"
	  Ports			  [1, 1, 0, 0, 0]
	  Position		  [255, 85, 285, 115]
	  SourceBlock		  "MIMO_lib/Mdelay"
	  SourceType		  "Mdelay"
	  Mdelay		  "dead{1,2}"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Transport\nDelay2"
	  Ports			  [1, 1, 0, 0, 0]
	  Position		  [255, 150, 285, 180]
	  SourceBlock		  "MIMO_lib/Mdelay"
	  SourceType		  "Mdelay"
	  Mdelay		  "dead{2,1}"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Transport\nDelay3"
	  Ports			  [1, 1, 0, 0, 0]
	  Position		  [255, 210, 285, 240]
	  SourceBlock		  "MIMO_lib/Mdelay"
	  SourceType		  "Mdelay"
	  Mdelay		  "dead{2,2}"
	}
	Block {
	  BlockType		  Outport
	  Name			  "y"
	  Position		  [430, 128, 460, 142]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "Transfer Fcn"
	  SrcPort		  1
	  DstBlock		  "Transport\nDelay"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Transfer Fcn1"
	  SrcPort		  1
	  DstBlock		  "Transport\nDelay1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Transport\nDelay"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Transport\nDelay1"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    DstBlock		    "Transfer Fcn"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Transfer Fcn2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  Points		  [0, 0]
	  Branch {
	    DstBlock		    "Transfer Fcn1"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Transfer Fcn3"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Transfer Fcn2"
	  SrcPort		  1
	  DstBlock		  "Transport\nDelay2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Transfer Fcn3"
	  SrcPort		  1
	  DstBlock		  "Transport\nDelay3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Transport\nDelay2"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Transport\nDelay3"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  2

⌨️ 快捷键说明

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