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

📄 untitled127.mdl

📁 改进后的直接转矩控制系统
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      Location		      [622, 189, 1123, 391]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "0.2"
      YMin		      "-0.4"
      YMax		      "0.9"
      SaveName		      "ScopeData18"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope13"
      Ports		      [1]
      Position		      [1225, 379, 1255, 411]
      Floating		      off
      Location		      [622, 189, 1123, 391]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "0.2"
      YMin		      "-0.4"
      YMax		      "0.9"
      SaveName		      "ScopeData19"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope14"
      Ports		      [1]
      Position		      [945, 119, 975, 151]
      Floating		      off
      Location		      [622, 189, 1123, 391]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "0.2"
      YMin		      "-0.4"
      YMax		      "0.9"
      SaveName		      "ScopeData20"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope2"
      Ports		      [1]
      Position		      [695, 449, 725, 481]
      Floating		      off
      Location		      [5, 52, 1285, 769]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "-25"
      YMax		      "475"
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope3"
      Ports		      [1]
      Position		      [965, 399, 995, 431]
      Floating		      off
      Location		      [521, 350, 1022, 552]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "0.2"
      YMin		      "0"
      YMax		      "27.5"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope4"
      Ports		      [1]
      Position		      [700, 244, 730, 276]
      Floating		      off
      Location		      [5, 52, 1285, 769]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData5"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope5"
      Ports		      [1]
      Position		      [655, 394, 685, 426]
      Floating		      off
      Location		      [5, 52, 1285, 769]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "2"
      YMin		      "-25"
      YMax		      "400"
      SaveName		      "ScopeData8"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope6"
      Ports		      [1]
      Position		      [470, 209, 500, 241]
      Floating		      off
      Location		      [5, 52, 1285, 769]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "0.06"
      YMin		      "-4.16334e-017"
      YMax		      "0.575"
      SaveName		      "ScopeData11"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope7"
      Ports		      [1]
      Position		      [1020, 289, 1050, 321]
      Floating		      off
      Location		      [6, 592, 507, 794]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "0.2"
      YMax		      "25"
      SaveName		      "ScopeData12"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope8"
      Ports		      [1]
      Position		      [1090, 349, 1120, 381]
      Floating		      off
      Location		      [6, 592, 507, 794]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "0.2"
      YMax		      "25"
      SaveName		      "ScopeData14"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope9"
      Ports		      [1]
      Position		      [1235, 519, 1265, 551]
      Floating		      off
      Location		      [111, 302, 612, 504]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "0.5"
      YMin		      "0.1425"
      YMax		      "0.1575"
      SaveName		      "ScopeData15"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Speed Controller"
      Ports		      [2, 2]
      Position		      [185, 95, 285, 195]
      FontSize		      12
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskHideContents	      off
      MaskType		      "Speed controller"
      MaskDescription	      "This block implements a PI speed regulator."
      MaskHelp		      "\n"
      MaskPromptString	      "Regulation type|Base speed (rpm)|Speed referenc"
"e ramp (rpm/s) [deceleration,acceleration]|Proportional gain|Integral gain|Sp"
"eed measurement - low-pass filter cutoff frequency (Hz)|Controller output tor"
"que saturation (N.m) [negative,positive]|Motor pairs of poles|Machine nominal"
" flux (Wb)|Controller sampling time (s)"
      MaskStyleString	      "popup(Speed regulation|Torque regulation),edit,"
"edit,edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on,on,on,on"
      MaskCallbackString      "|||||||||"
      MaskEnableString	      "on,on,on,on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,,,"
      MaskVariables	      "SwK=@1;bs=&2;ramp=@3;kp=@4;ki=@5;fc=@6;ctrl_sat"
"=@7;p=@8;nf=@9;Tsc=@10;"
      MaskInitialization      "[X1,X1m,X2,X2m,X3,X4,Y1,Y1m,Y2,Y2m,Y3,Y4,color1"
",color2]=spsdrivelogo;"
      MaskDisplay	      "patch([X1 X1m],[Y1 Y1m],color1);\npatch(X3,Y3,c"
"olor2);\nplot([X1 X1m X2 X2m X3 X4],[Y1 Y1m Y2 Y2m Y3 Y4]);"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "normalized"
      MaskValueString	      "Speed regulation|1800|[-900,900]|10|200|100|[-1"
