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

📄 hev.mdl

📁 This submission includes the presentation and model files that were used in delivering a webinar on
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	      SrcBlock		      "I1"
	      SrcPort		      1
	      Points		      [5, 0; 0, 280]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Pulses"
	      SrcPort		      1
	      DstBlock		      "Chopper"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Integrator1"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Integrator"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "eEnergy"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product1"
	      SrcPort		      1
	      DstBlock		      "Integrator"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "Integrator1"
	      DstPort		      1
	    }
	    Line {
	      Name		      "UatBus"
	      Labels		      [0, 0]
	      SrcBlock		      "U"
	      SrcPort		      1
	      Points		      [25, 0]
	      Branch {
		Labels			[1, 0]
		DstBlock		"UBus"
		DstPort			1
	      }
	      Branch {
		Points			[0, 175]
		DstBlock		"Product1"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "U2"
	      SrcPort		      1
	      Points		      [-5, 0; 0, 5]
	      DstBlock		      "eEnergy1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Reference
	  Name			  "Motion Sensor"
	  Ports			  [0, 1, 0, 0, 0, 1]
	  Position		  [730, 375, 780, 425]
	  Orientation		  "left"
	  SourceBlock		  "driveline/Sensors &\nActuators/Motion Senso"
"r"
	  SourceType		  "Motion Sensor"
	  ShowPortLabels	  "on"
	  Angle			  "off"
	  x0			  "0"
	  Velocity		  "on"
	  Acceleration		  "off"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux1"
	  Ports			  [2, 1]
	  Position		  [650, 156, 655, 209]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux2"
	  Ports			  [2, 1]
	  Position		  [645, 74, 650, 121]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "PM Synchronous Motor Drive\nAC6"
	  Ports			  [2, 2, 0, 0, 0, 2]
	  Position		  [295, 28, 410, 152]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskHideContents	  off
	  System {
	    Name		    "PM Synchronous Motor Drive\nAC6"
	    Location		    [51, 246, 970, 703]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "SP"
	      Position		      [65, 104, 95, 116]
	      FontSize		      12
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "wm (rad/s)"
	      Position		      [580, 224, 610, 236]
	      NamePlacement	      "alternate"
	      FontSize		      12
	      Port		      "2"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      BusSelector
	      Name		      "Bus\nSelector"
	      Ports		      [1, 2]
	      Position		      [765, 66, 770, 104]
	      Orientation	      "left"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      OutputSignals	      "Rotor speed wm (rad/s),Rotor angle thet"
"am (rad)"
	      Port {
		PortNumber		1
		Name			"<Rotor speed wm (rad/s)>"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	      Port {
		PortNumber		2
		Name			"<Rotor angle thetam (rad)>"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Measures"
	      Ports		      [0, 1, 0, 0, 0, 3, 3]
	      Position		      [485, 304, 550, 376]
	      FontSize		      12
	      SourceBlock	      "electricdrivelib/AC drives/PM Synchrono"
"us Motor Drive/Measures"
	      SourceType	      "SubSystem"
	      ShowPortLabels	      "on"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Mux"
	      Ports		      [2, 1]
	      Position		      [355, 122, 395, 153]
	      Orientation	      "left"
	      NamePlacement	      "alternate"
	      FontSize		      12
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskHideContents	      off
	      System {
		Name			"Mux"
		Location		[858, 286, 1210, 508]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "sig*"
		  Position		  [260, 23, 290, 37]
		  Orientation		  "left"
		  IconDisplay		  "Port number"
		  Port {
		    PortNumber		    1
		    Name		    "Signals*"
		    PropagatedSignals	    "iabc*, Pulses*"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		}
		Block {
		  BlockType		  Inport
		  Name			  "m"
		  Position		  [260, 63, 290, 77]
		  Orientation		  "left"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  Port {
		    PortNumber		    1
		    Name		    "m"
		    PropagatedSignals	    "Stator current is_a (A), Stator c"
"urrent is_b (A), Stator current is_c (A), Stator current is_q (A), Stator cur"
"rent is_d (A), Stator voltage Vs_q (V), Stator voltage Vs_d (V), Hall effect "
"signal h_a, Hall effect signal h_b, Hall effect signal h_c, Rotor speed wm (r"
"ad/s), Rotor angle thetam (rad), Electromagnetic torque Te (N*m)"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		}
		Block {
		  BlockType		  BusCreator
		  Name			  "Bus\nCreator"
		  Ports			  [2, 1]
		  Position		  [80, 31, 85, 69]
		  Orientation		  "left"
		  NamePlacement		  "alternate"
		  ShowName		  off
		  Inputs		  "2"
		  DisplayOption		  "bar"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Ctrl"
		  Position		  [25, 43, 55, 57]
		  Orientation		  "left"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "Bus\nCreator"
		  SrcPort		  1
		  DstBlock		  "Ctrl"
		  DstPort		  1
		}
		Line {
		  Name			  "Signals*"
		  Labels		  [2, 0]
		  SrcBlock		  "sig*"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Bus\nCreator"
		  DstPort		  1
		}
		Line {
		  Name			  "m"
		  Labels		  [2, 0]
		  SrcBlock		  "m"
		  SrcPort		  1
		  Points		  [0, -10]
		  DstBlock		  "Bus\nCreator"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "PMSM1"
	      Ports		      [1, 1, 0, 0, 0, 3]
	      Position		      [645, 218, 715, 287]
	      NamePlacement	      "alternate"
	      AttributesFormatString  "\\n"
	      SourceBlock	      "powerlib/Machines/Permanent Magnet\nSyn"
"chronous Machine"
	      SourceType	      "Permanent Magnet Synchronous Machine"
	      ShowPortLabels	      "on"
	      FluxDistribution	      "Sinusoidal"
	      MechanicalLoad	      "Speed w"
	      PresetModel	      "No"
	      ShowDetailedParameters  "on"
	      Resistance	      "0.05"
	      Inductance	      "0"
	      dqInductances	      "[0.00635,0.00635]"
	      Flux		      "0.192"
	      Flat		      "0"
	      Mechanical	      "[0.089,0.001889,4]"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Speed Controller1"
	      Ports		      [2, 2]
	      Position		      [165, 35, 265, 135]
	      NamePlacement	      "alternate"
	      FontSize		      12
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskHideContents	      off
	      MaskType		      "Speed controller"
	      MaskDescription	      "This block implements a PI speed regula"
"tor.\n"
	      MaskHelp		      "\n"
	      MaskPromptString	      "Regulation type|Base speed (rpm)|Speed "
"reference ramp (rpm/s) [deceleration,acceleration]|Proportional gain|Integral"
" gain|Speed measurement - low-pass filter cutoff frequency (Hz)|Controller ou"
"tput torque saturation (N.m) [negative,positive]|Controller sampling time (s)"
	      MaskStyleString	      "popup(Speed regulation|Torque regulatio"
"n),edit,edit,edit,edit,edit,edit,edit"
	      MaskTunableValueString  "on,on,on,on,on,on,on,on"
	      MaskCallbackString      "|||||||"
	      MaskEnableString	      "on,on,on,on,on,on,on,on"
	      MaskVisibilityString    "on,on,on,on,on,on,on,on"
	      MaskToolTipString	      "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;Tsc=@8;"
	      MaskInitialization      "[X1,X1m,X2,X2m,X3,X4,Y1,Y1m,Y2,Y2m,Y3,Y"
"4,color1,color2]=spsdrivelogo;"
	      MaskDisplay	      "patch([X1 X1m],[Y1 Y1m],color1);\npatch"
"(X3,Y3,color2);\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|[-10000,10000]|3|"
"100|100|[-150,150]|150e-6"
	      MaskTabNameString	      ",,,,,,,"
	      System {
		Name			"Speed Controller1"
		Location		[18, 179, 1005, 436]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "N"
		  Position		  [15, 93, 45, 107]
		  FontSize		  12
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Inport
		  Name			  "N*"
		  Position		  [15, 33, 45, 47]
		  NamePlacement		  "alternate"
		  FontSize		  12
		  Port			  "2"
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  BusCreator
		  Name			  "Bus\nCreator3"
		  Ports			  [3, 1]
		  Position		  [815, 116, 820, 234]
		  ShowName		  off
		  Inputs		  "3"
		  DisplayOption		  "bar"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [575, 47, 595, 63]
		  ShowName		  off
		  Value			  "SwK"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant1"
		  Position		  [275, 192, 295, 208]
		  ShowName		  off
		  Value			  "SwK"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant2"
		  Position		  [620, 152, 640, 168]
		  ShowName		  off
		  Value			  "SwK"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant3"
		  Position		  [605, 181, 630, 199]
		  ShowName		  off
		  Value			  "0"
		}
		Block {
		  BlockType		  Saturate
		  Name			  "Ctrl sat."
		  Position		  [660, 55, 690, 85]
		  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, 18, 540, 62]
		  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		  InitialCondition
		  Name			  "IC"
		  Position		  [125, 20, 150, 60]
		  ShowName		  off
		  FontSize		  12
		  Value			  "0"
		}
		Block {
		  BlockType		  Gain
		  Name			  "Integral gain"
		  Position		  [405, 22, 445, 58]
		  FontSize		  12
		  Gain			  "ki"
		}
		Block {
		  BlockType		  DiscreteTransferFcn
		  Name			  "Low pass filter"
		  Position		  [285, 83, 350, 117]
		  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, 47, 645, 93]
		  ShowName		  off
		  Inputs		  "2"
		  InputSameDT		  

⌨️ 快捷键说明

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