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

📄 fluxctrl.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 2 页
字号:
	  }
	  Branch {
	    DstBlock		    "Switch"
	    DstPort		    3
	  }
	}
	Line {
	  SrcBlock		  "+Ud/2"
	  SrcPort		  1
	  Points		  [0, 0; 55, 0]
	  Branch {
	    Points		    [110, 0]
	    Branch {
	      Points		      [110, 0]
	      DstBlock		      "Switch2"
	      DstPort		      1
	    }
	    Branch {
	      DstBlock		      "Switch1"
	      DstPort		      1
	    }
	  }
	  Branch {
	    DstBlock		    "Switch"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      Gain
      Name		      "3/2"
      Position		      [480, 93, 520, 137]
      Gain		      "2/3*[1 -0.5 -0.5;0 sqrt(3)/2 -sqrt(3)/2]"
      Multiplication	      "Matrix(K*u)"
    }
    Block {
      BlockType		      Scope
      Name		      "ABC phase\nvoltages"
      Ports		      [1]
      Position		      [480, 43, 510, 77]
      ForegroundColor	      "blue"
      NamePlacement	      "alternate"
      Location		      [370, 134, 723, 403]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.02"
      YMin		      "-1"
      YMax		      "1"
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Demux
      Name		      "Demux"
      Ports		      [1, 3]
      Position		      [210, 79, 215, 151]
      BackgroundColor	      "black"
      ShowName		      off
      Outputs		      "3"
    }
    Block {
      BlockType		      Demux
      Name		      "Demux1"
      Ports		      [1, 2]
      Position		      [575, 94, 580, 136]
      BackgroundColor	      "black"
      ShowName		      off
      Outputs		      "2"
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator"
      Ports		      [1, 1]
      Position		      [610, 170, 640, 200]
      ShowName		      off
      InitialCondition	      "[0 0]"
      Port {
	PortNumber		1
	Name			"fs"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Manual Switch"
      Ports		      [2, 1]
      Position		      [90, 97, 120, 133]
      ShowName		      off
      SourceBlock	      "simulink/Signal\nRouting/Manual Switch"
      SourceType	      "Manual Switch"
      sw		      "0"
      action		      "0"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux3"
      Ports		      [3, 1]
      Position		      [365, 77, 370, 153]
      BackgroundColor	      "black"
      ShowName		      off
      Inputs		      "3"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      RealImagToComplex
      Name		      "Real-Imag to\nComplex"
      Ports		      [2, 1]
      Position		      [610, 94, 640, 136]
      ForegroundColor	      "blue"
      ShowName		      off
      Input		      "Real and imag"
      Port {
	PortNumber		1
	Name			"Fs"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Repeating\nSequence"
      Ports		      [0, 1]
      Position		      [25, 65, 55, 95]
      NamePlacement	      "alternate"
      SourceBlock	      "simulink/Sources/Repeating\nSequence"
      SourceType	      "Repeating table"
      rep_seq_t		      "[0 1*To 1*To 2*To  2*To  3*To 3*To 4*To 4*To 5*"
"To 5*To 6*To]"
      rep_seq_y		      "[0 0 1 1 2  2 3  3 4 4 5 5]"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace1"
      Position		      [665, 214, 685, 236]
      ShowName		      off
      VariableName	      "fs"
      MaxDataPoints	      "inf"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace2"
      Position		      [665, 104, 685, 126]
      ShowName		      off
      VariableName	      "vs"
      MaxDataPoints	      "inf"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace3"
      Position		      [615, 65, 635, 85]
      ShowName		      off
      VariableName	      "f"
      MaxDataPoints	      "inf"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      Scope
      Name		      "ab\ncomponents"
      Ports		      [1]
      Position		      [550, 43, 580, 77]
      ForegroundColor	      "blue"
      NamePlacement	      "alternate"
      Location		      [730, 132, 1121, 404]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.02"
      YMin		      "-1"
      YMax		      "1"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "flux"
      Ports		      [1]
      Position		      [665, 168, 695, 202]
      ForegroundColor	      "blue"
      NamePlacement	      "alternate"
      Location		      [730, 132, 1121, 404]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.02"
      YMin		      "-1"
      YMax		      "1"
      SaveName		      "ScopeData4"
      DataFormat	      "StructureWithTime"
    }
    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		      [25, 132, 363, 402]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      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		      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		      [157, 220, 251, 310]
      ForegroundColor	      "orange"
      DropShadow	      on
      ShowName		      off
      OpenFcn		      "close all,figure(1),compass(vs),axis equal,titl"
"e('SPACE VECTOR in stationary frame');figure(2),plot(fs(:,1),fs(:,2),'-r'),ax"
"is equal,grid,title('FLUX SPACE VECTOR TRAJECTORY')"
      FontName		      "Arial"
      FontSize		      11
      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, 469, 1124, 795]
      Open		      on
      NumInputPorts	      "3"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
	axes3			""
      }
      TimeRange		      "0.02"
      YMin		      "0~0~0"
      YMax		      "1~1~1"
      SaveName		      "ScopeData3"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Gain
      Name		      "wo"
      Position		      [555, 169, 585, 201]
    }
    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, 70]
	DstBlock		"wo"
	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		      "b"
      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		      "a"
      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		      "c"
      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		      "Fs"
      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		      "wo"
      SrcPort		      1
      DstBlock		      "Integrator"
      DstPort		      1
    }
    Line {
      Name		      "fs"
      Labels		      [0, 0]
      SrcBlock		      "Integrator"
      SrcPort		      1
      Points		      [0, 0; 5, 0]
      Branch {
	DstBlock		"flux"
	DstPort			1
      }
      Branch {
	DstBlock		"To Workspace1"
	DstPort			1
      }
    }
    Annotation {
      Name		      "Switch-mode Inverter"
      Position		      [414, 278]
      ForegroundColor	      "red"
      FontSize		      16
      FontWeight	      "bold"
    }
  }
}

⌨️ 快捷键说明

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