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

📄 buck_pwm.mdl

📁 DC-DC 转换的Simulink 模型with PWM PI control
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	  DstBlock		  "Switch3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Logical\nOperator1"
	  SrcPort		  1
	  DstBlock		  "Data Type Conversion1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch2"
	  SrcPort		  1
	  DstBlock		  "Sum6"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Io"
	  SrcPort		  1
	  Points		  [10, 0]
	  DstBlock		  "Sum6"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sum5"
	  SrcPort		  1
	  Points		  [0, 0; 5, 0]
	  Branch {
	    DstBlock		    "Product2"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -25]
	    DstBlock		    "Product1"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Sum6"
	  SrcPort		  1
	  DstBlock		  "Product3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product2"
	  SrcPort		  1
	  Points		  [0, 0; 45, 0]
	  Branch {
	    Points		    [0, 45]
	    DstBlock		    "Product3"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Product4"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Product3"
	  SrcPort		  1
	  Points		  [0, 0; 15, 0]
	  Branch {
	    DstBlock		    "Sum7"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 65]
	    DstBlock		    "Gain4"
	    DstPort		    1
	  }
	}
	Line {
	  Name			  "Ic"
	  Labels		  [0, 0]
	  SrcBlock		  "Sum7"
	  SrcPort		  1
	  Points		  [110, 0]
	  Branch {
	    Points		    [0, 45]
	    DstBlock		    "Bus\nCreator"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [35, 0; 0, -135]
	    DstBlock		    "1/C"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  Points		  [15, 0]
	  DstBlock		  "Sum7"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain4"
	  SrcPort		  1
	  DstBlock		  "Sum2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product4"
	  SrcPort		  1
	  Points		  [15, 0]
	  DstBlock		  "Sum2"
	  DstPort		  1
	}
	Line {
	  Name			  "Vo"
	  Labels		  [0, 0]
	  SrcBlock		  "Sum2"
	  SrcPort		  1
	  Points		  [0, 0; 15, 0]
	  Branch {
	    Points		    [50, 0]
	    DstBlock		    "Bus\nCreator"
	    DstPort		    3
	  }
	  Branch {
	    Points		    [0, 40; -175, 0; 0, -40; -155, 0; 0, 20]
	    DstBlock		    "Switch1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Constant2"
	  SrcPort		  1
	  Points		  [0, 0; 40, 0]
	  Branch {
	    DstBlock		    "Compare\nTo Constant"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 55]
	    DstBlock		    "Compare\nTo Constant1"
	    DstPort		    1
	  }
	}
	Line {
	  Name			  "S"
	  Labels		  [0, 0]
	  SrcBlock		  "S"
	  SrcPort		  1
	  Points		  [0, 0; 20, 0]
	  Branch {
	    Points		    [0, 135]
	    Branch {
	      Points		      [-45, 0; 0, 95; 675, 0; 0, -175]
	      DstBlock		      "Bus\nCreator"
	      DstPort		      7
	    }
	    Branch {
	      DstBlock		      "Compare\nTo Zero1"
	      DstPort		      1
	    }
	  }
	  Branch {
	    DstBlock		    "Compare\nTo Zero"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Compare\nTo Zero"
	  SrcPort		  1
	  Points		  [15, 0]
	  DstBlock		  "Logical\nOperator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Compare\nTo Constant"
	  SrcPort		  1
	  DstBlock		  "Logical\nOperator"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Compare\nTo Zero1"
	  SrcPort		  1
	  Points		  [5, 0; 0, -25]
	  DstBlock		  "Logical\nOperator1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Compare\nTo Constant1"
	  SrcPort		  1
	  DstBlock		  "Logical\nOperator1"
	  DstPort		  1
	}
	Line {
	  Name			  "Is"
	  Labels		  [0, 0]
	  SrcBlock		  "Product5"
	  SrcPort		  1
	  Points		  [-125, 0; 0, 50; 635, 0; 0, -170]
	  DstBlock		  "Bus\nCreator"
	  DstPort		  6
	}
	Line {
	  Name			  "Vc"
	  Labels		  [0, 0]
	  SrcBlock		  "Vc"
	  SrcPort		  1
	  Points		  [0, 0; -20, 0]
	  Branch {
	    Points		    [0, 30]
	    Branch {
	      Points		      [120, 0; 0, 135]
	      DstBlock		      "Bus\nCreator"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 35]
	      DstBlock		      "Product4"
	      DstPort		      1
	    }
	  }
	  Branch {
	    Points		    [-85, 0; 0, 30]
	    DstBlock		    "Product1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "1/C"
	  SrcPort		  1
	  DstBlock		  "Vc"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Demux
      Name		      "Demux"
      Ports		      [1, 2]
      Position		      [270, 96, 275, 129]
      BackgroundColor	      "black"
      ShowName		      off
      Outputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      SubSystem
      Name		      "PWM PI\nController "
      Ports		      [2, 1]
      Position		      [125, 70, 175, 110]
      DropShadow	      on
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskDescription	      "PWM PI Controller with Current Control\nbeta: gain for current control\nKp: Controller gain\nTi: Intergal time constant (s)\nFs: PWM frequency (Hz)"
      MaskPromptString	      "beta|Kp|Ti|Fs"
      MaskStyleString	      "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString	      "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskToolTipString	      "on,on,on,on"
      MaskVarAliasString      ",,,"
      MaskVariables	      "beta=@1;Kp=@2;Ti=@3;Fs=@4;"
      MaskDisplay	      "disp(sprintf('PWM PI\\n Controller'))"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0.2|1|300|0.2"
      MaskTabNameString	      ",,,"
      Port {
	PortNumber		1
	Name			"S"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      System {
	Name			"PWM PI\nController "
	Location		[1048, 747, 1603, 969]
	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			  "V"
	  Position		  [515, 51, 545, 69]
	  Orientation		  "left"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "I"
	  Position		  [415, 22, 440, 38]
	  Orientation		  "left"
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Abs
	  Name			  "Abs"
	  Position		  [290, 125, 305, 155]
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Saturate
	  Name			  "Duty"
	  Position		  [150, 85, 180, 115]
	  Orientation		  "left"
	  UpperLimit		  "0.99"
	  LowerLimit		  "0.01"
	}
	Block {
	  BlockType		  Memory
	  Name			  "Memory"
	  Position		  [220, 85, 250, 115]
	  Orientation		  "left"
	  ShowName		  off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "PID"
	  Ports			  [2, 1]
	  Position		  [345, 82, 375, 113]
	  Orientation		  "left"
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  MaskType		  "PID Controller"
	  MaskDescription	  "Enter expressions for proportional, integral, and derivative terms.\nP+I/s+Ds"
	  MaskHelp		  "This block implements a PID controller where parameters are entered for the Proportional, Integral and Derivative terms. Unmask this block to see how it works. The derivative term is implemented using a true derivative block."
	  MaskPromptString	  "Proportional:|Integral:|Derivative:"
	  MaskStyleString	  "edit,edit,edit"
	  MaskTunableValueString  "on,on,on"
	  MaskCallbackString	  "||"
	  MaskEnableString	  "on,on,on"
	  MaskVisibilityString	  "on,on,on"
	  MaskToolTipString	  "on,on,on"
	  MaskVarAliasString	  ",,"
	  MaskVariables		  "P=@1;I=@2;D=@3;"
	  MaskDisplay		  "disp('PID')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "Kp|Kp/Ti|0"
	  MaskTabNameString	  ",,"
	  System {
	    Name		    "PID"
	    Location		    [16, 435, 378, 655]
	    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		      "In_1"
	      Position		      [25, 65, 45, 85]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "In_2"
	      Position		      [115, 95, 135, 115]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "D"
	      Position		      [95, 129, 115, 151]
	      Gain		      "D"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Derivative
	      Name		      "Derivative"
	      Position		      [150, 128, 190, 152]
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "I"
	      Position		      [100, 63, 120, 87]
	      Gain		      "I"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Integrator
	      Name		      "Integrator"
	      Ports		      [2, 1]
	      Position		      [165, 67, 195, 98]
	      ExternalReset	      "level"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Proportional"
	      Position		      [120, 13, 140, 37]
	      Gain		      "P"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [3, 1]
	      Position		      [245, 57, 265, 93]
	      Inputs		      "+++"
	      CollapseMode	      "All dimensions"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Terminator
	      Name		      "Terminator"
	      Position		      [245, 110, 265, 130]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out_1"
	      Position		      [290, 65, 310, 85]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Integrator"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		Points			[0, -10]
		DstBlock		"Sum"
		DstPort			2
	      }
	      Branch {
		Points			[0, 35]
		DstBlock		"Terminator"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Proportional"
	      SrcPort		      1
	      Points		      [65, 0; 

⌨️ 快捷键说明

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