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

📄 fullbridgeinverter.mdl

📁 采用极点配置的电压电流双PI闭环PWM逆变器仿真
💻 MDL
📖 第 1 页 / 共 5 页
字号:
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [215, 48, 245, 62]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "In1"
		  SrcPort		  1
		  DstBlock		  "Demux"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Bus\nCreator1"
		  SrcPort		  1
		  DstBlock		  "Out1"
		  DstPort		  1
		}
		Line {
		  Name			  "Switch current"
		  Labels		  [0, 0]
		  SrcBlock		  "Demux"
		  SrcPort		  1
		  DstBlock		  "Bus\nCreator1"
		  DstPort		  1
		}
		Line {
		  Name			  "Switch voltage"
		  Labels		  [0, 0]
		  SrcBlock		  "Demux"
		  SrcPort		  2
		  DstBlock		  "Bus\nCreator1"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [2, 1]
	      Position		      [540, 135, 545, 215]
	      ShowName		      off
	      Inputs		      "2"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch"
	      Position		      [365, 105, 395, 205]
	      Threshold		      "0.5"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Ground
	      Name		      "itail"
	      Position		      [345, 305, 365, 325]
	      ForegroundColor	      "red"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "iSwitch"
	      Position		      [465, 68, 495, 82]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "m"
	      Position		      [705, 168, 735, 182]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "vf"
	      Position		      [445, 345, 460, 375]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "gate"
	      Position		      [405, 33, 435, 47]
	      Port		      "4"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "iTail"
	      Position		      [445, 305, 460, 335]
	      ForegroundColor	      "red"
	      NamePlacement	      "alternate"
	      Port		      "5"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "gate "
	      SrcPort		      1
	      DstBlock		      "Data Type Conversion"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Switch"
	      SrcPort		      1
	      Points		      [0, 0; 35, 0]
	      Branch {
		Points			[0, -80]
		DstBlock		"iSwitch"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Mux"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "Measurement list"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "0 4"
	      SrcPort		      1
	      DstBlock		      "Switch"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "1/Rsw"
	      SrcPort		      1
	      DstBlock		      "Switch"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Uswitch"
	      SrcPort		      1
	      Points		      [0, 0; 45, 0]
	      Branch {
		DstBlock		"1/Rsw"
		DstPort			1
	      }
	      Branch {
		Points			[0, 130; 410, 0; 0, -55]
		DstBlock		"Mux"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Data Type Conversion"
	      SrcPort		      1
	      DstBlock		      "gate"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "status"
	      SrcPort		      1
	      DstBlock		      "Switch"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Measurement list"
	      SrcPort		      1
	      DstBlock		      "m"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "itail"
	      SrcPort		      1
	      Points		      [30, 0]
	      Branch {
		Points			[25, 0; 0, 5]
		DstBlock		"iTail"
		DstPort			1
	      }
	      Branch {
		Points			[0, 45]
		DstBlock		"vf"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "C"
	  Position		  [25, 28, 55, 42]
	  BackgroundColor	  "yellow"
	  Port			  "1"
	  Side			  "Left"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "E"
	  Position		  [195, 28, 225, 42]
	  Orientation		  "left"
	  BackgroundColor	  "yellow"
	  Port			  "2"
	  Side			  "Right"
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "Mosfet"
	  SrcPort		  RConn1
	  DstBlock		  "E"
	  DstPort		  RConn1
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "C"
	  SrcPort		  RConn1
	  Points		  [0, 0]
	  DstBlock		  "Mosfet"
	  DstPort		  LConn1
	}
	Line {
	  SrcBlock		  "g"
	  SrcPort		  1
	  DstBlock		  "model"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "model"
	  SrcPort		  2
	  DstBlock		  "Bus\nSelector"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "model"
	  SrcPort		  4
	  DstBlock		  "Goto"
	  DstPort		  1
	}
	Line {
	  Labels		  [0, 0]
	  SrcBlock		  "model"
	  SrcPort		  5
	  DstBlock		  "ITAIL"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Uswitch"
	  SrcPort		  1
	  DstBlock		  "model"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Status"
	  SrcPort		  1
	  DstBlock		  "model"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "model"
	  SrcPort		  1
	  DstBlock		  "ISWITCH"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "model"
	  SrcPort		  3
	  DstBlock		  "VF"
	  DstPort		  1
	}
	Line {
	  Name			  "<Switch voltage>"
	  Labels		  [0, 0]
	  SrcBlock		  "Bus\nSelector"
	  SrcPort		  1
	  DstBlock		  "Scope3"
	  DstPort		  1
	}
	Line {
	  Name			  "<Switch current>"
	  Labels		  [0, 0]
	  SrcBlock		  "Bus\nSelector"
	  SrcPort		  2
	  DstBlock		  "Scope3"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "IGBT2_4"
      Ports		      [1, 0, 0, 0, 0, 1, 1]
      Position		      [411, 450, 449, 495]
      Orientation	      "down"
      BackgroundColor	      "yellow"
      NamePlacement	      "alternate"
      SourceBlock	      "powerlib/Power\nElectronics/IGBT//Diode"
      SourceType	      "IGBT/Diode"
      ShowPortLabels	      on
      Ron		      "1e-3"
      Rs		      "1e5"
      Cs		      "inf"
      Measurements	      off
    }
    Block {
      BlockType		      Reference
      Name		      "L"
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [545, 330, 575, 340]
      SourceBlock	      "powerlib/Elements/Series RLC Branch"
      SourceType	      "Series RLC Branch"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "__new0"
      RConnTagsString	      "__new0"
      BranchType	      "L"
      Resistance	      "1"
      Inductance	      "1e-3"
      SetiL0		      off
      InitialCurrent	      "0"
      Capacitance	      "1e-6"
      Setx0		      off
      InitialVoltage	      "0"
      Measurements	      "Branch voltage and current"
    }
    Block {
      BlockType		      Reference
      Name		      "Multimeter"
      Ports		      [0, 1]
      Position		      [520, 546, 560, 584]
      SourceBlock	      "powerlib/Measurements/Multimeter"
      SourceType	      "MultimeterPSB"
      ShowPortLabels	      on
      PhasorSimulation	      off
      OutputType	      "Complex"
      sel		      "[1 3 2 4]"
      L			      "4"
      Gain		      "[1 1 1 1]"
      yselected		      "{'Ub: C','Ib: C','Ub: L','Ib: L'};"
      PSBOutputType	      "1"
      PSBequivalent	      "0"
      AxesSetting	      "[0,0.1,-100,100]"
      Display		      "1"
      SavedBlockNames	      "-11"
    }
    Block {
      BlockType		      SubSystem
      Name		      "PWM Generator"
      Ports		      [1, 1]
      Position		      [260, 166, 365, 224]
      Orientation	      "left"
      AncestorBlock	      "powerlib_extras/Control \nBlocks/PWM Generator"
      OpenFcn		      "power_openblockproxy()"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      MaskType		      "PWM Generator"
      MaskDescription	      "This block generates pulses for carrier-based P"
"WM (Pulse Width Modulation), self-commutated IGBTs,GTOs or FETs bridges.\n\nD"
"epending on the number of bridge arms selected in the \"Generator Mode\" para"
"meter, the block can be used either for single-phase or three-phase PWM contr"
"ol.\n\nPress Help for details on input(s) and outputs.\n\nSee psb1phPWM and p"
"sb3phPWM demos respectively  for application examples of single-phase and thr"
"ee-phase inverters using the discrete version of this block.\n\n "
      MaskHelp		      "web(psbhelp)"
      MaskPromptString	      "Generator Mode|Carrier frequency (Hz):|Internal"
" generation of modulating signal(s)|Modulation index  (0<m<1) :|Frequency of "
"output voltage (Hz)|Phase of output voltage (degrees)"
      MaskStyleString	      "popup(1-arm  bridge (2 pulses)|2-arm  bridge (4"
" pulses)|3-arm  bridge (6 pulses)|Double 3-arm  bridges (12 pulses)),edit,che"
"ckbox,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on"
      MaskCallbackString      "||p3=get_param(gcb,'Internal');if strcmp(p3,'on"
"');visible={'on','on','on','on','on','on'};else;visible={'on','on','on','off'"
",'off','off'};end;set_param(gcb,'MaskVisibilities',visible)|||"
      MaskEnableString	      "on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,off,off,off"
      MaskToolTipString	      "on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,"
      MaskVariables	      "GeneratorMode=@1;Fc=@2;Internal=@3;mIndex=@4;Fr"
"eq=@5;Phase=@6;"
      MaskInitialization      "if Freq==0\n    Phase=90;\nend\nswitch Generato"
"rMode\ncase 1,\n    Internal_Phase=0;\n   Signal_PortWidth=1;\n   Select1_Ele"
"ments=[1 2];\n   Select1_PortWidth=2;\n   Select3_Elements=[1 2];\n   Select3"
"_PortWidth=4;\ncase 2,\n    Internal_Phase=0;\n    Signal_PortWidth=1;\n    S"
"elect1_Elements=[1 2];\n    Select1_PortWidth=2;\n    Select3_Elements=[1 2 3"
" 4];\n    Select3_PortWidth=4;\ncase 3,\n    Internal_Phase=[0 -2*pi/3 2*pi/3"
"];\n    Signal_PortWidth=3;\n    Select1_Elements=[1 4 2 5 3 6];\n    Select1"
"_PortWidth=6;\n   Select3_Elements=[1 2 3 4 5 6];\n   Select3_PortWidth=12;\n"
"case 4,\n    Internal_Phase=[0 -2*pi/3 2*pi/3];\n    Signal_PortWidth=3;\n   "
" Select1_Elements=[1 4 2 5 3 6];\n    Select1_PortWidth=6;\n   Select3_Elemen"
"ts=[1 2 3 4 5 6 7 8 9 10 11 12];\n   Select3_PortWidth=12;\nend\npower_initma"
"sk();"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "2-arm  bridge (4 pulses)|20000|off|0.8|50|0"
      MaskTabNameString	      ",,,,,"
      System {
	Name			"PWM Generator"
	Location		[-7, 82, 948, 656]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Signal(s)"
	  Position		  [105, 363, 135, 377]
	  IconDisplay		  "Port number"
	  PortDimensions	  "Signal_PortWidth"
	}
	Block {
	  BlockType		  Logic
	  Name			  "BL4"
	  Ports			  [1, 1]
	  Position		  [645, 269, 675, 291]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Operator		  "NOT"
	  Inputs		  "1"
	}
	Block {
	  BlockType		  Logic
	  Name			  "BL5"
	  Ports			  [1, 1]
	  Position		  [645, 374, 675, 396]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Operator		  "NOT"
	  Inputs		  "1"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [35, 275, 155, 305]
	  ShowName		  off
	  Value			  "Internal_Phase"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant1"
	  Position		  [295, 329, 340, 351]
	  ShowName		  off
	  Value			  "Internal"
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type \nConversion"
	  Position		  [867, 350, 893, 370]
	  Orientation		  "down"
	  BackgroundColor	  "cyan"
	  ShowName		  off
	  OutDataTypeMode	  "double"

⌨️ 快捷键说明

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