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

📄 imvectrol3.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "Integrator1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "wk"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, 215]
	    DstBlock		    "Sum4"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Product"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "vs"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sum4"
	  SrcPort		  1
	  DstBlock		  "Product1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "rot"
	  SrcPort		  1
	  Points		  [-85, 0; 0, 20]
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "rot1"
	  SrcPort		  1
	  Points		  [-80, 0; 0, 20]
	  DstBlock		  "Product1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  Labels		  [2, 0]
	  SrcBlock		  "Integrator1"
	  SrcPort		  1
	  Points		  [45, 0; 0, -85]
	  Branch {
	    DstBlock		    "rot1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -80]
	    DstBlock		    "flux-current"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  Points		  [40, 0]
	  Branch {
	    Points		    [0, -90]
	    DstBlock		    "rot"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "flux-current"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Gain1"
	  SrcPort		  1
	  Points		  [-50, 0]
	  DstBlock		  "Sum1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "vr"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  Points		  [-50, 0]
	  DstBlock		  "Sum"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "rot2"
	  SrcPort		  1
	  Points		  [5, 0]
	  DstBlock		  "dot"
	  DstPort		  2
	}
	Annotation {
	  Position		  [656, 324]
	  Text			  "fqs = (Lsl+Lm).iqs + Lm.iqr\nfqr = Lm.iqs +"
" (Lrl+Lm).iqr"
	  FontSize		  12
	  FontWeight		  "bold"
	}
	Annotation {
	  Position		  [656, 289]
	  Text			  "fds = (Lsl+Lm).ids + Lm.idr\nfdr = Lm.ids +"
" (Lrl+Lm).idr"
	  FontSize		  12
	  FontWeight		  "bold"
	}
	Annotation {
	  Position		  [164, 418]
	  Text			  "0 = Rr ir +d(fr)/dt + j (wk-wm) fr"
	  FontSize		  14
	}
	Annotation {
	  Position		  [161, 13]
	  Text			  "vs = Rs is + d(fs)/dt + j wk fs "
	  FontSize		  14
	}
	Annotation {
	  Position		  [297, 450]
	  ForegroundColor	  "blue"
	  Text			  "SYSTEM MODEL OF AN INDUCTION  MACHINE\nSPAC"
"E VECTOR FORMULATION\nSI UNITS"
	  FontSize		  12
	  FontWeight		  "bold"
	}
	Annotation {
	  Position		  [742, 133]
	  Text			  "Te"
	}
	Annotation {
	  Position		  [525, 120]
	  Text			  "is"
	}
	Annotation {
	  Position		  [372, 79]
	  Text			  "fs"
	}
	Annotation {
	  Position		  [273, 86]
	  ForegroundColor	  "red"
	  Text			  "STATOR"
	  FontSize		  12
	  FontWeight		  "bold"
	}
	Annotation {
	  Position		  [278, 297]
	  ForegroundColor	  "red"
	  Text			  "ROTOR"
	  FontSize		  12
	  FontWeight		  "bold"
	}
      }
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator2"
      Ports		      [1, 1]
      Position		      [860, 215, 890, 245]
      ShowName		      off
      ExternalReset	      "none"
      InitialConditionSource  "internal"
      InitialCondition	      "0"
      LimitOutput	      off
      UpperSaturationLimit    "inf"
      LowerSaturationLimit    "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      AbsoluteTolerance	      "auto"
      Port {
	PortNumber		1
	Name			"wmec"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux1"
      Ports		      [2, 1]
      Position		      [825, 122, 830, 173]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux3"
      Ports		      [2, 1]
      Position		      [300, 222, 305, 273]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Constant
      Name		      "Phir*"
      Position		      [140, 323, 170, 347]
      NamePlacement	      "alternate"
      Value		      "0.96"
      VectorParams1D	      on
    }
    Block {
      BlockType		      Relay
      Name		      "Relay"
      Position		      [470, 201, 500, 239]
      ShowName		      off
      OnSwitchValue	      "10"
      OffSwitchValue	      "-10"
      OnOutputValue	      "780"
      OffOutputValue	      "-780"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [1]
      Position		      [945, 203, 980, 257]
      ForegroundColor	      "green"
      NamePlacement	      "alternate"
      Floating		      off
      Location		      [21, 90, 525, 343]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "OneTimeTick"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"Speed [rad/s]"
      }
      Grid		      "on"
      TimeRange		      "0.8"
      YMin		      "115"
      YMax		      "155"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "5e-6"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [1]
      Position		      [945, 124, 980, 176]
      ForegroundColor	      "green"
      NamePlacement	      "alternate"
      Floating		      off
      Location		      [528, 93, 1005, 343]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "OneTimeTick"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"Torque [N.m]"
      }
      Grid		      "on"
      TimeRange		      "0.8"
      YMin		      "-200"
      YMax		      "400"
      SaveToWorkspace	      off
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      MaxDataPoints	      "5000"
      Decimation	      "20"
      SampleInput	      off
      SampleTime	      "5e-6"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope2"
      Ports		      [1]
      Position		      [945, 264, 980, 316]
      ForegroundColor	      "green"
      Floating		      off
      Location		      [600, 401, 1004, 715]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "OneTimeTick"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"Currents [A]"
      }
      Grid		      "on"
      TimeRange		      "0.8"
      YMin		      "-150"
      YMax		      "150"
      SaveToWorkspace	      off
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "5e-6"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Speed controller"
      Ports		      [1, 1]
      Position		      [120, 217, 180, 273]
      NamePlacement	      "alternate"
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskType		      "PI controller"
      MaskDescription	      "Proportional-Integral Speed Controller"
      MaskPromptString	      "Proportional gain (Kp)|Integral gain (Ki)|Torqu"
