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

📄 imeqvec0.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	  }
	}
	Line {
	  SrcBlock		  "wm"
	  SrcPort		  1
	  Points		  [30, 0]
	  DstBlock		  "Sum4"
	  DstPort		  2
	}
	Annotation {
	  Position		  [243, 297]
	  ForegroundColor	  "red"
	  Text			  "ROTOR"
	  FontSize		  12
	}
	Annotation {
	  Position		  [238, 86]
	  ForegroundColor	  "red"
	  Text			  "STATOR"
	  FontSize		  12
	}
	Annotation {
	  Position		  [337, 79]
	  Text			  "fs"
	}
	Annotation {
	  Position		  [335, 294]
	  Text			  "fr"
	}
	Annotation {
	  Position		  [520, 105]
	  Text			  "is"
	}
	Annotation {
	  Position		  [490, 120]
	  Text			  "is"
	}
      }
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator2"
      Ports		      [1, 1]
      Position		      [500, 105, 530, 135]
      ShowName		      off
      ExternalReset	      "none"
      InitialConditionSource  "internal"
      InitialCondition	      "n0"
      LimitOutput	      off
      UpperSaturationLimit    "inf"
      LowerSaturationLimit    "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      AbsoluteTolerance	      "auto"
      Port {
	PortNumber		1
	Name			"wm"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
      }
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator3"
      Ports		      [1, 1]
      Position		      [200, 295, 230, 325]
      ShowName		      off
      ExternalReset	      "none"
      InitialConditionSource  "internal"
      InitialCondition	      "0"
      LimitOutput	      off
      UpperSaturationLimit    "inf"
      LowerSaturationLimit    "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      AbsoluteTolerance	      "auto"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [3, 1]
      Position		      [395, 259, 400, 321]
      ShowName		      off
      Inputs		      "3"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux6"
      Ports		      [2, 1]
      Position		      [435, 31, 440, 84]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux7"
      Ports		      [2, 1]
      Position		      [520, 221, 525, 274]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum2"
      Ports		      [3, 1]
      Position		      [375, 110, 395, 130]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "-+-"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Lookup
      Name		      "Torque pulse"
      Position		      [80, 30, 110, 60]
      InputValues	      "[0 0.1 0.1 0.5 0.5 2] "
      OutputValues	      "[Tl0 Tl0  0 0 0.5 0.5] "
      Port {
	PortNumber		1
	Name			"Tl"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
      }
    }
    Block {
      BlockType		      Scope
      Name		      "currents"
      Ports		      [1]
      Position		      [555, 228, 585, 272]
      Floating		      off
      Location		      [18, 95, 446, 380]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"Stator current [pu]"
      }
      Grid		      "on"
      TimeRange		      "1"
      YMin		      "-1"
      YMax		      "1"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Constant
      Name		      "frequency"
      Position		      [40, 140, 70, 170]
      Value		      "wk"
      VectorParams1D	      on
    }
    Block {
      BlockType		      Fcn
      Name		      "ias"
      Position		      [425, 275, 465, 305]
      Expr		      "u(1)*cos(u(3))-u(2)*sin(u(3))"
      Port {
	PortNumber		1
	Name			"ias"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
      }
    }
    Block {
      BlockType		      Fcn
      Name		      "mag"
      Position		      [420, 179, 460, 211]
      Expr		      "sqrt(u(1)^2+u(2)^2)"
      Port {
	PortNumber		1
	Name			"Is_mag"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
      }
    }
    Block {
      BlockType		      Scope
      Name		      "mec"
      Ports		      [2]
      Position		      [630, 49, 665, 96]
      NamePlacement	      "alternate"
      Floating		      off
      Location		      [455, 87, 997, 731]
      Open		      on
      NumInputPorts	      "2"
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"torque [pu]"
	axes2			"speed [pu]"
      }
      Grid		      "on"
      TimeRange		      "1"
      YMin		      "-0.3~0.98"
      YMax		      "1~1.015"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "space vector"
      Ports		      []
      Position		      [452, 360, 520, 426]
      ForegroundColor	      "orange"
      DropShadow	      on
      ShowName		      off
      OpenFcn		      "close all,figure(1),plot(wm,Te,'-r'),grid,title"
