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

📄 pid_sim.mdl

📁 this is matlab pid tuning code
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	Block {
	  BlockType		  Sum
	  Name			  "plant_add"
	  Ports			  [2, 1]
	  Position		  [295, 52, 325, 83]
	  Inputs		  "+-"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "plant_gain"
	  Position		  [160, 15, 235, 105]
	  Gain			  "plant_gain"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Integrator
	  Name			  "plant_int"
	  Ports			  [1, 1]
	  Position		  [465, 55, 495, 85]
	  Port {
	    PortNumber		    1
	    Name		    "ym_flt_dbl"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "plant_tc"
	  Position		  [370, 44, 445, 96]
	  Gain			  "plant_tc"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Outport
	  Name			  "y"
	  Position		  [625, 73, 655, 87]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  "plant_tc"
	  SrcPort		  1
	  DstBlock		  "plant_int"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "plant_add"
	  SrcPort		  1
	  DstBlock		  "plant_tc"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "plant_gain"
	  SrcPort		  1
	  DstBlock		  "plant_add"
	  DstPort		  1
	}
	Line {
	  Name			  "ym_flt_dbl"
	  Labels		  [0, 0]
	  SrcBlock		  "plant_int"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, 55; -240, 0]
	    DstBlock		    "plant_add"
	    DstPort		    2
	  }
	  Branch {
	    Labels		    [1, 0]
	    Points		    [90, 0]
	    DstBlock		    "y"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "u"
	  SrcPort		  1
	  DstBlock		  "plant_gain"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "plant1"
      Ports		      [1, 1]
      Position		      [245, 324, 390, 386]
      BackgroundColor	      "cyan"
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Port {
	PortNumber		1
	Name			"ym_fxp_sp"
	PropagatedSignals	"ym_fxp_sp"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      System {
	Name			"plant1"
	Location		[558, 297, 1216, 449]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "u"
	  Position		  [25, 48, 55, 62]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Sum
	  Name			  "plant_add"
	  Ports			  [2, 1]
	  Position		  [260, 47, 290, 78]
	  Inputs		  "+-"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "plant_gain"
	  Position		  [120, 26, 205, 84]
	  Gain			  "plant_gain"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Integrator
	  Name			  "plant_int"
	  Ports			  [1, 1]
	  Position		  [455, 50, 485, 80]
	  Port {
	    PortNumber		    1
	    Name		    "ym_fxp_sp"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "plant_tc"
	  Position		  [320, 39, 395, 91]
	  Gain			  "plant_tc"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Outport
	  Name			  "y"
	  Position		  [615, 58, 645, 72]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  "plant_tc"
	  SrcPort		  1
	  DstBlock		  "plant_int"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "plant_add"
	  SrcPort		  1
	  DstBlock		  "plant_tc"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "plant_gain"
	  SrcPort		  1
	  DstBlock		  "plant_add"
	  DstPort		  1
	}
	Line {
	  Name			  "ym_fxp_sp"
	  Labels		  [0, 0]
	  SrcBlock		  "plant_int"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, 60; -285, 0; 0, -55]
	    DstBlock		    "plant_add"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "y"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "u"
	  SrcPort		  1
	  DstBlock		  "plant_gain"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "plant2"
      Ports		      [1, 1]
      Position		      [245, 529, 390, 591]
      BackgroundColor	      "cyan"
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Port {
	PortNumber		1
	Name			"ym_fxp_dp"
	PropagatedSignals	"ym_fxp_dp"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      System {
	Name			"plant2"
	Location		[558, 297, 1231, 449]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "u"
	  Position		  [25, 48, 55, 62]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Sum
	  Name			  "plant_add"
	  Ports			  [2, 1]
	  Position		  [245, 47, 275, 78]
	  Inputs		  "+-"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "plant_gain"
	  Position		  [110, 26, 195, 84]
	  Gain			  "plant_gain"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Integrator
	  Name			  "plant_int"
	  Ports			  [1, 1]
	  Position		  [490, 50, 520, 80]
	  Port {
	    PortNumber		    1
	    Name		    "ym_fxp_dp"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "plant_tc"
	  Position		  [355, 39, 430, 91]
	  Gain			  "plant_tc"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Outport
	  Name			  "y"
	  Position		  [625, 58, 655, 72]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  "plant_tc"
	  SrcPort		  1
	  DstBlock		  "plant_int"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "plant_add"
	  SrcPort		  1
	  DstBlock		  "plant_tc"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "plant_gain"
	  SrcPort		  1
	  DstBlock		  "plant_add"
	  DstPort		  1
	}
	Line {
	  Name			  "ym_fxp_dp"
	  Labels		  [0, 0]
	  SrcBlock		  "plant_int"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, 60; -360, 0; 0, -55]
	    DstBlock		    "plant_add"
	    DstPort		    2
	  }
	  Branch {
	    Labels		    [1, 0]
	    DstBlock		    "y"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "u"
	  SrcPort		  1
	  DstBlock		  "plant_gain"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Outport
      Name		      "Out1"
      Position		      [715, 38, 745, 52]
      IconDisplay	      "Port number"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
    }
    Block {
      BlockType		      Outport
      Name		      "Out2"
      Position		      [715, 153, 745, 167]
      Port		      "2"
      IconDisplay	      "Port number"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
    }
    Block {
      BlockType		      Outport
      Name		      "Out3"
      Position		      [795, 343, 825, 357]
      Port		      "3"
      IconDisplay	      "Port number"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
    }
    Block {
      BlockType		      Outport
      Name		      "Out4"
      Position		      [795, 548, 825, 562]
      Port		      "4"
      IconDisplay	      "Port number"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
    }
    Block {
      BlockType		      Outport
      Name		      "Out5"
      Position		      [715, 253, 745, 267]
      Port		      "5"
      IconDisplay	      "Port number"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
    }
    Block {
      BlockType		      Outport
      Name		      "Out6"
      Position		      [715, 438, 745, 452]
      Port		      "6"
      IconDisplay	      "Port number"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
    }
    Block {
      BlockType		      Outport
      Name		      "Out7"
      Position		      [715, 628, 745, 642]
      Port		      "7"
      IconDisplay	      "Port number"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
    }
    Block {
      BlockType		      Outport
      Name		      "Out8"
      Position		      [50, 238, 80, 252]
      Orientation	      "left"
      Port		      "8"
      IconDisplay	      "Port number"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
    }
    Block {
      BlockType		      Outport
      Name		      "Out9"
      Position		      [50, 428, 80, 442]
      Orientation	      "left"
      Port		      "9"
      IconDisplay	      "Port number"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
    }
    Block {
      BlockType		      Outport
      Name		      "Out10"
      Position		      [45, 618, 75, 632]
      Orientation	      "left"
      Port		      "10"
      IconDisplay	      "Port number"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
    }
    Block {
      BlockType		      Outport
      Name		      "Out11"
      Position		      

⌨️ 快捷键说明

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