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

📄 switchinv.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Annotation {
	  Name			  "To obtain the Fourier decomposition of a pe"
"riodic signal:\na) run a simulation for one period duration\nb) Specify the f"
"undamental frequency\n    c) Specify the number of harmonics\n"
	  Position		  [187, 48]
	  FontSize		  12
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "info"
      Ports		      []
      Position		      [22, 253, 122, 344]
      ForegroundColor	      "darkGreen"
      DropShadow	      on
      ShowName		      off
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MaskDisplay	      "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
") )\ndisp('Info')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"info"
	Location		[40, 268, 670, 334]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Annotation {
	  Name			  "Adjusting the magnitude and frequency of th"
"e inverter output"
	  Position		  [288, 17]
	  ForegroundColor	  "blue"
	  FontSize		  12
	  FontWeight		  "bold"
	}
	Annotation {
	  Name			  "The magnitude and frequency of the 6-step p"
"ulse are specified in a callback placed in Model Properties"
	  Position		  [10, 40]
	  HorizontalAlignment	  "left"
	  VerticalAlignment	  "top"
	  FontSize		  12
	}
      }
    }
    Block {
      BlockType		      Gain
      Name		      "line"
      Position		      [400, 153, 440, 197]
      Gain		      "[1 -1 0;0 1 -1;-1 0 1]"
      Multiplication	      "Matrix(K*u)"
    }
    Block {
      BlockType		      Scope
      Name		      "lline to line\nvoltages"
      Ports		      [1]
      Position		      [475, 158, 505, 192]
      ForegroundColor	      "blue"
      Location		      [23, 109, 361, 379]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"AB   BC   CA"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.02"
      YMin		      "-1"
      YMax		      "1"
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Reference
      Name		      "num2bin"
      Ports		      [1, 1]
      Position		      [135, 87, 190, 143]
      SourceBlock	      "simulink/Look-Up\nTables/Direct Look-Up\nTable "
"(n-D)"
      SourceType	      "LookupNDDirect"
      maskTabDims	      "2"
      explicitNumDims	      "1"
      outDims		      "Column"
      tabIsInput	      off
      mxTable		      "[1 0 1;1 0 0;1 1 0;0 1 0;0 1 1;0 0 1;0 0 0;1 1 "
"1]'"
      clipFlag		      "Error"
    }
    Block {
      BlockType		      Constant
      Name		      "number of\nharmonics"
      Position		      [570, 305, 600, 335]
      BackgroundColor	      "orange"
      Value		      "30"
    }
    Block {
      BlockType		      Gain
      Name		      "phase"
      Position		      [400, 93, 440, 137]
      Gain		      "1/3*[2 -1 -1;-1 2 -1;-1 -1 2]"
      Multiplication	      "Matrix(K*u)"
    }
    Block {
      BlockType		      SubSystem
      Name		      "space vertor"
      Ports		      []
      Position		      [167, 250, 261, 340]
      ForegroundColor	      "orange"
      DropShadow	      on
      ShowName		      off
      OpenFcn		      "close all,figure(1),compass(vs),axis equal,titl"
"e('VOLTAGE SPACE VECTOR TRAJECTORY');figure(2),plot(fs(:,1),fs(:,2),'-g'),axi"
"s equal,grid,title('FLUX SPACE VECTOR TRAJECTORY')"
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MaskDisplay	      "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
") )\ndisp('Space\\nvectors')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"space vertor"
	Location		[83, 506, 530, 694]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      Scope
      Name		      "voltages to\nDC ground"
      Ports		      [3]
      Position		      [400, 43, 430, 77]
      ForegroundColor	      "blue"
      NamePlacement	      "alternate"
      Location		      [691, 443, 1124, 794]
      Open		      on
      NumInputPorts	      "3"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"AN"
	axes2			"BN"
	axes3			"CN"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
	axes3			""
      }
      TimeRange		      "0.02"
      YMin		      "0~0~0"
      YMax		      "1~1~1"
      SaveName		      "ScopeData3"
      DataFormat	      "StructureWithTime"
    }
    Line {
      SrcBlock		      "3/2"
      SrcPort		      1
      Points		      [-5, 0; 15, 0]
      Branch {
	DstBlock		"Demux1"
	DstPort			1
      }
      Branch {
	DstBlock		"ab\ncomponents"
	DstPort			1
      }
      Branch {
	Points			[0, 65]
	DstBlock		"K"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "number of\nharmonics"
      SrcPort		      1
      DstBlock		      "To Workspace1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux1"
      SrcPort		      2
      DstBlock		      "Real-Imag to\nComplex"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Demux1"
      SrcPort		      1
      Points		      [0, 0; 5, 0]
      Branch {
	DstBlock		"Real-Imag to\nComplex"
	DstPort			1
      }
      Branch {
	Points			[0, -30]
	DstBlock		"To Workspace3"
	DstPort			1
      }
    }
    Line {
      Name		      "BN"
      Labels		      [0, 0]
      SrcBlock		      "3 phase\ninverter"
      SrcPort		      2
      Points		      [0, 0; 20, 0]
      Branch {
	DstBlock		"Mux3"
	DstPort			2
      }
      Branch {
	Points			[0, -55]
	DstBlock		"voltages to\nDC ground"
	DstPort			2
      }
    }
    Line {
      Name		      "AN"
      Labels		      [0, 0]
      SrcBlock		      "3 phase\ninverter"
      SrcPort		      1
      Points		      [0, 0; 5, 0]
      Branch {
	DstBlock		"Mux3"
	DstPort			1
      }
      Branch {
	Points			[0, -40]
	DstBlock		"voltages to\nDC ground"
	DstPort			1
      }
    }
    Line {
      Name		      "CN"
      Labels		      [0, 0]
      SrcBlock		      "3 phase\ninverter"
      SrcPort		      3
      Points		      [0, 0; 30, 0]
      Branch {
	DstBlock		"Mux3"
	DstPort			3
      }
      Branch {
	Points			[0, -70]
	DstBlock		"voltages to\nDC ground"
	DstPort			3
      }
    }
    Line {
      SrcBlock		      "Mux3"
      SrcPort		      1
      Points		      [0, 0; 5, 0]
      Branch {
	DstBlock		"phase"
	DstPort			1
      }
      Branch {
	Points			[0, 60]
	DstBlock		"line"
	DstPort			1
      }
    }
    Line {
      Name		      "vs"
      Labels		      [0, 0]
      SrcBlock		      "Real-Imag to\nComplex"
      SrcPort		      1
      DstBlock		      "To Workspace2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "num2bin"
      SrcPort		      1
      DstBlock		      "Demux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      1
      DstBlock		      "3 phase\ninverter"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      2
      DstBlock		      "3 phase\ninverter"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      3
      DstBlock		      "3 phase\ninverter"
      DstPort		      3
    }
    Line {
      SrcBlock		      "phase"
      SrcPort		      1
      Points		      [0, 0; 10, 0]
      Branch {
	DstBlock		"3/2"
	DstPort			1
      }
      Branch {
	Points			[0, -55]
	DstBlock		"ABC phase\nvoltages"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "line"
      SrcPort		      1
      DstBlock		      "lline to line\nvoltages"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Manual Switch"
      SrcPort		      1
      DstBlock		      "num2bin"
      DstPort		      1
    }
    Line {
      SrcBlock		      "0to7"
      SrcPort		      1
      Points		      [10, 0; 0, -25]
      DstBlock		      "Manual Switch"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Repeating\nSequence"
      SrcPort		      1
      Points		      [10, 0; 0, 25]
      DstBlock		      "Manual Switch"
      DstPort		      1
    }
    Line {
      SrcBlock		      "K"
      SrcPort		      1
      DstBlock		      "Integrator"
      DstPort		      1
    }
    Line {
      Name		      "fs"
      Labels		      [1, 0]
      SrcBlock		      "Integrator"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	DstBlock		"To Workspace4"
	DstPort			1
      }
      Branch {
	Points			[0, 35]
	DstBlock		"flux"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "fo"
      SrcPort		      1
      Points		      [10, 0]
      DstBlock		      "Integrator"
      DstPort		      2
    }
    Annotation {
      Name		      "Switch-mode Inverter"
      Position		      [414, 328]
      ForegroundColor	      "red"
      FontName		      "Arial"
      FontSize		      22
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Six-step sequenced operation"
      Position		      [139, 28]
      ForegroundColor	      "green"
      FontSize		      16
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Single-step operation"
      Position		      [109, 198]
      ForegroundColor	      "green"
      FontSize		      16
      FontWeight	      "bold"
    }
  }
}

⌨️ 快捷键说明

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