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

📄 smeqvec7b.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 4 页
字号:
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn1"
      Position		      [655, 177, 690, 213]
      ShowName		      off
      Expr		      "sqrt(u(1)^2+u(2)^2)"
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator2"
      Ports		      [1, 1]
      Position		      [730, 360, 760, 390]
      ShowName		      off
      InitialCondition	      "1"
      Port {
	PortNumber		1
	Name			"wm"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator3"
      Ports		      [1, 1]
      Position		      [325, 420, 355, 450]
      ShowName		      off
      InitialCondition	      "delta0"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux1"
      Ports		      [2, 1]
      Position		      [765, 179, 770, 241]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux6"
      Ports		      [2, 1]
      Position		      [665, 414, 670, 481]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Scope
      Name		      "P&Q"
      Ports		      [2]
      Position		      [800, 83, 830, 127]
      ForegroundColor	      "green"
      NamePlacement	      "alternate"
      Location		      [623, 291, 1129, 498]
      Open		      on
      NumInputPorts	      "2"
      List {
	ListType		AxesTitles
	axes1			"Reactive Power Q [pu]"
	axes2			"Power P[pu]"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
      }
      TimeRange		      "12"
      YMin		      "-1~-2"
      YMax		      "1~2"
      SaveName		      "ScopeData3"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "Ps  controller"
      Ports		      [1, 1]
      Position		      [255, 669, 335, 721]
      BackgroundColor	      "orange"
      TreatAsAtomicUnit	      off
      MaskDescription	      "Proportional-Integral Speed Controller"
      MaskPromptString	      "Proportional gain (Kp)|Integral gain (Ki)|Satur"
"ation limit [pu]"
      MaskStyleString	      "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString	      "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString	      "on,on,on"
      MaskVarAliasString      ",,"
      MaskVariables	      "Kp=@1;Ki=@2;sat=@3;"
      MaskDisplay	      "plot(0,0,100,100,[35,35,65],[70,30,30],[35,65],"
"[45,60])\n"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      ".2|1|3"
      System {
	Name			"Ps  controller"
	Location		[762, 604, 1069, 751]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Pser"
	  Position		  [20, 78, 50, 92]
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [85, 71, 110, 99]
	  ShowName		  off
	  Gain			  "Ki"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [120, 16, 150, 44]
	  ShowName		  off
	  Gain			  "Kp"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [1, 1]
	  Position		  [130, 70, 155, 100]
	  ShowName		  off
	  LimitOutput		  on
	  UpperSaturationLimit	  "sat"
	  LowerSaturationLimit	  "-sat"
	}
	Block {
	  BlockType		  Saturate
	  Name			  "Saturation"
	  Position		  [225, 50, 245, 70]
	  ShowName		  off
	  UpperLimit		  "sat"
	  LowerLimit		  "-sat"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [175, 50, 195, 70]
	  ShowName		  off
	  IconShape		  "round"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Tmec"
	  Position		  [260, 53, 290, 67]
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Gain1"
	  SrcPort		  1
	  Points		  [30, 0]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Pser"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    DstBlock		    "Gain"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -55]
	    DstBlock		    "Gain1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Saturation"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Saturation"
	  SrcPort		  1
	  DstBlock		  "Tmec"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Lookup
      Name		      "Psref"
      Position		      [120, 676, 155, 714]
      BackgroundColor	      "yellow"
      NamePlacement	      "alternate"
      FontWeight	      "bold"
      InputValues	      "[0 2 2.01 10 ] "
      OutputValues	      "[0 0 -1 -1]"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Qs  controller"
      Ports		      [1, 1]
      Position		      [255, 299, 335, 351]
      BackgroundColor	      "orange"
      TreatAsAtomicUnit	      off
      MaskDescription	      "Proportional-Integral Speed Controller"
      MaskPromptString	      "Proportional gain (Kp)|Integral gain (Ki)|Satur"
"ation limit [pu]"
      MaskStyleString	      "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString	      "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString	      "on,on,on"
      MaskVarAliasString      ",,"
      MaskVariables	      "Kp=@1;Ki=@2;sat=@3;"
      MaskDisplay	      "plot(0,0,100,100,[35,35,65],[70,30,30],[35,65],"
"[45,60])\n"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      ".1|.2|.1"
      System {
	Name			"Qs  controller"
	Location		[762, 604, 1069, 751]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Qser"
	  Position		  [20, 78, 50, 92]
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [85, 71, 110, 99]
	  ShowName		  off
	  Gain			  "Ki"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [120, 16, 150, 44]
	  ShowName		  off
	  Gain			  "Kp"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [1, 1]
	  Position		  [130, 70, 155, 100]
	  ShowName		  off
	  InitialCondition	  "vf0"
	  LimitOutput		  on
	  UpperSaturationLimit	  "sat"
	  LowerSaturationLimit	  "-sat"
	}
	Block {
	  BlockType		  Saturate
	  Name			  "Saturation"
	  Position		  [225, 50, 245, 70]
	  ShowName		  off
	  UpperLimit		  "sat"
	  LowerLimit		  "-sat"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [175, 50, 195, 70]
	  ShowName		  off
	  IconShape		  "round"
	}
	Block {
	  BlockType		  Outport
	  Name			  "vf"
	  Position		  [260, 53, 290, 67]
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Saturation"
	  SrcPort		  1
	  DstBlock		  "vf"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Saturation"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Qser"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    Points		    [0, -55]
	    DstBlock		    "Gain1"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Gain"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain1"
	  SrcPort		  1
	  Points		  [30, 0]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Lookup
      Name		      "Qsref"
      Position		      [120, 306, 155, 344]
      BackgroundColor	      "yellow"
      NamePlacement	      "alternate"
      FontWeight	      "bold"
      InputValues	      "[0 5 5.01 10 ] "
      OutputValues	      "[0 0 -.5 -.5]"
    }
    Block {
      BlockType		      SubSystem
      Name		      "SM"
      Ports		      [3, 3]
      Position		      [365, 248, 520, 402]
      ForegroundColor	      "blue"
      ShowName		      off
      FontWeight	      "bold"
      TreatAsAtomicUnit	      off
      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('SYNCHRONOUS\\nMACHINE')"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      Port {
	PortNumber		3
	Name			"Te"
	PropagatedSignals	"Te"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
      System {
	Name			"SM"
	Location		[632, 406, 1112, 803]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"70"
	Block {
	  BlockType		  Inport
	  Name			  "vs"
	  Position		  [25, 113, 55, 127]
	}
	Block {
	  BlockType		  Inport
	  Name			  "vf"
	  Position		  [30, 283, 60, 297]
	  Port			  "2"
	}
	Block {
	  BlockType		  Inport
	  Name			  "wm"
	  Position		  [25, 63, 55, 77]
	  Port			  "3"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 3]
	  Position		  [455, 97, 460, 233]
	  BackgroundColor	  "black"
	  ShowName		  off
	  Outputs		  "3"
	  Port {
	    PortNumber		    3
	    Name		    "if"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	}
	Block {
	  BlockType		  Reference
	  Name			  "Dot Product"
	  Ports			  [2, 1]
	  Position		  [555, 19, 595, 61]
	  ShowName		  off
	  SourceBlock		  "simulink/Math\nOperations/Dot Product"
	  SourceType		  "Dot Product"
	  Port {
	    PortNumber		    1
	    Name		    "Te"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [200, 235, 230, 265]
	  Orientation		  "left"
	  ShowName		  off
	  Gain			  "Ra"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [205, 330, 235, 360]
	  Orientation		  "left"
	  ShowName		  off
	  Gain			  "Rf"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain4"
	  Position		  [180, 105, 205, 135]
	  ShowName		  off
	  Gain			  "wo"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain5"
	  Position		  [175, 380, 205, 410]
	  ShowName		  off
	  Gain			  "-wo"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain6"
	  Position		  [180, 275, 205, 305]
	  ShowName		  off
	  Gain			  "wo"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [1, 1]
	  Position		  [235, 105, 265, 135]
	  ShowName		  off
	  InitialCondition	  "fa0"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator1"
	  Ports			  [1, 1]
	  Position		  [235, 380, 265, 410]
	  ShowName		  off
	  InitialCondition	  "fk0"
	  Port {
	    PortNumber		    1
	    Name		    "fk"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator2"
	  Ports			  [1, 1]
	  Position		  [235, 275, 265, 305]
	  ShowName		  off
	  InitialCondition	  "phif0"
	  Port {
	    PortNumber		    1
	    Name		    "ff"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"

⌨️ 快捷键说明

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