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

📄 imvectrol9.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 4 页
字号:
      SaveName		      "ScopeData"
      DataFormat	      "Array"
      LimitDataPoints	      on
      MaxDataPoints	      "7000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "info"
      Ports		      []
      Position		      [157, 504, 229, 573]
      ForegroundColor	      "darkGreen"
      DropShadow	      on
      ShowName		      off
      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('Info')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"info"
	Location		[22, 267, 498, 335]
	Open			on
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"91"
	Annotation {
	  Position		  [243, 17]
	  Text			  "Indirect Vector Control of an Induction Mot"
"or\nwith Voltage Excitation and Open-Loop Speed Control"
	  FontSize		  12
	  FontWeight		  "bold"
	}
	Annotation {
	  Position		  [15, 40]
	  HorizontalAlignment	  "left"
	  VerticalAlignment	  "top"
	  Text			  "Double click the RUN block to establish the"
" parameters derived in script file <vectrolrun9.m>\nExamine the system dynami"
"c behavior for various values of the ktune factor."
	  FontSize		  12
	}
      }
    }
    Block {
      BlockType		      Gain
      Name		      "ktune"
      Position		      [146, 320, 194, 355]
      Orientation	      "down"
      BackgroundColor	      "red"
      DropShadow	      on
      NamePlacement	      "alternate"
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      SaturateOnIntegerOverflow	on
      Port {
	PortNumber		1
	Name			"wrC"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "plots"
      Ports		      []
      Position		      [402, 510, 470, 576]
      ForegroundColor	      "orange"
      DropShadow	      on
      ShowName		      off
      OpenFcn		      "close all,figure(1),plot(t,Te,'-b'),grid,title("
"'TORQUE versus TIME'),figure(2),plot(t,wm,'-r'),grid,title('SPEED versus TIME"
"')"
      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('PLOTS')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"plots"
	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		      Gain
      Name		      "rad2deg"
      Position		      [400, 300, 440, 330]
      Gain		      "180/pi"
      Multiplication	      "Element-wise(K.*u)"
      SaturateOnIntegerOverflow	on
      Port {
	PortNumber		1
	Name			"iqs*"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
      }
    }
    Block {
      BlockType		      Scope
      Name		      "speed"
      Ports		      [1]
      Position		      [1000, 152, 1030, 198]
      ForegroundColor	      "lightBlue"
      NamePlacement	      "alternate"
      Floating		      off
      Location		      [500, 423, 1005, 733]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"speed"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      Grid		      "on"
      TimeRange		      "7"
      YMin		      "-0.5"
      YMax		      "3.5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "Array"
      LimitDataPoints	      on
      MaxDataPoints	      "7000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "torque"
      Ports		      [1]
      Position		      [995, 46, 1025, 94]
      ForegroundColor	      "lightBlue"
      NamePlacement	      "alternate"
      Floating		      off
      Location		      [498, 96, 1005, 398]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"torque"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      Grid		      "on"
      TimeRange		      "7"
      YMin		      "-1.25"
      YMax		      "1.25"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "Array"
      LimitDataPoints	      on
      MaxDataPoints	      "7000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Gain
      Name		      "wo"
      Position		      [370, 335, 400, 365]
      Orientation	      "up"
      ShowName		      off
      Gain		      "wo"
      Multiplication	      "Element-wise(K.*u)"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Gain
      Name		      "wo2"
      Position		      [265, 335, 295, 365]
      Orientation	      "up"
      ShowName		      off
      Gain		      "wo"
      Multiplication	      "Element-wise(K.*u)"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Outport
      Name		      "wm"
      Position		      [1000, 108, 1030, 122]
      Port		      "1"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Outport
      Name		      "Te"
      Position		      [795, 203, 825, 217]
      Port		      "2"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Line {
      Name		      "Tl"
      Labels		      [0, 0]
      SrcBlock		      "Tl"
      SrcPort		      1
      DstBlock		      "Mechanical \nsystem"
      DstPort		      1
    }
    Line {
      Name		      "wm"
      Labels		      [1, 0]
      SrcBlock		      "Mechanical \nsystem"
      SrcPort		      1
      Points		      [35, 0]
      Branch {
	DstBlock		"speed"
	DstPort			1
      }
      Branch {
	Points			[0, 290; -330, 0]
	Branch {
	  Labels		  [-1, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Branch {
	  Points		  [-100, 0]
	  Branch {
	    Points		    [0, -160]
	    DstBlock		    "IM"
	    DstPort		    3
	  }
	  Branch {
	    Points		    [-310, 0]
	    DstBlock		    "Sum1"
	    DstPort		    2
	  }
	}
      }
      Branch {
	Points			[0, -60]
	DstBlock		"wm"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "IM"
      SrcPort		      3
      DstBlock		      "Demux1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      2
      Points		      [30, 0]
      DstBlock		      "Lm/(wo*Tr)"
      DstPort		      1
    }
    Line {
      Name		      "ws"
      Labels		      [0, 0]
      SrcBlock		      "Sum"
      SrcPort		      1
      Points		      [-120, 0]
      Branch {
	Points			[0, -170]
	DstBlock		"IM"
	DstPort			2
      }
      Branch {
	Points			[-130, 0]
	DstBlock		"wo"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "wo"
      SrcPort		      1
      DstBlock		      "Integrator1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "wo2"
      SrcPort		      1
      DstBlock		      "Integrator3"
      DstPort		      1
    }
    Line {
      Name		      "wsC"
      SrcBlock		      "Sum1"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Labels			[1, 1]
	Points			[25, 0]
	DstBlock		"wo2"
	DstPort			1
      }
      Branch {
	Labels			[2, 1]
	Points			[0, -345]
	DstBlock		"Mux7"
	DstPort			3
      }
    }
    Line {
      Name		      "Te"
      Labels		      [0, 0]
      SrcBlock		      "IM"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"Mechanical \nsystem"
	DstPort			2
      }
      Branch {
	Points			[0, -125]
	DstBlock		"torque"
	DstPort			1
      }
      Branch {
	Points			[0, 15]
	DstBlock		"Te"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Lm/(wo*Tr)"
      SrcPort		      1
      Points		      [0, 15]
      DstBlock		      "divide"
      DstPort		      1
    }
    Line {
      Name		      "wr"
      Labels		      [0, 0]
      SrcBlock		      "divide"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      Name		      "vab"
      Labels		      [0, 0]
      SrcBlock		      "dq2ab"
      SrcPort		      1
      DstBlock		      "ab2dq"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fcn"
      SrcPort		      1
      Points		      [15, 0]
      DstBlock		      "Mux"
      DstPort		      1
    }
    Line {
      Name		      "vdqC"
      Labels		      [2, 0]
      SrcBlock		      "Mux"
      SrcPort		      1
      Points		      [20, 0; 0, 70; -165, 0; 0, 30]
      DstBlock		      "dq2ab"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux7"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	DstBlock		"Fcn"
	DstPort			1
      }
      Branch {
	DstBlock		"Fcn1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Fcn1"
      SrcPort		      1
      Points		      [15, 0]
      DstBlock		      "Mux"
      DstPort		      2
    }
    Line {
      Name		      "ids*"
      Labels		      [0, 0]
      SrcBlock		      "fr*/Lm"
      SrcPort		      1
      DstBlock		      "Mux7"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Lm/(wo*Tr*fro)"
      SrcPort		      1
      DstBlock		      "ktune"
      DstPort		      1
    }
    Line {
      Name		      "iqs*"
      SrcBlock		      "Lr/(Lm*fro)"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	Labels			[1, 1]
	Points			[0, -120]
	DstBlock		"Mux7"
	DstPort			2
      }
      Branch {
	DstBlock		"Lm/(wo*Tr*fro)"
	DstPort			1
      }
      Branch {
	DstBlock		"Derivative"
	DstPort			1
      }
    }
    Line {
      Name		      "wrC"
      Labels		      [2, 0]
      SrcBlock		      "ktune"
      SrcPort		      1
      Points		      [0, 60]
      DstBlock		      "Sum1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Clock3"
      SrcPort		      1
      DstBlock		      "T1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "T1"
      SrcPort		      1
      DstBlock		      "Lr/(Lm*fro)"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Derivative"
      SrcPort		      1
      Points		      [10, 0; 0, -90]
      DstBlock		      "Mux7"
      DstPort		      4
    }
    Line {
      SrcBlock		      "Demux1"
      SrcPort		      2
      DstBlock		      "fqr"
      DstPort		      1
    }
    Line {
      Name		      "vdq"
      Labels		      [1, 0]
      SrcBlock		      "ab2dq"
      SrcPort		      1
      DstBlock		      "IM"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      1
      DstBlock		      "ids"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux1"
      SrcPort		      1
      Points		      [75, 0; 0, 135]
      DstBlock		      "divide"
      DstPort		      2
    }
    Line {
      Name		      "thetaC"
      Labels		      [0, 0]
      SrcBlock		      "Integrator3"
      SrcPort		      1
      Points		      [0, -30]
      Branch {
	Points			[0, -30]
	DstBlock		"dq2ab"
	DstPort			2
      }
      Branch {
	Points			[55, 0]
	DstBlock		"Sum2"
	DstPort			1
      }
    }
    Line {
      Name		      "theta"
      Labels		      [0, 0]
      SrcBlock		      "Integrator1"
      SrcPort		      1
      Points		      [0, -10]
      Branch {
	Points			[0, -35]
	DstBlock		"ab2dq"
	DstPort			2
      }
      Branch {
	DstBlock		"Sum2"
	DstPort			2
      }
    }
    Line {
      Name		      "is"
      Labels		      [0, 0]
      SrcBlock		      "IM"
      SrcPort		      2
      DstBlock		      "Demux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum2"
      SrcPort		      1
      Points		      [0, 60]
      DstBlock		      "rad2deg"
      DstPort		      1
    }
    Line {
      Name		      "iqs*"
      SrcBlock		      "rad2deg"
      SrcPort		      1
      DstBlock		      "delta"
      DstPort		      1
    }
    Annotation {
      Position		      [85, 148]
      ForegroundColor	      "orange"
      Text		      "torque command"
      FontSize		      11
      FontWeight	      "bold"
    }
    Annotation {
      Position		      [76, 43]
      ForegroundColor	      "orange"
      Text		      "flux command"
      FontSize		      11
      FontWeight	      "bold"
    }
    Annotation {
      Position		      [351, 13]
      ForegroundColor	      "orange"
      Text		      "voltage decoupler"
      FontSize		      11
      FontWeight	      "bold"
    }
  }
}

⌨️ 快捷键说明

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