imtrsopen.mdl

来自「关于电机的.m程序」· MDL 代码 · 共 772 行 · 第 1/2 页

MDL
772
字号
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
      Port {
	PortNumber		4
	Name			"iqs"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
      Port {
	PortNumber		5
	Name			"vtd"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
      Port {
	PortNumber		6
	Name			"vtq\n"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux2"
      Ports		      [2, 1]
      Position		      [100, 132, 105, 288]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux6"
      Ports		      [2, 1]
      Position		      [515, 115, 520, 210]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux7"
      Ports		      [2, 1]
      Position		      [515, 213, 520, 297]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      SubSystem
      Name		      "SubSystem"
      Ports		      []
      Position		      [125, 339, 302, 376]
      BackgroundColor	      "yellow"
      DropShadow	      on
      ShowName		      off
      OpenFcn		      "edit(which('imopendat.m'))"
      FontSize		      12
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      MaskDisplay	      "disp('Double click this block\\n to modify the "
"parameters');"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"SubSystem"
	Location		[152, 182, 650, 482]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      Scope
      Name		      "Te& wm"
      Ports		      [2]
      Position		      [655, 28, 710, 117]
      NamePlacement	      "alternate"
      Location		      [49, 60, 505, 416]
      Open		      on
      NumInputPorts	      "2"
      TickLabels	      "on"
      List {
	ListType		AxesTitles
	axes1			"Speed [pu]"
	axes2			"Torque [pu]"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
      }
      TimeRange		      "4"
      YMin		      "0.7~-1"
      YMax		      "1.1~3"
      DataFormat	      "Array"
      MaxDataPoints	      "10000"
    }
    Block {
      BlockType		      Scope
      Name		      "Vt & Is"
      Ports		      [2]
      Position		      [660, 176, 715, 249]
      NamePlacement	      "alternate"
      Location		      [510, 60, 1001, 724]
      Open		      on
      NumInputPorts	      "2"
      TickLabels	      "on"
      List {
	ListType		AxesTitles
	axes1			"Stator current [pu]"
	axes2			"Terminal voltage  [pu]"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
      }
      TimeRange		      "4"
      YMin		      "0~0.1"
      YMax		      "9~1.1"
      DataFormat	      "Array"
      MaxDataPoints	      "10000"
    }
    Block {
      BlockType		      Scope
      Name		      "fluxes"
      Ports		      [2]
      Position		      [445, 297, 500, 388]
      NamePlacement	      "alternate"
      Location		      [177, 95, 633, 451]
      Open		      off
      NumInputPorts	      "2"
      TickLabels	      "on"
      List {
	ListType		AxesTitles
	axes1			"Speed [pu]"
	axes2			"Torque [pu]"
      }
      TimeRange		      "2"
      YMin		      "-25~-25"
      YMax		      "25~25"
      DataFormat	      "Array"
      MaxDataPoints	      "10000"
    }
    Block {
      BlockType		      "S-Function"
      Name		      "indmotor"
      Ports		      [1, 1]
      Position		      [155, 146, 280, 274]
      BackgroundColor	      "yellow"
      DropShadow	      on
      ShowName		      off
      FontAngle		      "italic"
      FunctionName	      "imKmodopen"
      Parameters	      "Rs,Rr,L,Hi,wo,ic,t1,t2"
      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		      [545, 150, 605, 180]
      ShowName		      off
      Expr		      "sqrt(u(1)^2+u(2)^2)"
      Port {
	PortNumber		1
	Name			"is"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Fcn
      Name		      "mag1"
      Position		      [545, 240, 605, 270]
      ShowName		      off
      Expr		      "sqrt(u(1)^2+u(2)^2)"
      Port {
	PortNumber		1
	Name			"vt"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Outport
      Name		      "Out"
      Position		      [340, 328, 370, 342]
    }
    Line {
      SrcBlock		      "Mux6"
      SrcPort		      1
      DstBlock		      "mag"
      DstPort		      1
    }
    Line {
      Name		      "iqs"
      Labels		      [0, 0]
      SrcBlock		      "Demux1"
      SrcPort		      4
      DstBlock		      "Mux6"
      DstPort		      2
    }
    Line {
      Name		      "ids"
      Labels		      [0, 0]
      SrcBlock		      "Demux1"
      SrcPort		      3
      DstBlock		      "Mux6"
      DstPort		      1
    }
    Line {
      Name		      "vtd"
      Labels		      [0, 1]
      SrcBlock		      "Demux1"
      SrcPort		      5
      Points		      [100, 0]
      DstBlock		      "Mux7"
      DstPort		      1
    }
    Line {
      Name		      "vtq\n"
      Labels		      [0, 0]
      SrcBlock		      "Demux1"
      SrcPort		      6
      DstBlock		      "Mux7"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Mux7"
      SrcPort		      1
      DstBlock		      "mag1"
      DstPort		      1
    }
    Line {
      Name		      "is"
      Labels		      [0, 0]
      SrcBlock		      "mag"
      SrcPort		      1
      Points		      [20, 0; 0, 30]
      DstBlock		      "Vt & Is"
      DstPort		      1
    }
    Line {
      Name		      "Te"
      Labels		      [0, 0]
      SrcBlock		      "Demux1"
      SrcPort		      2
      DstBlock		      "Te& wm"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Mux2"
      SrcPort		      1
      DstBlock		      "indmotor"
      DstPort		      1
    }
    Line {
      SrcBlock		      "indmotor"
      SrcPort		      1
      Points		      [0, 0; 25, 0]
      Branch {
	DstBlock		"Demux1"
	DstPort			1
      }
      Branch {
	Points			[0, 125]
	DstBlock		"Out"
	DstPort			1
      }
    }
    Line {
      Name		      "vt"
      Labels		      [0, 0]
      SrcBlock		      "mag1"
      SrcPort		      1
      Points		      [20, 0; 0, -25]
      DstBlock		      "Vt & Is"
      DstPort		      2
    }
    Line {
      Name		      "wm"
      Labels		      [0, 0]
      SrcBlock		      "Demux1"
      SrcPort		      1
      DstBlock		      "Te& wm"
      DstPort		      1
    }
    Line {
      Name		      "vs"
      Labels		      [1, 1]
      SrcBlock		      "Constant"
      SrcPort		      1
      DstBlock		      "Mux2"
      DstPort		      1
    }
    Line {
      Name		      "Tl"
      Labels		      [0, 0]
      SrcBlock		      "Constant3"
      SrcPort		      1
      DstBlock		      "Mux2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Demux1"
      SrcPort		      7
      DstBlock		      "fluxes"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux1"
      SrcPort		      8
      DstBlock		      "fluxes"
      DstPort		      2
    }
    Annotation {
      Name		      "INDUCTION MOTOR\nUNDER OPEN-CIRCUIT CONDTIONS"
      Position		      [224, 50]
      ForegroundColor	      "red"
      FontSize		      14
      FontWeight	      "bold"
    }
  }
}

⌨️ 快捷键说明

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