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

📄 imtrsrun3.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      DisplayOption	      "bar"
      Port {
	PortNumber		1
	Name			"T"
	PropagatedSignals	"Tl, Te"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux4"
      Ports		      [3, 1]
      Position		      [605, 338, 610, 422]
      ShowName		      off
      Inputs		      "3"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux5"
      Ports		      [2, 1]
      Position		      [755, 273, 760, 357]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux6"
      Ports		      [2, 1]
      Position		      [605, 213, 610, 297]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Reference
      Name		      "Te vs wm"
      Ports		      [2]
      Position		      [775, 133, 835, 217]
      SourceBlock	      "simulink/Sinks/XY Graph"
      SourceType	      "XY scope."
      xmin		      "0.7"
      xmax		      "1"
      ymin		      "-3"
      ymax		      "4"
      st		      "0"
    }
    Block {
      BlockType		      Terminator
      Name		      "Terminator1"
      Position		      [135, 340, 155, 360]
      ShowName		      off
    }
    Block {
      BlockType		      Terminator
      Name		      "Terminator2"
      Position		      [125, 390, 145, 410]
      ShowName		      off
    }
    Block {
      BlockType		      Terminator
      Name		      "Terminator3"
      Position		      [125, 430, 145, 450]
      ShowName		      off
    }
    Block {
      BlockType		      Constant
      Name		      "Tl"
      Position		      [95, 285, 125, 315]
      ShowName		      off
      Value		      "Tl0"
      Port {
	PortNumber		1
	Name			"Tl"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Lookup
      Name		      "Torque pulse"
      Position		      [85, 335, 115, 365]
      InputValues	      "[0 0.1 0.1 0.5 0.5 2] "
      OutputValues	      "[Tl0 Tl0  0 0 0.5 0.5] "
    }
    Block {
      BlockType		      Scope
      Name		      "Torques"
      Ports		      [2]
      Position		      [775, 36, 830, 109]
      NamePlacement	      "alternate"
      Location		      [524, 87, 972, 734]
      Open		      on
      NumInputPorts	      "2"
      TickLabels	      "on"
      List {
	ListType		AxesTitles
	axes1			"Torque [pu]"
	axes2			"Speed [pu]"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
      }
      TimeRange		      "1"
      YMin		      "-3~0.7"
      YMax		      "3.5~1"
      DataFormat	      "Array"
    }
    Block {
      BlockType		      Scope
      Name		      "Voltage"
      Ports		      [2]
      Position		      [155, 46, 210, 119]
      NamePlacement	      "alternate"
      Location		      [523, 86, 1001, 406]
      Open		      on
      NumInputPorts	      "2"
      TickLabels	      "on"
      List {
	ListType		AxesTitles
	axes1			"Voltage magnitude [pu]"
	axes2			"Frequency [pu]"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
      }
      TimeRange		      "1"
      YMin		      "0.8~0.8"
      YMax		      "1~1"
      DataFormat	      "Array"
    }
    Block {
      BlockType		      Scope
      Name		      "currents"
      Ports		      [1]
      Position		      [790, 277, 835, 353]
      Location		      [21, 87, 522, 378]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      List {
	ListType		AxesTitles
	axes1			"Stator current"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "1"
      DataFormat	      "Array"
    }
    Block {
      BlockType		      Fcn
      Name		      "ias"
      Position		      [635, 365, 695, 395]
      Expr		      "u(1)*cos(u(3))-u(2)*sin(u(3))"
      Port {
	PortNumber		1
	Name			"ias"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      "S-Function"
      Name		      "indmotor"
      Ports		      [1, 1]
      Position		      [285, 173, 410, 297]
      ForegroundColor	      "blue"
      BackgroundColor	      "yellow"
      DropShadow	      on
      ShowName		      off
      OpenFcn		      "imparam3"
      FontAngle		      "italic"
      FunctionName	      "imKmoda"
      Parameters	      "Rs,Rr,L,Hi,wo,ic"
      MaskDisplay	      "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
"),[-.5 -1 1 .5],[-.866 -1.2 -1.2 -.866] )\ndisp('INDUCTION\\nMOTOR')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
    }
    Block {
      BlockType		      Fcn
      Name		      "mag"
      Position		      [635, 240, 695, 270]
      Expr		      "sqrt(u(1)^2+u(2)^2)"
    }
    Block {
      BlockType		      Constant
      Name		      "vds"
      Position		      [55, 385, 85, 415]
      ShowName		      off
      Value		      "vs"
      Port {
	PortNumber		1
	Name			"vds"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Lookup
      Name		      "voltage sag"
      Position		      [65, 150, 95, 180]
      InputValues	      "[0 0.1 0.1 0.5 0.5 2] "
      OutputValues	      "[vs vs  0.8 0.8 vs vs] "
    }
    Block {
      BlockType		      Constant
      Name		      "ws"
      Position		      [55, 425, 85, 455]
      ShowName		      off
      Value		      "ws"
      Port {
	PortNumber		1
	Name			"ws"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Outport
      Name		      "Outport"
      Position		      [455, 350, 480, 380]
      DropShadow	      on
      OpenFcn		      "implot"
    }
    Block {
      BlockType		      Outport
      Name		      "Tload"
      Position		      [255, 345, 280, 375]
      DropShadow	      on
      OpenFcn		      "implot"
      Port		      "2"
    }
    Line {
      SrcBlock		      "Mux4"
      SrcPort		      1
      DstBlock		      "ias"
      DstPort		      1
    }
    Line {
      Name		      "T"
      Labels		      [1, 0]
      SrcBlock		      "Mux3"
      SrcPort		      1
      DstBlock		      "Torques"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux6"
      SrcPort		      1
      DstBlock		      "mag"
      DstPort		      1
    }
    Line {
      SrcBlock		      "mag"
      SrcPort		      1
      Points		      [30, 0; 0, 40]
      DstBlock		      "Mux5"
      DstPort		      1
    }
    Line {
      Name		      "ias"
      Labels		      [1, 1]
      SrcBlock		      "ias"
      SrcPort		      1
      Points		      [30, 0; 0, -45]
      DstBlock		      "Mux5"
      DstPort		      2
    }
    Line {
      Name		      "Te"
      Labels		      [1, 0]
      SrcBlock		      "Demux1"
      SrcPort		      2
      Points		      [70, 0]
      Branch {
	DstBlock		"Te vs wm"
	DstPort			2
      }
      Branch {
	Points			[0, -120]
	DstBlock		"Mux3"
	DstPort			2
      }
    }
    Line {
      Name		      "thetas"
      Labels		      [3, 0]
      SrcBlock		      "Demux1"
      SrcPort		      5
      Points		      [15, 0; 0, 95]
      DstBlock		      "Mux4"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Mux2"
      SrcPort		      1
      DstBlock		      "indmotor"
      DstPort		      1
    }
    Line {
      SrcBlock		      "indmotor"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	DstBlock		"Demux1"
	DstPort			1
      }
      Branch {
	DstBlock		"Outport"
	DstPort			1
      }
    }
    Line {
      Name		      "vqs"
      Labels		      [1, 0]
      SrcBlock		      "Ground"
      SrcPort		      1
      DstBlock		      "Mux2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Clock1"
      SrcPort		      1
      DstBlock		      "Torque pulse"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Torque pulse"
      SrcPort		      1
      DstBlock		      "Terminator1"
      DstPort		      1
    }
    Line {
      Name		      "Tl"
      Labels		      [1, 0]
      SrcBlock		      "Tl"
      SrcPort		      1
      Points		      [50, 0]
      Branch {
	DstBlock		"Mux2"
	DstPort			4
      }
      Branch {
	Points			[0, 60; 50, 0]
	Branch {
	  DstBlock		  "Tload"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, -325]
	  DstBlock		  "Mux3"
	  DstPort		  1
	}
      }
    }
    Line {
      Name		      "iqs"
      Labels		      [1, 0]
      SrcBlock		      "Demux1"
      SrcPort		      4
      Points		      [40, 0]
      Branch {
	DstBlock		"Mux6"
	DstPort			2
      }
      Branch {
	Points			[0, 105]
	DstBlock		"Mux4"
	DstPort			2
      }
    }
    Line {
      Name		      "ids"
      Labels		      [1, 0]
      SrcBlock		      "Demux1"
      SrcPort		      3
      Points		      [75, 0]
      Branch {
	DstBlock		"Mux6"
	DstPort			1
      }
      Branch {
	Points			[0, 115]
	DstBlock		"Mux4"
	DstPort			1
      }
    }
    Line {
      Name		      "wm"
      Labels		      [0, 1]
      SrcBlock		      "Demux1"
      SrcPort		      1
      Points		      [210, 0]
      Branch {
	Points			[0, -65]
	DstBlock		"Torques"
	DstPort			2
      }
      Branch {
	DstBlock		"Te vs wm"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Mux5"
      SrcPort		      1
      DstBlock		      "currents"
      DstPort		      1
    }
    Line {
      Name		      "ws"
      Labels		      [0, 0]
      SrcBlock		      "ws"
      SrcPort		      1
      DstBlock		      "Terminator3"
      DstPort		      1
    }
    Line {
      Name		      "vds"
      Labels		      [0, 0]
      SrcBlock		      "vds"
      SrcPort		      1
      DstBlock		      "Terminator2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Clock2"
      SrcPort		      1
      DstBlock		      "voltage sag"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Clock3"
      SrcPort		      1
      DstBlock		      " frequency change"
      DstPort		      1
    }
    Line {
      Name		      "ws"
      SrcBlock		      " frequency change"
      SrcPort		      1
      Points		      [35, 0]
      Branch {
	Labels			[1, 0]
	DstBlock		"Mux2"
	DstPort			3
      }
      Branch {
	Points			[0, -155]
	DstBlock		"Voltage"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "voltage sag"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	DstBlock		"Mux2"
	DstPort			1
      }
      Branch {
	Points			[0, -100]
	DstBlock		"Voltage"
	DstPort			1
      }
    }
    Annotation {
      Name		      "Is"
      Position		      [715, 250]
    }
    Annotation {
      Name		      "vds"
      Position		      [164, 160]
    }
  }
}

⌨️ 快捷键说明

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