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

📄 pwm2.mdl

📁 PWM 变频调速FFT分析 use the FFT tool of Powergui to display the frequency spectrum of voltage and current
💻 MDL
📖 第 1 页 / 共 4 页
字号:
      Ts		      "10e-6"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn"
      Position		      [440, 335, 500, 365]
      Expr		      "3.34e-4*u^2"
    }
    Block {
      BlockType		      Reference
      Name		      "Ground"
      Ports		      [0, 0, 0, 0, 0, 1]
      Position		      [39, 280, 61, 305]
      Orientation	      "down"
      ShowName		      off
      SourceBlock	      "powerlib/Elements/Ground"
      SourceType	      "Ground"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "a"
    }
    Block {
      BlockType		      Reference
      Name		      "Ground1"
      Ports		      [0, 0, 0, 0, 0, 1]
      Position		      [84, 280, 106, 305]
      Orientation	      "down"
      ShowName		      off
      SourceBlock	      "powerlib/Elements/Ground"
      SourceType	      "Ground"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "a"
    }
    Block {
      BlockType		      Reference
      Name		      "Machines\nMeasurement\nDemux"
      Ports		      [1, 3]
      Position		      [435, 232, 480, 288]
      NamePlacement	      "alternate"
      SourceBlock	      "powerlib/Machines/Machines\nMeasurement\nDemux"
      SourceType	      "Machine measurements"
      ShowPortLabels	      on
      machType		      "Asynchronous"
      ssm1		      on
      ssm2		      on
      ssm3		      on
      ssm4		      on
      ssm5		      on
      ssm6		      on
      sm1		      off
      sm2		      off
      sm3		      off
      sm4		      off
      sm5		      off
      sm6		      off
      sm7		      off
      sm8		      on
      sm9		      off
      sm10		      off
      sm11		      off
      sm115		      off
      sm12		      off
      sm13		      off
      sm14		      off
      asm1		      off
      asm2		      off
      asm3		      off
      asm4		      off
      asm5		      on
      asm6		      off
      asm7		      off
      asm8		      off
      asm9		      on
      asm10		      on
      asm11		      off
      pmsm1		      on
      pmsm2		      on
      pmsm3		      on
      pmsm4		      on
      pmsm5		      on
      pmsm6		      on
      lastType		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Multimeter"
      Ports		      [0, 1]
      Position		      [130, 326, 170, 364]
      SourceBlock	      "powerlib/Measurements/Multimeter"
      SourceType	      "MultimeterPSB"
      ShowPortLabels	      on
      PhasorSimulation	      off
      OutputType	      "Complex"
      sel		      "[1 2]"
      L			      "6"
      Gain		      "[1 1]"
      yselected		      "{'Isw1: Universal Bridge','Isw2: Universal Brid"
"ge'};"
      PSBOutputType	      "1"
      PSBequivalent	      "0"
      AxesSetting	      "[0,0.1,-100,100]"
      Display		      "0"
      SavedBlockNames	      "-11"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [2]
      Position		      [560, 57, 600, 148]
      Floating		      off
      Location		      [365, 483, 689, 722]
      Open		      off
      NumInputPorts	      "2"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      YMin		      "-5~-5"
      YMax		      "5~5"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope2"
      Ports		      [4]
      Position		      [560, 199, 600, 291]
      Floating		      off
      Location		      [1, 45, 1017, 731]
      Open		      off
      NumInputPorts	      "4"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
	axes4			"%<SignalLabel>"
      }
      TimeRange		      "0.3"
      YMin		      "-5~-5~-5~-5"
      YMax		      "5~5~5~5"
      SaveToWorkspace	      on
      SaveName		      "ASM"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope3"
      Ports		      [1]
      Position		      [205, 309, 245, 401]
      Floating		      off
      Location		      [-3, 41, 1021, 735]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Selector
      Name		      "Selector"
      Ports		      [1, 1]
      Position		      [436, 155, 504, 190]
      Orientation	      "up"
      NamePlacement	      "alternate"
      InputPortWidth	      "3"
    }
    Block {
      BlockType		      Reference
      Name		      "Universal Bridge"
      Ports		      [1, 0, 0, 0, 0, 3, 2]
      Position		      [115, 152, 170, 228]
      Orientation	      "left"
      FontSize		      10
      SourceBlock	      "powerlib/Power\nElectronics/Universal Bridge"
      SourceType	      "Universal Bridge"
      ShowPortLabels	      on
      Arms		      "3"
      SnubberResistance	      "1e5"
      SnubberCapacitance      "inf"
      Device		      "IGBT / Diodes"
      Ron		      "1e-3"
      Lon		      "0"
      ForwardVoltages	      "[  0  0  ]"
      ForwardVoltage	      "0"
      GTOparameters	      "[ 10e-6 , 20e-6 ]"
      IGBTparameters	      "[ 1e-6 , 1e-6 ]"
      Measurements	      "Device currents"
      converterType	      "Rectifier"
    }
    Block {
      BlockType		      Reference
      Name		      "Vab"
      Ports		      [0, 1, 0, 0, 0, 2]
      Position		      [230, 103, 255, 127]
      SourceBlock	      "powerlib/Measurements/Voltage Measurement"
      SourceType	      "Voltage Measurement"
      ShowPortLabels	      on
      PhasorSimulation	      off
      OutputType	      "Complex"
      PSBequivalent	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "powergui"
      Ports		      []
      Position		      [100, 20, 160, 44]
      AncestorBlock	      "powerlib/powergui"
      CopyFcn		      "powergui('Copy_Callback',gcb,0,[]);"
      DeleteFcn		      "powergui('Copy_Callback',gcb,1,[]);powergui('Cl"
"ose_Callback',gcb,[],[]);\n                                                  "
"                      "
      ModelCloseFcn	      "powergui('Close_Callback',gcb,[],[]);"
      PreSaveFcn	      "try                              \nclose(get_pa"
"ram(gcbh,'userdata'))\nend                              "
      NameChangeFcn	      "handles = get_param(gcb,'UserData');if ~isempty"
"(handles);delete(handles.powergui);end"
      OpenFcn		      "if (power_openblockproxy ('secondary'))\npowerg"
"ui(gcb,'PM')\nend;"
      FontSize		      11
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      MaskType		      "PSB option menu block"
      MaskHelp		      "web(psbhelp)"
      MaskPromptString	      "General parameter: Simulation Mode |General par"
"ameter: Sample Time|General parameter: Echo  Messages|Initial electrical stat"
"es status|Impedance tool: Frequency Range|Impedance tool: Log impedance|Imped"
"ance tool: log Frequency|Impedance tool: grid|Impedance tool: Save Data To Wo"
"rkspace|Impedance tool: Variable Name|Structure Name (PSBFFTSCOPE)|ZoomFFT (P"
"SBFFTSCOPE)|Start Time (PSBFFTSCOPE)|Cycles (PSBFFTSCOPE)|Display style (PSBF"
"FTSCOPE)|Fundamental (PSBFFTSCOPE)|Frequency Axis (PSBFFTSCOPE)|Max Frequency"
" (PSBFFTSCOPE)|Frequency indice  (PSBLOADFLOW)|Frequency indice (STEADYSTATE)"
"|RMS display (STEADYSTATE)|Display Results|Sample time (s):  |General paramet"
"er: phasor frequency|Phasor simulation"
      MaskStyleString	      "popup(Continuous|Discrete|Phasor),edit,checkbox"
",popup(blocks|steady|zero),edit,checkbox,checkbox,checkbox,checkbox,edit,edit"
",checkbox,edit,edit,edit,edit,checkbox,edit,edit,edit,edit,checkbox,edit,edit"
",checkbox"
      MaskTunableValueString  "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on"
      MaskCallbackString      "||||||||||||||||||||||||"
      MaskEnableString	      "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,off,off,off,off,off,off,off,off,off"
",off,off,off,off,off,off,off,off,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,,,,,,,,,,,,,,,,,,"
      MaskVariables	      "SimulationMode=@1;SampleTime=@2;echomessages=@3"
";x0status=@4;Frange=@5;Ylog=@6;Xlog=@7;ShowGrid=@8;save=@9;variable=&10;struc"
"ture=&11;ZoomFFT=@12;StartTime=@13;cycles=@14;DisplayStyle=&15;fundamental=@1"
"6;FreqAxis=@17;MaxFrequency=@18;frequencyindice=@19;frequencyindicesteady=@20"
";RmsSteady=@21;display=@22;Ts=@23;frequency=@24;methode=@25;"
      MaskInitialization      "powerlibroot = which('powersysdomain');\nPSBroo"
"t = powerlibroot(1:end-16);\n%\nswitch SimulationMode\n	case 1\n"
"		message=sprintf('Continuous');\n	case 2\n        messa"
"ge=sprintf('Discrete,\\nTs = %.4g s.',SampleTime);\n	case 3\n	"
"	message=sprintf('Phasors');\nend\nif strcmp(bdroot,'powerlib')\n  mes"
"sage='powergui';\nend\npower_initmask();"
      MaskDisplay	      "disp(message)"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "Discrete|10e-6|off|blocks|[0:2:500]|off|on|off|"
"off|ZData|ASM|on|0.7|2|1|60|on|5000|1|1|1|off|0|60|off"
      MaskTabNameString	      ",,,,,,,,,,,,,,,,,,,,,,,,"
      System {
	Name			"powergui"
	Location		[137, 405, 682, 583]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  SubSystem
	  Name			  "EquivalentModel1"
	  Ports			  []
	  Position		  [15, 70, 143, 105]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskHideContents	  off
	  MaskInitialization	  "SPS = get_param(gcbh,'UserData');\nif isemp"
"ty(SPS)\n	Ts=1;\n    A=0;\n    B=0;\n    C=0;\n    D=0;\n    x0=0;\n  "
"  SwitchResistance=1;\n    SwitchType=1;\n    SwitchGateInitialValue=1;\n    "
"OutputsToResetToZero=1;\nelse\n	Ts=SPS.fixedstep;\n	A=SPS.Adisc"
"rete;\n    B=SPS.Bdiscrete;\n    C=SPS.Cdiscrete;\n    D=SPS.Ddiscrete;\n    "
"x0=SPS.x0discrete;\n    SwitchResistance=SPS.SwitchResistance;\n    SwitchTyp"
"e=SPS.SwitchType;\n    SwitchGateInitialValue=SPS.SwitchGateInitialValue;\n  "
"  OutputsToResetToZero=SPS.YSwitchCurrent;\nend"
	  MaskDisplay		  "color('orange')\ndisp('EQUIVALENT CIRCUIT')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "EquivalentModel1"
	    Location		    [279, 434, 958, 675]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      SubSystem
	      Name		      "Gates"
	      Ports		      [0, 1]
	      Position		      [15, 112, 80, 138]
	      FontName		      "Arial"
	      FontSize		      14
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskHideContents	      off
	      System {
		Name			"Gates"
		Location		[20, 127, 741, 886]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  From
		  Name			  "From1"
		  Position		  [15, 21, 85, 49]
		  GotoTag		  "tp173754"
		}
		Block {
		  BlockType		  Mux
		  Name			  "Mux"
		  Ports			  [1, 1]
		  Position		  [325, 270, 330, 610]
		  ShowName		  off
		  Inputs		  "1"
		  DisplayOption		  "bar"
		}
		Block {
		  BlockType		  Outport
		  Name			  "gates"
		  Position		  [390, 433, 420, 447]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "Mux"
		  SrcPort		  1
		  DstBlock		  "gates"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "From1"
		  SrcPort		  1
		  DstBlock		  "Mux"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Sources"
	      Ports		      [0, 1]
	      Position		      [15, 51, 80, 79]
	      FontName		      "Arial"
	      FontSize		      14
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskHideContents	      off
	      System {
		Name			"Sources"
		Location		[20, 127, 741, 789]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  From
		  Name			  "From1"
		  Position		  [15, 21, 85, 49]
		  GotoTag		  "tp175873"
		}
		Block {
		  BlockType		  From
		  Name			  "From2"
		  Position		  [15, 66, 85, 94]
		  GotoTag		  "tp195150"
		}
		Block {
		  BlockType		  From
		  Name			  "From3"
		  Position		  [15, 111, 85, 139]
		  GotoTag		  "tp320457"
		}
		Block {
		  BlockType		  Mux
		  Name			  "Mux"
		  Ports			  [3, 1]
		  Position		  [325, 270, 330, 610]
		  ShowName		  off
		  Inputs		  "[6 2 1]"

⌨️ 快捷键说明

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