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

📄 m4_2_3.mdl

📁 电力电子仿真程序电力电子仿电力电子仿真程序真程序
💻 MDL
📖 第 1 页 / 共 5 页
字号:
		  SrcPort		  1
		  Points		  [30, 0]
		  Branch {
		    DstBlock		    "触发信号2"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 75]
		    DstBlock		    "Scope"
		    DstPort		    2
		  }
		}
		Line {
		  SrcBlock		  "Mux"
		  SrcPort		  1
		  DstBlock		  "Scope"
		  DstPort		  3
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [275, 33, 305, 47]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out2"
	      Position		      [275, 88, 305, 102]
	      Port		      "2"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out3"
	      Position		      [275, 138, 305, 152]
	      Port		      "3"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out4"
	      Position		      [275, 188, 305, 202]
	      Port		      "4"
	    }
	    Line {
	      SrcBlock		      "pwm"
	      SrcPort		      1
	      Points		      [45, 0; 0, -80]
	      Branch {
		Points			[0, -50]
		DstBlock		"Relational\nOperator"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Out2"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Relational\nOperator"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Relational\nOperator1"
	      SrcPort		      1
	      DstBlock		      "Out3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Pulse\nGenerator"
	      SrcPort		      1
	      Points		      [-5, 0; 35, 0]
	      Branch {
		Points			[0, -40]
		DstBlock		"Relational\nOperator"
		DstPort			1
	      }
	      Branch {
		Points			[0, 65]
		DstBlock		"Relational\nOperator1"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "pwm"
	      SrcPort		      2
	      Points		      [70, 0]
	      Branch {
		Points			[0, -45]
		DstBlock		"Relational\nOperator1"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Out4"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [310, 28, 340, 42]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out2"
	  Position		  [320, 73, 350, 87]
	  Port			  "2"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out3"
	  Position		  [325, 123, 355, 137]
	  Port			  "3"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out4"
	  Position		  [320, 163, 350, 177]
	  Port			  "4"
	}
	Line {
	  SrcBlock		  "Subsystem"
	  SrcPort		  1
	  Points		  [0, -50; 150, 0]
	  Branch {
	    DstBlock		    "Out1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 195]
	    DstBlock		    "Scope"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Subsystem"
	  SrcPort		  3
	  Points		  [80, 0]
	  Branch {
	    Points		    [170, 0]
	    DstBlock		    "Out3"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 165]
	    DstBlock		    "Scope"
	    DstPort		    3
	  }
	}
	Line {
	  SrcBlock		  "Subsystem"
	  SrcPort		  2
	  Points		  [0, -20; 110, 0]
	  Branch {
	    DstBlock		    "Out2"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 175]
	    DstBlock		    "Scope"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Subsystem"
	  SrcPort		  4
	  Points		  [0, 40; 35, 0]
	  Branch {
	    DstBlock		    "Out4"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 135]
	    DstBlock		    "Scope"
	    DstPort		    4
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Ud"
      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
      Ports		      [0, 1, 0, 0, 0, 2]
      Position		      [680, 263, 705, 287]
      AttributesFormatString  "\\n"
      AncestorBlock	      "powerlib/Measurements/Voltage Measurement"
      CopyFcn		      "powericon('psbloadfunction',gcbh,'Measurement B"
"lock','VerifyPhasor');"
      LoadFcn		      "powericon('psbloadfunction',gcbh,'Measurement B"
"lock','');"
      PreSaveFcn	      "powericon('psbloadfunction',gcbh,'ModelCloseFcn"
"','');"
      InitFcn		      "powericon('psbloadfunction',gcbh,'InitFcnOfSPSB"
"locks','Measurement Block');"
      CloseFcn		      "powericon('psbloadfunction',gcbh,'CloseFcn','')"
";"
      TreatAsAtomicUnit	      off
      MaskType		      "Voltage Measurement"
      MaskDescription	      "Ideal voltage measurement."
      MaskHelp		      "web(psbhelp);"
      MaskPromptString	      "Phasor simulation|Output signal :|Equivalent ci"
"rcuit"
      MaskStyleString	      "checkbox,popup(Complex|Real-Imag|Magnitude-Angl"
"e|Magnitude),edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString	      "off,off,off"
      MaskVisibilityString    "off,on,off"
      MaskToolTipString	      "on,on,on"
      MaskVarAliasString      ",,"
      MaskVariables	      "PhasorSimulation=@1;OutputType=@2;PSBequivalent"
"=@3;"
      MaskInitialization      "switch OutputType\ncase 1\n    OutputSelection "
"= 1;\n    NormalMode = 2;\n    PhasorMode = 1;\ncase 2\n    OutputSelection ="
"[2,3];\n    NormalMode = 3;\n    PhasorMode = [1,2];\ncase 3\n    OutputSelec"
"tion =[4,5];\n    NormalMode = 3;\n    PhasorMode = [1,2];\ncase 4\n    Outpu"
"tSelection =[4];\n    NormalMode = 2;\n    PhasorMode = 1;\nend\n%\nif Phasor"
"Simulation\n    SelectionMode = PhasorMode;\nelse\n    SelectionMode = Normal"
"Mode;\nend\n"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "port"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "off|Complex|1"
      Port {
	PortNumber		1
	Name			"负载电压"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
      System {
	Name			"Ud"
	Location		[206, 474, 665, 687]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [2, 1]
	  Position		  [275, 121, 280, 179]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Phasor Measurements"
	  Ports			  [1, 1, 1]
	  Position		  [145, 123, 250, 147]
	  BackgroundColor	  "green"
	  TreatAsAtomicUnit	  on
	  System {
	    Name		    "Phasor Measurements"
	    Location		    [255, 525, 861, 796]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "measure"
	      Position		      [70, 28, 100, 42]
	    }
	    Block {
	      BlockType		      EnablePort
	      Name		      "Enable"
	      Ports		      []
	      Position		      [20, 15, 40, 35]
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "180/pi"
	      Position		      [225, 105, 245, 125]
	      Gain		      "180/pi"
	    }
	    Block {
	      BlockType		      ComplexToMagnitudeAngle
	      Name		      "Complex to\nMagnitude-Angle"
	      Ports		      [1, 2]
	      Position		      [140, 85, 195, 125]
	      ShowName		      off
	      Output		      "Magnitude and angle"
	    }
	    Block {
	      BlockType		      ComplexToRealImag
	      Name		      "Complex to\nReal-Imag"
	      Ports		      [1, 2]
	      Position		      [140, 45, 195, 85]
	      ShowName		      off
	      Output		      "Real and imag"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux2"
	      Ports		      [5, 1]
	      Position		      [275, 23, 280, 127]
	      ShowName		      off
	      Inputs		      "5"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Selector"
	      Ports		      [1, 1]
	      Position		      [315, 51, 350, 99]
	      Elements		      "OutputSelection"
	      InputPortWidth	      "5"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "options"
	      Position		      [380, 68, 410, 82]
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Mux2"
	      SrcPort		      1
	      DstBlock		      "Selector"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "measure"
	      SrcPort		      1
	      Points		      [0, 0; 5, 0]
	      Branch {
		Points			[0, 30]
		Branch {
		  Points		  [0, 40]
		  DstBlock		  "Complex to\nMagnitude-Angle"
		  DstPort		  1
		}
		Branch {
		  DstBlock		  "Complex to\nReal-Imag"
		  DstPort		  1
		}
	      }
	      Branch {
		DstBlock		"Mux2"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Complex to\nReal-Imag"
	      SrcPort		      1
	      DstBlock		      "Mux2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Complex to\nReal-Imag"
	      SrcPort		      2
	      DstBlock		      "Mux2"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Complex to\nMagnitude-Angle"
	      SrcPort		      1
	      DstBlock		      "Mux2"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "Complex to\nMagnitude-Angle"
	      SrcPort		      2
	      DstBlock		      "180/pi"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "180/pi"
	      SrcPort		      1
	      DstBlock		      "Mux2"
	      DstPort		      5
	    }
	    Line {
	      SrcBlock		      "Selector"
	      SrcPort		      1
	      DstBlock		      "options"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Selector
	  Name			  "Selector"
	  Ports			  [1, 1]
	  Position		  [305, 128, 370, 172]
	  Elements		  "SelectionMode"
	  InputPortWidth	  "length(OutputSelection)+1"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Simulation method"
	  Position		  [140, 85, 250, 105]
	  Orientation		  "down"
	  BackgroundColor	  "magenta"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Value			  "PhasorSimulation"
	}
	Block {
	  BlockType		  PMComponent
	  Name			  "VoltageMeasurement"
	  Ports			  [0, 0, 0, 0, 0, 1, 1]
	  Position		  [80, 21, 145, 49]
	  PhysicalDomain	  "powersysdomain"
	  PortType		  "p1"
	  LConnTagsString	  "+"
	  RConnTagsString	  "-"
	  MaskType		  "InnerPowersysBlock"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "source"
	  Ports			  [0, 1]
	  Position		  [25, 124, 95, 146]
	  TreatAsAtomicUnit	  off
	  MaskInitialization	  "pss=powericon('loadsavedata','m3_2_3','load"
"');if isempty(pss),A=0;B=0;C=0;D=0;x0=0;Rswitch=0;TypeSwitch=0;Ts=0;YSwitchCu"
"rrent=-1;else,A=pss.A;B=pss.B;C=pss.C;D=pss.D;x0=pss.x0;Rswitch=pss.Rswitch;T"
"ypeSwitch=pss.TypeSwitch;Ts=0;YSwitchCurrent=pss.YSwitchCurrent;end"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "source"
	    Location		    [442, 172, 1084, 578]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      SubSystem
	      Name		      "IGBT"
	      Ports		      [1, 1]
	      Position		      [335, 279, 390, 311]
	      Orientation	      "left"
	      TreatAsAtomicUnit	      off
	      System {
		Name			"IGBT"
		Location		[35, 204, 549, 459]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In"
		  Position		  [20, 25, 45, 45]
		}
		Block {
		  BlockType		  Selector
		  Name			  "Selector"
		  Ports			  [1, 1]
		  Position		  [75, 20, 115, 50]
		  Elements		  "[5 6 7 8]"
		  InputPortWidth	  "10"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "froms"
		  Ports			  [0, 1]
		  Position		  [75, 74, 115, 106]
		  TreatAsAtomicUnit	  off
		  System {
		    Name		    "froms"
		    Location		    [5, 415, 371, 622]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "A4"
		    PaperUnits		    "centimeters"
		    ZoomFactor		    "100"
		    Block {

⌨️ 快捷键说明

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