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

📄 imsistline.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 2 页
字号:
    }
    Block {
      BlockType		      Mux
      Name		      "Mux7"
      Ports		      [2, 1, 0, 0, 0]
      Position		      [560, 27, 565, 118]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Step
      Name		      "Step load"
      Position		      [190, 317, 225, 353]
      Time		      "1.0"
      Before		      "0.0"
      After		      "10"
      SampleTime	      "0"
      Port {
	PortNumber		1
	Name			"Tl"
	TestPoint		off
	RTWStorageClass		"Auto"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem"
      Ports		      [1, 1, 0, 0, 0]
      Position		      [325, 218, 420, 322]
      BackgroundColor	      "yellow"
      DropShadow	      on
      ShowName		      off
      ShowPortLabels	      on
      MaskPromptString	      "Stator resistance [Ohms]|Rotor resistance [Ohms"
"]|Inductances Lsl,Lrl,Lm [H]|Base frequency [rad/s]|Inertia  [kg.m^2]|Number "
"of poles|Initial conditions"
      MaskStyleString	      "edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on"
      MaskCallbackString      "||||||"
      MaskEnableString	      "on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on"
      MaskVariables	      "Rs=@1;Rr=@2;L_param=@3;wo=@4;J=@5;p=@6;ic=@7;"
      MaskDisplay	      "disp('INDUCTION\\nMOTOR')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0.531|0.408|[2.5 2.5 85]*0.001|2*pi*60|0.1|4|[0"
" 0 0 0 0]"
      System {
	Name			"Subsystem"
	Location		[147, 169, 414, 343]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"automatic"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Inport
	  Name			  "In"
	  Position		  [25, 68, 55, 82]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  "indmotor"
	  Ports			  [1, 1, 0, 0, 0]
	  Position		  [80, 25, 205, 125]
	  BackgroundColor	  "lightBlue"
	  DropShadow		  on
	  FontAngle		  "italic"
	  FunctionName		  "immodSI"
	  Parameters		  "Rs,Rr,L_param,J,p,wo,ic"
	  PortCounts		  "[]"
	  SFunctionModules	  "''"
	  MaskDisplay		  "disp('INDUCTION\\nMOTOR')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out"
	  Position		  [230, 68, 260, 82]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "indmotor"
	  SrcPort		  1
	  DstBlock		  "Out"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In"
	  SrcPort		  1
	  DstBlock		  "indmotor"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1, 0, 0, 0]
      Position		      [90, 190, 110, 210]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      SaturateOnIntegerOverflow	on
      Port {
	PortNumber		1
	Name			"vas"
	TestPoint		off
	RTWStorageClass		"Auto"
      }
    }
    Block {
      BlockType		      Sum
      Name		      "Sum1"
      Ports		      [2, 1, 0, 0, 0]
      Position		      [120, 235, 140, 255]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      SaturateOnIntegerOverflow	on
      Port {
	PortNumber		1
	Name			"vbs"
	TestPoint		off
	RTWStorageClass		"Auto"
      }
    }
    Block {
      BlockType		      Scope
      Name		      "currents"
      Ports		      [2, 0, 0, 0, 0]
      Position		      [730, 300, 785, 375]
      Floating		      off
      Location		      [19, 420, 377, 704]
      Open		      on
      NumInputPorts	      "2"
      TickLabels	      "on"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      Grid		      "on"
      TimeRange		      "1.5"
      YMin		      "0~-100"
      YMax		      "90~100"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "Matrix"
      LimitMaxRows	      on
      MaxRows		      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Fcn
      Name		      "mag"
      Position		      [590, 60, 650, 90]
      Expr		      "sqrt(u(1)^2+u(2)^2)"
      Port {
	PortNumber		1
	Name			"vt"
	TestPoint		off
	RTWStorageClass		"Auto"
      }
    }
    Block {
      BlockType		      Fcn
      Name		      "mag1"
      Position		      [640, 305, 700, 335]
      Expr		      "sqrt(u(1)^2+u(2)^2)"
      Port {
	PortNumber		1
	Name			"Imag"
	TestPoint		off
	RTWStorageClass		"Auto"
      }
    }
    Block {
      BlockType		      Scope
      Name		      "mec"
      Ports		      [2, 0, 0, 0, 0]
      Position		      [705, 171, 765, 269]
      Floating		      off
      Location		      [727, 94, 1008, 451]
      Open		      on
      NumInputPorts	      "2"
      TickLabels	      "on"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      Grid		      "on"
      TimeRange		      "1.5"
      YMin		      "0~-20"
      YMax		      "200~50"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "Matrix"
      LimitMaxRows	      on
      MaxRows		      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "vt"
      Ports		      [2, 0, 0, 0, 0]
      Position		      [705, 49, 765, 151]
      Floating		      off
      Location		      [6, 71, 358, 428]
      Open		      on
      NumInputPorts	      "2"
      TickLabels	      "on"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      Grid		      "on"
      TimeRange		      "1.5"
      YMin		      "150~-200"
      YMax		      "180~200"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "Matrix"
      LimitMaxRows	      on
      MaxRows		      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Outport
      Name		      "Outport1"
      Position		      [460, 345, 485, 375]
      BackgroundColor	      "yellow"
      DropShadow	      on
      OpenFcn		      "implot"
      Port		      "1"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Outport
      Name		      "Outport2"
      Position		      [320, 345, 345, 375]
      BackgroundColor	      "yellow"
      DropShadow	      on
      OpenFcn		      "implot"
      Port		      "2"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Line {
      Name		      "wm"
      Labels		      [1, 0]
      SrcBlock		      "Demux1"
      SrcPort		      1
      DstBlock		      "mec"
      DstPort		      1
    }
    Line {
      Name		      "Te"
      Labels		      [1, 0]
      SrcBlock		      "Demux1"
      SrcPort		      2
      DstBlock		      "mec"
      DstPort		      2
    }
    Line {
      Name		      "wk"
      Labels		      [1, 0]
      SrcBlock		      "Ground1"
      SrcPort		      1
      DstBlock		      "Mux1"
      DstPort		      3
    }
    Line {
      Name		      "Tl"
      Labels		      [0, 0]
      SrcBlock		      "Step load"
      SrcPort		      1
      DstBlock		      "Mux1"
      DstPort		      4
    }
    Line {
      Name		      "B"
      Labels		      [1, 0]
      SrcBlock		      "B"
      SrcPort		      1
      DstBlock		      "Sum1"
      DstPort		      1
    }
    Line {
      Name		      "A"
      Labels		      [0, 1]
      SrcBlock		      "A"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      Name		      "vt"
      Labels		      [0, 0]
      SrcBlock		      "mag"
      SrcPort		      1
      DstBlock		      "vt"
      DstPort		      1
    }
    Line {
      Name		      "vas"
      SrcBlock		      "Sum"
      SrcPort		      1
      Points		      [110, 0]
      Branch {
	DstBlock		"Mux1"
	DstPort			1
      }
      Branch {
	Points			[0, -75]
	Branch {
	  Labels		  [-1, 1]
	  DstBlock		  "vt"
	  DstPort		  2
	}
	Branch {
	  Points		  [0, -30]
	  DstBlock		  "Mux7"
	  DstPort		  2
	}
      }
    }
    Line {
      Name		      "vbs"
      SrcBlock		      "Sum1"
      SrcPort		      1
      Points		      [30, 0]
      Branch {
	Labels			[1, 0]
	DstBlock		"Mux1"
	DstPort			2
      }
      Branch {
	Points			[0, -195]
	DstBlock		"Mux7"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Mux7"
      SrcPort		      1
      DstBlock		      "mag"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux6"
      SrcPort		      1
      DstBlock		      "mag1"
      DstPort		      1
    }
    Line {
      Name		      "Imag"
      Labels		      [0, 0]
      SrcBlock		      "mag1"
      SrcPort		      1
      DstBlock		      "currents"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Line drop"
      SrcPort		      1
      Points		      [-230, 0]
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Line drop"
      SrcPort		      2
      Points		      [-200, 0]
      DstBlock		      "Sum1"
      DstPort		      2
    }
    Line {
      Name		      "ias"
      SrcBlock		      "Demux1"
      SrcPort		      3
      Points		      [15, 0]
      Branch {
	Labels			[1, 0]
	DstBlock		"Mux6"
	DstPort			1
      }
      Branch {
	Points			[0, 125]
	DstBlock		"Line drop"
	DstPort			1
      }
    }
    Line {
      Name		      "ibs"
      Labels		      [1, 0]
      SrcBlock		      "Demux1"
      SrcPort		      4
      Points		      [55, 0]
      Branch {
	DstBlock		"Mux6"
	DstPort			2
      }
      Branch {
	Points			[0, 105]
	Branch {
	  DstBlock		  "Line drop"
	  DstPort		  2
	}
	Branch {
	  Points		  [130, 0; 0, -95]
	  DstBlock		  "currents"
	  DstPort		  2
	}
      }
    }
    Line {
      SrcBlock		      "Subsystem"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"Demux1"
	DstPort			1
      }
      Branch {
	Points			[0, 90]
	DstBlock		"Outport1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Mux1"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"Subsystem"
	DstPort			1
      }
      Branch {
	Points			[0, 90]
	DstBlock		"Outport2"
	DstPort			1
      }
    }
    Annotation {
      Position		      [153, 166]
      Text		      " "
      FontSize		      11
      FontWeight	      "bold"
    }
    Annotation {
      Position		      [193, 194]
      Text		      "vas"
    }
  }
}

⌨️ 快捷键说明

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