"200,1200]|2|0.8|140e-6"
      MaskTabNameString	      ",,,,,,,,,"
      System {
	Name			"Speed Controller"
	Location		[99, 218, 1111, 595]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "N"
	  Position		  [15, 168, 45, 182]
	  FontSize		  12
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "N*"
	  Position		  [15, 98, 45, 112]
	  NamePlacement		  "alternate"
	  FontSize		  12
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Abs
	  Name			  "Abs"
	  Position		  [440, 25, 470, 55]
	  ShowName		  off
	  FontSize		  12
	}
	Block {
	  BlockType		  BusCreator
	  Name			  "Bus\nCreator3"
	  Ports			  [4, 1]
	  Position		  [815, 187, 820, 328]
	  ShowName		  off
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [575, 122, 595, 138]
	  ShowName		  off
	  Value			  "SwK"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant1"
	  Position		  [275, 287, 295, 303]
	  ShowName		  off
	  Value			  "SwK"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant2"
	  Position		  [615, 252, 635, 268]
	  ShowName		  off
	  Value			  "SwK"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant3"
	  Position		  [610, 281, 635, 299]
	  ShowName		  off
	  Value			  "0"
	}
	Block {
	  BlockType		  Saturate
	  Name			  "Ctrl sat."
	  Position		  [660, 130, 690, 160]
	  FontSize		  12
	  UpperLimit		  "ctrl_sat(2)"
	  LowerLimit		  "ctrl_sat(1)"
	  Port {
	    PortNumber		    1
	    Name		    "Torque reference (Nm)"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  DiscreteIntegrator
	  Name			  "Discrete-Time\nIntegrator2"
	  Ports			  [1, 1]
	  Position		  [470, 93, 540, 137]
	  ShowName		  off
	  FontSize		  12
	  IntegratorMethod	  "Integration: Trapezoidal"
	  ExternalReset		  "none"
	  InitialConditionSource  "internal"
	  SampleTime		  "Tsc"
	  LimitOutput		  on
	  UpperSaturationLimit	  "ctrl_sat(2)"
	  LowerSaturationLimit	  "ctrl_sat(1)"
	  IgnoreLimit		  off
	  ICPrevOutput		  "DiscIntNeverNeededParam"
	  ICPrevScaledInput	  "DiscIntNeverNeededParam"
	}
	Block {
	  BlockType		  Lookup
	  Name			  "Flux table"
	  Position		  [485, 14, 535, 66]
	  FontSize		  12
	  InputValues		  "[0;500;1000;1500;1800;2000;2500;3000;3500]"
	  OutputValues		  "[nf;nf;nf;nf;nf;nf;0.90*nf;0.72*nf;0.51*nf]"
	  Port {
	    PortNumber		    1
	    Name		    "Flux reference (Wb)"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  InitialCondition
	  Name			  "IC"
	  Position		  [125, 95, 150, 135]
	  ShowName		  off
	  FontSize		  12
	  Value			  "0"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Integral gain"
	  Position		  [405, 97, 445, 133]
	  FontSize		  12
	  Gain			  "ki"
	}
	Block {
	  BlockType		  DiscreteTransferFcn
	  Name			  "Low pass filter"
	  Position		  [270, 158, 335, 192]
	  FontSize		  12
	  Numerator		  "[1-exp(-2*pi*fc*Tsc)]"
	  Denominator		  "[1 -exp(-2*pi*fc*Tsc)]"
	  SampleTime		  "Tsc"
	}
	Block {
	  BlockType		  MultiPortSwitch
	  Name			  "Multiport\nSwitch"
	  Ports			  [3, 1]
	  Position		  [615, 122, 645, 168]
	  ShowName		  off
	  Inputs		  "2"
	  InputSameDT		  off
	}
	Block {
	  BlockType		  MultiPortSwitch
	  Name			  "Multiport\nSwitch1"
	  Ports			  [3, 1]
	  Position		  [310, 287, 340, 333]
	  ShowName		  off
	  Inputs		  "2"
	  InputSameDT		  off
	  Port {
	    PortNumber		    1
	    Name		    "Reference"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  MultiPortSwitch
	  Name			  "Multiport\nSwitch2"
	  Ports			  [3, 1]
	  Position		  [655, 252, 685, 298]
	  ShowName		  off
	  Inputs		  "2"
	  InputSameDT		  off
	  Port {
	    PortNumber		    1
	    Name		    "Error"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "Proportional gain"
	  Position		  [405, 159, 445, 191]
	  FontSize		  12
	  Gain			  "kp"
	}
	Block {
	  BlockType		  RateLimiter
	  Name			  "Rate Limiter"
	  Position		  [175, 100, 205, 130]
	  ShowName		  off
	  FontSize		  12
	  RisingSlewLimit	  "ramp(2)"
	  FallingSlewLimit	  "ramp(1)"
	  LinearizeAsGain	  off
	}
	Block {
	  BlockType		  RateTransition
	  Name			  "Rate Transition1"
	  Position		  [830, 19, 885, 61]
	  ShowName		  off
	  FontSize		  12
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1]
	  Position		  [345, 105, 365, 125]
	  ShowName		  off

⌨️ 快捷键说明

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