"e limit (N.m)|Sampling time (s)"
      MaskStyleString	      "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString	      "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskToolTipString	      "on,on,on,on"
      MaskVariables	      "Kp=@1;Ki=@2;Tlim=@3;Ts=@4;"
      MaskDisplay	      "plot(0,0,100,100,[35,35,65],[70,30,30],[35,65],"
"[45,60])"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "100|5200|300|0"
      MaskVariableAliases     ",,,"
      System {
	Name			"Speed controller"
	Location		[145, 61, 523, 202]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Inport
	  Name			  "we"
	  Position		  [35, 63, 65, 77]
	  Port			  "1"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [150, 81, 175, 109]
	  ShowName		  off
	  Gain			  "Ki"
	  Multiplication	  "Element-wise(K.*u)"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [185, 26, 215, 54]
	  ShowName		  off
	  Gain			  "Kp"
	  Multiplication	  "Element-wise(K.*u)"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator2"
	  Ports			  [1, 1]
	  Position		  [195, 80, 225, 110]
	  ShowName		  off
	  ExternalReset		  "none"
	  InitialConditionSource  "internal"
	  InitialCondition	  "0"
	  LimitOutput		  on
	  UpperSaturationLimit	  "Tlim"
	  LowerSaturationLimit	  "-Tlim"
	  ShowSaturationPort	  off
	  ShowStatePort		  off
	  AbsoluteTolerance	  "auto"
	}
	Block {
	  BlockType		  Saturate
	  Name			  "Saturation"
	  Position		  [290, 60, 310, 80]
	  ShowName		  off
	  UpperLimit		  "Tlim"
	  LowerLimit		  "-Tlim"
	  LinearizeAsGain	  on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum2"
	  Ports			  [2, 1]
	  Position		  [245, 60, 265, 80]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "++"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Outport
	  Name			  "Te*"
	  Position		  [325, 63, 355, 77]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Gain1"
	  SrcPort		  1
	  Points		  [35, 0]
	  DstBlock		  "Sum2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Integrator2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Saturation"
	  SrcPort		  1
	  DstBlock		  "Te*"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "we"
	  SrcPort		  1
	  Points		  [0, 0; 55, 0]
	  Branch {
	    Points		    [0, 25]
	    DstBlock		    "Gain"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -30]
	    DstBlock		    "Gain1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Sum2"
	  SrcPort		  1
	  DstBlock		  "Saturation"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integrator2"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Sum2"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Constant
      Name		      "Stator\nframe"
      Position		      [535, 248, 565, 272]
      Value		      "0"
      VectorParams1D	      on
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [430, 210, 450, 230]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|-+"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Sum
      Name		      "Sum1"
      Ports		      [2, 1]
      Position		      [80, 235, 100, 255]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Sum
      Name		      "Sum2"
      Ports		      [3, 1]
      Position		      [740, 220, 760, 240]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "-+-"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      SubSystem
      Name		      "Theta Calculator"
      Ports		      [3, 1]
      Position		      [305, 114, 360, 176]
      NamePlacement	      "alternate"
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      System {
	Name			"Theta Calculator"
	Location		[49, 99, 533, 306]
	Open			off

⌨️ 快捷键说明

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