"('TORQUE-SPEED CHARACTERISTICS'),xlabel('SPEED [pu]'),ylabel('TORQUE [pu]')"
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskDisplay	      "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
") )\ndisp('XY plots')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"space vector"
	Location		[81, 508, 528, 696]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
      }
    }
    Block {
      BlockType		      Constant
      Name		      "vds1"
      Position		      [530, 145, 560, 175]
      Orientation	      "left"
      ShowName		      off
      Value		      "0"
      VectorParams1D	      on
    }
    Block {
      BlockType		      Constant
      Name		      "voltage"
      Position		      [40, 90, 70, 120]
      Value		      "[vs 0]"
      VectorParams1D	      on
    }
    Block {
      BlockType		      Gain
      Name		      "wo"
      Position		      [255, 294, 290, 326]
      ShowName		      off
      Gain		      "wo"
      Multiplication	      "Element-wise(K.*u)"
      SaturateOnIntegerOverflow	on
      Port {
	PortNumber		1
	Name			"thetas"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
      }
    }
    Block {
      BlockType		      Outport
      Name		      "wm"
      Position		      [655, 113, 685, 127]
      Port		      "1"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Outport
      Name		      "Te"
      Position		      [350, 133, 380, 147]
      Port		      "2"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Line {
      SrcBlock		      "voltage"
      SrcPort		      1
      DstBlock		      "IM"
      DstPort		      1
    }
    Line {
      SrcBlock		      "frequency"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	Points			[0, 155]
	DstBlock		"Integrator3"
	DstPort			1
      }
      Branch {
	DstBlock		"IM"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      1
      DstBlock		      "Mux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      2
      DstBlock		      "Mux"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      DstBlock		      "ias"
      DstPort		      1
    }
    Line {
      Name		      "ias"
      Labels		      [0, 0]
      SrcBlock		      "ias"
      SrcPort		      1
      Points		      [15, 0; 0, -30]
      DstBlock		      "Mux7"
      DstPort		      2
    }
    Line {
      Name		      "Is_mag"
      Labels		      [0, 1]
      SrcBlock		      "mag"
      SrcPort		      1
      Points		      [20, 0; 0, 40]
      DstBlock		      "Mux7"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux7"
      SrcPort		      1
      DstBlock		      "currents"
      DstPort		      1
    }
    Line {
      SrcBlock		      "IM"
      SrcPort		      2
      Points		      [35, 0]
      Branch {
	DstBlock		"mag"
	DstPort			1
      }
      Branch {
	Points			[0, 85]
	DstBlock		"Demux"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Sum2"
      SrcPort		      1
      DstBlock		      "1/2H"
      DstPort		      1
    }
    Line {
      SrcBlock		      "1/2H"
      SrcPort		      1
      DstBlock		      "Integrator2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Clock1"
      SrcPort		      1
      DstBlock		      "Torque pulse"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux6"
      SrcPort		      1
      DstBlock		      "mec"
      DstPort		      1
    }
    Line {
      Name		      "Te"
      SrcBlock		      "IM"
      SrcPort		      1
      Points		      [30, 0]
      Branch {
	DstBlock		"Sum2"
	DstPort			2
      }
      Branch {
	Labels			[-1, 1]
	Points			[0, -50]
	DstBlock		"Mux6"
	DstPort			2
      }
      Branch {
	Points			[0, 20]
	DstBlock		"Te"
	DstPort			1
      }
    }
    Line {
      Name		      "Tl"
      Labels		      [0, 0]
      SrcBlock		      "Torque pulse"
      SrcPort		      1
      Points		      [270, 0]
      Branch {
	Labels			[-1, 1]
	DstBlock		"Mux6"
	DstPort			1
      }
      Branch {
	DstBlock		"Sum2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "vds1"
      SrcPort		      1
      Points		      [-140, 0]
      DstBlock		      "Sum2"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Integrator3"
      SrcPort		      1
      DstBlock		      "wo"
      DstPort		      1
    }
    Line {
      Name		      "thetas"
      Labels		      [0, 0]
      SrcBlock		      "wo"
      SrcPort		      1
      DstBlock		      "Mux"
      DstPort		      3
    }
    Line {
      Name		      "wm"
      Labels		      [1, 0]
      SrcBlock		      "Integrator2"
      SrcPort		      1
      Points		      [80, 0]
      Branch {
	DstBlock		"mec"
	DstPort			2
      }
      Branch {
	Points			[0, 225; -495, 0; 0, -140]
	DstBlock		"IM"
	DstPort			3
      }
      Branch {
	DstBlock		"wm"
	DstPort			1
      }
    }
    Annotation {
      Position		      [359, 179]
      Text		      "is"
    }
  }
}

⌨️ 快捷键说明

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