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

📄 buck_pwm.mdl

📁 DC-DC 转换的Simulink 模型with PWM PI control
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	  MaskValueString	  "==|1|boolean"
	  MaskTabNameString	  ",,"
	  System {
	    Name		    "Compare\nTo Constant"
	    Location		    [717, 33, 1247, 720]
	    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		      [35, 28, 65, 42]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Compare"
	      Position		      [165, 16, 205, 89]
	      Operator		      "=="
	      InputSameDT	      off
	      LogicOutDataTypeMode    "boolean"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [60, 50, 100, 90]
	      Value		      "const"
	      OutDataTypeMode	      "Inherit via back propagation"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "1"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "FixPt\nData Type\nDuplicate"
	      Ports		      [2]
	      Position		      [165, 118, 210, 182]
	      SourceBlock	      "simulink/Signal\nAttributes/Data Type\nDuplicate"
	      SourceType	      "Data Type Duplicate"
	      NumInputPorts	      "2"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "y"
	      Position		      [290, 48, 320, 62]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Line {
	      SrcBlock		      "u"
	      SrcPort		      1
	      Points		      [0, 0; 75, 0]
	      Branch {
		DstBlock		"Compare"
		DstPort			1
	      }
	      Branch {
		Points			[0, 100]
		DstBlock		"FixPt\nData Type\nDuplicate"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      Points		      [0, 0; 30, 0]
	      Branch {
		DstBlock		"Compare"
		DstPort			2
	      }
	      Branch {
		Points			[0, 95]
		DstBlock		"FixPt\nData Type\nDuplicate"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Compare"
	      SrcPort		      1
	      DstBlock		      "y"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Compare\nTo Constant1"
	  Ports			  [1, 1]
	  Position		  [135, 310, 165, 340]
	  ShowName		  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  MaskType		  "Compare To Constant"
	  MaskDescription	  "Determine how a signal compares to a constant."
	  MaskPromptString	  "Operator:|Constant value:|Output data type mode:"
	  MaskStyleString	  "popup(==|~=|<|<=|>=|>),edit,popup(uint8|boolean)"
	  MaskTunableValueString  "on,on,on"
	  MaskCallbackString	  "||"
	  MaskEnableString	  "on,on,on"
	  MaskVisibilityString	  "on,on,on"
	  MaskToolTipString	  "on,on,on"
	  MaskVarAliasString	  ",,"
	  MaskVariables		  "relop=&1;const=@2;LogicOutDataTypeMode=&3;"
	  MaskInitialization	  "blkName = gcb;\n\nif strcmp(get_param(gcbh,'LogicOutDataTypeMode'),'boolean')\n	setValue = 'Boolean';\nelse\n	setValue = 'Specify via dialog';\nend\n\nset_param([blkName,'/Compare'],'relop',relop, ...\n	'LogicOutDataTypeMode', setValue);\n\nif length(const) == 1\n str = [relop,' ',num2str(double(const))];\nelse\n  str = [relop,' C'];\nend"
	  MaskDisplay		  "disp(str)"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "normalized"
	  MaskValueString	  "==|2|boolean"
	  MaskTabNameString	  ",,"
	  System {
	    Name		    "Compare\nTo Constant1"
	    Location		    [717, 33, 1247, 720]
	    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		      [35, 28, 65, 42]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Compare"
	      Position		      [165, 16, 205, 89]
	      Operator		      "=="
	      InputSameDT	      off
	      LogicOutDataTypeMode    "boolean"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [60, 50, 100, 90]
	      Value		      "const"
	      OutDataTypeMode	      "Inherit via back propagation"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "1"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "FixPt\nData Type\nDuplicate"
	      Ports		      [2]
	      Position		      [165, 118, 210, 182]
	      SourceBlock	      "simulink/Signal\nAttributes/Data Type\nDuplicate"
	      SourceType	      "Data Type Duplicate"
	      NumInputPorts	      "2"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "y"
	      Position		      [290, 48, 320, 62]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Line {
	      SrcBlock		      "Compare"
	      SrcPort		      1
	      DstBlock		      "y"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      Points		      [0, 0; 30, 0]
	      Branch {
		Points			[0, 95]
		DstBlock		"FixPt\nData Type\nDuplicate"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Compare"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "u"
	      SrcPort		      1
	      Points		      [0, 0; 75, 0]
	      Branch {
		Points			[0, 100]
		DstBlock		"FixPt\nData Type\nDuplicate"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Compare"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Compare\nTo Zero"
	  Ports			  [1, 1]
	  Position		  [135, 215, 165, 245]
	  ShowName		  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  MaskType		  "Compare To Zero"
	  MaskDescription	  "Determine how a signal compares to zero."
	  MaskPromptString	  "Operator:|Output data type mode:"
	  MaskStyleString	  "popup(==|~=|<|<=|>=|>),popup(uint8|boolean)"
	  MaskTunableValueString  "on,on"
	  MaskCallbackString	  "|"
	  MaskEnableString	  "on,on"
	  MaskVisibilityString	  "on,on"
	  MaskToolTipString	  "on,on"
	  MaskVarAliasString	  ","
	  MaskVariables		  "relop=&1;LogicOutDataTypeMode=&2;"
	  MaskInitialization	  "blkName = gcb;\n\nif strcmp(get_param(gcbh,'LogicOutDataTypeMode'),'boolean')\n	setValue = 'Boolean';\nelse\n    setValue = 'Specify via dialog';\nend\n\nset_param([blkName,'/Compare'],'relop',relop, ...\n	'LogicOutDataTypeMode', setValue);"
	  MaskDisplay		  "disp([relop,' 0'])"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "normalized"
	  MaskValueString	  ">=|boolean"
	  MaskTabNameString	  ","
	  System {
	    Name		    "Compare\nTo Zero"
	    Location		    [585, 101, 1194, 328]
	    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		      [15, 28, 45, 42]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Compare"
	      Position		      [145, 16, 185, 89]
	      InputSameDT	      off
	      LogicOutDataTypeMode    "boolean"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "FixPt\nData Type\nDuplicate"
	      Ports		      [2]
	      Position		      [145, 118, 190, 182]
	      ShowName		      off
	      SourceBlock	      "simulink/Signal\nAttributes/Data Type\nDuplicate"
	      SourceType	      "Data Type Duplicate"
	      NumInputPorts	      "2"
	    }
	    Block {
	      BlockType		      Ground
	      Name		      "Ground"
	      Position		      [20, 60, 40, 80]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "y"
	      Position		      [270, 48, 300, 62]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Line {
	      SrcBlock		      "u"
	      SrcPort		      1
	      Points		      [0, 0; 75, 0]
	      Branch {
		DstBlock		"Compare"
		DstPort			1
	      }
	      Branch {
		Points			[0, 100]
		DstBlock		"FixPt\nData Type\nDuplicate"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Ground"
	      SrcPort		      1
	      Points		      [40, 0; 30, 0]
	      Branch {
		DstBlock		"Compare"
		DstPort			2
	      }
	      Branch {
		Points			[0, 95]
		DstBlock		"FixPt\nData Type\nDuplicate"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Compare"
	      SrcPort		      1
	      DstBlock		      "y"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Compare\nTo Zero1"
	  Ports			  [1, 1]
	  Position		  [135, 350, 165, 380]
	  ShowName		  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  MaskType		  "Compare To Zero"
	  MaskDescription	  "Determine how a signal compares to zero."
	  MaskPromptString	  "Operator:|Output data type mode:"
	  MaskStyleString	  "popup(==|~=|<|<=|>=|>),popup(uint8|boolean)"
	  MaskTunableValueString  "on,on"
	  MaskCallbackString	  "|"
	  MaskEnableString	  "on,on"
	  MaskVisibilityString	  "on,on"
	  MaskToolTipString	  "on,on"
	  MaskVarAliasString	  ","
	  MaskVariables		  "relop=&1;LogicOutDataTypeMode=&2;"
	  MaskInitialization	  "blkName = gcb;\n\nif strcmp(get_param(gcbh,'LogicOutDataTypeMode'),'boolean')\n	setValue = 'Boolean';\nelse\n    setValue = 'Specify via dialog';\nend\n\nset_param([blkName,'/Compare'],'relop',relop, ...\n	'LogicOutDataTypeMode', setValue);"
	  MaskDisplay		  "disp([relop,' 0'])"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "normalized"
	  MaskValueString	  "<|boolean"
	  MaskTabNameString	  ","
	  System {
	    Name		    "Compare\nTo Zero1"
	    Location		    [585, 101, 1194, 328]
	    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		      [15, 28, 45, 42]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Compare"
	      Position		      [145, 16, 185, 89]
	      Operator		      "<"
	      InputSameDT	      off
	      LogicOutDataTypeMode    "boolean"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "FixPt\nData Type\nDuplicate"
	      Ports		      [2]
	      Position		      [145, 118, 190, 182]
	      ShowName		      off
	      SourceBlock	      "simulink/Signal\nAttributes/Data Type\nDuplicate"
	      SourceType	      "Data Type Duplicate"
	      NumInputPorts	      "2"
	    }
	    Block {
	      BlockType		      Ground
	      Name		      "Ground"
	      Position		      [20, 60, 40, 80]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "y"
	      Position		      [270, 48, 300, 62]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Line {
	      SrcBlock		      "Compare"
	      SrcPort		      1
	      DstBlock		      "y"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Ground"
	      SrcPort		      1
	      Points		      [40, 0; 30, 0]
	      Branch {
		Points			[0, 95]
		DstBlock		"FixPt\nData Type\nDuplicate"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Compare"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "u"
	      SrcPort		      1
	      Points		      [0, 0; 75, 0]
	      Branch {
		Points			[0, 100]
		DstBlock		"FixPt\nData Type\nDuplicate"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Compare"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [270, 35, 300, 65]
	  ShowName		  off
	  Value			  "RC"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant1"
	  Position		  [295, 365, 325, 395]
	  ShowName		  off
	  Value			  "0"

⌨️ 快捷键说明

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