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

📄 buck_pwm.mdl

📁 BUCK---PWM电路仿真
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant2"
	  Position		  [35, 255, 65, 285]
	  ShowName		  off
	  Value			  "mode"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type Conversion"
	  Position		  [255, 250, 310, 280]
	  ShowName		  off
	  OutDataTypeMode	  "double"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  RndMeth		  "Floor"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type Conversion1"
	  Position		  [250, 320, 305, 350]
	  ShowName		  off
	  OutDataTypeMode	  "double"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  RndMeth		  "Floor"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [510, 320, 540, 350]
	  ShowName		  off
	  Gain			  "1/L"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain2"
	  Position		  [520, 365, 550, 395]
	  Orientation		  "left"
	  ShowName		  off
	  Gain			  "RL"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain4"
	  Position		  [565, 215, 595, 245]
	  ShowName		  off
	  Gain			  "RC"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "IL"
	  Ports			  [1, 1]
	  Position		  [585, 320, 615, 350]
	  LimitOutput		  on
	  LowerSaturationLimit	  "0"
	  Port {
	    PortNumber		    1
	    Name		    "iL"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator"
	  Ports			  [2, 1]
	  Position		  [200, 247, 230, 278]
	  ShowName		  off
	  Operator		  "OR"
	  AllPortsSameDT	  off
	  OutDataTypeMode	  "boolean"
	  LogicDataType		  "double"
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator1"
	  Ports			  [2, 1]
	  Position		  [200, 317, 230, 348]
	  ShowName		  off
	  Operator		  "OR"
	  AllPortsSameDT	  off
	  OutDataTypeMode	  "boolean"
	  LogicDataType		  "double"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [525, 52, 545, 83]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "*/"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  RndMeth		  "Floor"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product2"
	  Ports			  [2, 1]
	  Position		  [395, 92, 415, 123]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "/*"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  RndMeth		  "Floor"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product3"
	  Ports			  [2, 1]
	  Position		  [490, 147, 510, 178]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  RndMeth		  "Floor"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product4"
	  Ports			  [2, 1]
	  Position		  [610, 87, 630, 118]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  RndMeth		  "Floor"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product5"
	  Ports			  [2, 1]
	  Position		  [205, 372, 225, 403]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  RndMeth		  "Floor"
	  Port {
	    PortNumber		    1
	    Name		    "Is"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum2"
	  Ports			  [2, 1]
	  Position		  [640, 220, 660, 240]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "++|"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  Port {
	    PortNumber		    1
	    Name		    "Vo"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum3"
	  Ports			  [3, 1]
	  Position		  [445, 325, 465, 345]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "-+-"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  Port {
	    PortNumber		    1
	    Name		    "vL"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum5"
	  Ports			  [2, 1]
	  Position		  [340, 90, 360, 110]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "++|"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum6"
	  Ports			  [2, 1]
	  Position		  [430, 160, 450, 180]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|+-"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum7"
	  Ports			  [2, 1]
	  Position		  [555, 155, 575, 175]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "-+|"
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  Port {
	    PortNumber		    1
	    Name		    "Ic"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch1"
	  Position		  [375, 242, 395, 288]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Threshold		  "0.5"
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch2"
	  Position		  [365, 147, 385, 193]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Threshold		  "0.5"
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch3"
	  Position		  [360, 312, 380, 358]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Threshold		  "0.5"
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Vc"
	  Ports			  [1, 1]
	  Position		  [610, 15, 640, 45]
	  Orientation		  "left"
	  Port {
	    PortNumber		    1
	    Name		    "Vc"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "y"
	  Position		  [770, 233, 800, 247]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  "Bus\nCreator"
	  SrcPort		  1
	  DstBlock		  "y"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Data Type Conversion1"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    DstBlock		    "Switch3"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 0; 0, 25; -85, 0]
	    DstBlock		    "Product5"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Data Type Conversion"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    DstBlock		    "Switch1"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, -95]
	    DstBlock		    "Switch2"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Gain1"
	  SrcPort		  1
	  DstBlock		  "IL"
	  DstPort		  1
	}
	Line {
	  Name			  "vL"
	  Labels		  [0, 0]
	  SrcBlock		  "Sum3"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    Points		    [0, -30; 210, 0; 0, -65]
	    DstBlock		    "Bus\nCreator"
	    DstPort		    4
	  }
	  Branch {
	    DstBlock		    "Gain1"
	    DstPort		    1
	  }
	}
	Line {
	  Name			  "iL"
	  Labels		  [0, 0]
	  SrcBlock		  "IL"
	  SrcPort		  1
	  Points		  [20, 0; 0, 45]
	  Branch {
	    Points		    [60, 0; 0, -125]
	    DstBlock		    "Bus\nCreator"
	    DstPort		    5
	  }
	  Branch {
	    DstBlock		    "Gain2"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 35; -385, 0]
	    Branch {
	      Points		      [-230, 0; 0, -260]
	      DstBlock		      "Switch2"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, -20]
	      DstBlock		      "Product5"
	      DstPort		      2
	    }
	  }
	}
	Line {
	  SrcBlock		  "Ro"
	  SrcPort		  1
	  Points		  [0, 0; 10, 0]
	  Branch {
	    DstBlock		    "Sum5"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 15]
	    DstBlock		    "Product2"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [45, 0]
	  DstBlock		  "Sum5"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain2"
	  SrcPort		  1
	  Points		  [-60, 0]
	  DstBlock		  "Sum3"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Switch3"
	  SrcPort		  1
	  DstBlock		  "Sum3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Switch1"
	  SrcPort		  1
	  Points		  [55, 0]
	  DstBlock		  "Sum3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Logical\nOperator"
	  SrcPort		  1
	  DstBlock		  "Data Type Conversion"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  Points		  [5, 0; 0, -30]
	  Branch {
	    DstBlock		    "Switch3"
	    DstPort		    3
	  }
	  Branch {
	    Points		    [0, -70]
	    Branch {
	      DstBlock		      "Switch1"
	      DstPort		      3
	    }
	    Branch {
	      Points		      [0, -95]
	      DstBlock		      "Switch2"
	      DstPort		      3
	    }
	  }
	}
	Line {
	  SrcBlock		  "Vs"
	  SrcPort		  1
	  Points		  [45, 0]

⌨️ 快捷键说明

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