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

📄 smeqvec9.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      BlockType		      Gain
      Name		      "Bm"
      Position		      [685, 316, 720, 344]
      Orientation	      "left"
      ShowName		      off
      Gain		      "Bm"
    }
    Block {
      BlockType		      Clock
      Name		      "Clock1"
      Position		      [75, 530, 95, 550]
      ShowName		      off
      Decimation	      "10"
    }
    Block {
      BlockType		      Clock
      Name		      "Clock2"
      Position		      [80, 315, 100, 335]
      ShowName		      off
      Decimation	      "10"
    }
    Block {
      BlockType		      Clock
      Name		      "Clock4"
      Position		      [85, 670, 105, 690]
      ShowName		      off
      Decimation	      "10"
    }
    Block {
      BlockType		      Reference
      Name		      "Dot Product"
      Ports		      [2, 1]
      Position		      [910, 104, 950, 146]
      ShowName		      off
      SourceBlock	      "simulink/Math\nOperations/Dot Product"
      SourceType	      "Dot Product"
    }
    Block {
      BlockType		      Reference
      Name		      "Dot Product1"
      Ports		      [2, 1]
      Position		      [910, 44, 950, 86]
      ShowName		      off
      SourceBlock	      "simulink/Math\nOperations/Dot Product"
      SourceType	      "Dot Product"
      Port {
	PortNumber		1
	Name			"Q"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn1"
      Position		      [655, 227, 690, 263]
      ShowName		      off
      Expr		      "sqrt(u(1)^2+u(2)^2)"
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator1"
      Ports		      [1, 1]
      Position		      [295, 525, 325, 555]
      ShowName		      off
      InitialCondition	      "V"
    }
    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		      [295, 420, 325, 450]
      ShowName		      off
      InitialCondition	      "delta0"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux1"
      Ports		      [2, 1]
      Position		      [765, 229, 770, 291]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux2"
      Ports		      [2, 1]
      Position		      [380, 159, 385, 226]
      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		      SubSystem
      Name		      "P  controller"
      Ports		      [1, 1]
      Position		      [260, 654, 340, 706]
      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			"P  controller"
	Location		[449, 563, 756, 710]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "P_er"
	  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		  ToWorkspace
	  Name			  "To Workspace"
	  Position		  [220, 90, 280, 120]
	  VariableName		  "xtl"
	  MaxDataPoints		  "1"
	  SampleTime		  "-1"
	  SaveFormat		  "Array"
	}
	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		  "P_er"
	  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
	  Points		  [10, 0]
	  Branch {
	    DstBlock		    "Sum"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "To Workspace"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "P&Q"
      Ports		      [2]
      Position		      [1015, 73, 1045, 117]
      ForegroundColor	      "green"
      NamePlacement	      "alternate"
      Location		      [571, 291, 1101, 534]
      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		      Lookup
      Name		      "Psref"
      Position		      [125, 661, 160, 699]
      BackgroundColor	      "yellow"
      NamePlacement	      "alternate"
      FontWeight	      "bold"
      InputValues	      "[0 2 2.01 10] "
      OutputValues	      "[0 0  -1 -1]"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Q  controller"
      Ports		      [1, 1]
      Position		      [240, 299, 320, 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			"Q  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			  "Q_er"
	  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		  ToWorkspace
	  Name			  "To Workspace"
	  Position		  [190, 95, 250, 125]
	  VariableName		  "xeq"
	  MaxDataPoints		  "1"
	  SampleTime		  "-1"
	  SaveFormat		  "Array"
	}
	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		  "Q_er"
	  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
	  Points		  [0, 0; 10, 0]
	  Branch {
	    DstBlock		    "Sum"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 25]
	    DstBlock		    "To Workspace"
	    DstPort		    1
	  }
	}
      }
    }
    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  -.3 -.3 ]"
    }
    Block {
      BlockType		      SubSystem
      Name		      "SM"
      Ports		      [3, 3]
      Position		      [365, 248, 520, 402]
      BackgroundColor	      "[0.501961, 1.000000, 1.000000]"
      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"

⌨️ 快捷键说明

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