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

📄 svpwm_pmsm_090312.mdl

📁 采用Matlab/simulink实现了基于SVPWM的PMSM仿真
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      }
      Port {
	PortNumber		2
	Name			"<Stator current is_b (A)>"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      Port {
	PortNumber		3
	Name			"<Stator current is_c (A)>"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
    }
    Block {
      BlockType		      Reference
      Name		      "DC Voltage Source"
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [365, 320, 385, 355]
      Orientation	      "up"
      NamePlacement	      "alternate"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Electrical\nSources/DC Voltage Source"
      SourceType	      "DC Voltage Source"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Amplitude		      "300"
      Measurements	      "None"
    }
    Block {
      BlockType		      Demux
      Name		      "Demux"
      Ports		      [1, 2]
      Position		      [295, 171, 300, 209]
      BackgroundColor	      "black"
      ShowName		      off
      Outputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Constant
      Name		      "Freq"
      Position		      [20, 85, 50, 115]
      Value		      "60"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
    }
    Block {
      BlockType		      Scope
      Name		      "Isabc2"
      Ports		      [3]
      Position		      [1050, 259, 1080, 291]
      Floating		      off
      Location		      [6, 54, 590, 407]
      Open		      on
      NumInputPorts	      "3"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
      }
      YMin		      "-20~-30~-20"
      YMax		      "25~15~20"
      SaveName		      "ScopeData7"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Permanent Magnet\nSynchronous Machine"
      Ports		      [1, 1, 0, 0, 0, 3]
      Position		      [740, 313, 825, 387]
      DialogController	      "POWERSYS.PowerSysDialog"
      FontSize		      11
      SourceBlock	      "powerlib/Machines/Permanent Magnet\nSynchronous Machine"
      SourceType	      "Permanent Magnet Synchronous Machine"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      FluxDistribution	      "Sinusoidal"
      MechanicalLoad	      "Torque Tm"
      PresetModel	      "No"
      ShowDetailedParameters  on
      Resistance	      "2.8750 "
      Inductance	      "8.5e-3"
      dqInductances	      "[8.5e-3, 8.5e-3]"
      Flux		      "0.175"
      Flat		      "120"
      Mechanical	      "[0.8e-3 1e-3 4]"
      PolePairs		      "4"
    }
    Block {
      BlockType		      Step
      Name		      "Step"
      Position		      [645, 290, 675, 320]
      NamePlacement	      "alternate"
      Time		      "0"
      After		      "0.5"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Universal Bridge"
      Ports		      [1, 0, 0, 0, 0, 3, 2]
      Position		      [490, 301, 560, 394]
      Orientation	      "left"
      BackgroundColor	      "yellow"
      DropShadow	      on
      NamePlacement	      "alternate"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Power\nElectronics/Universal Bridge"
      SourceType	      "Universal Bridge"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Arms		      "3"
      SnubberResistance	      "1e5"
      SnubberCapacitance      "inf"
      Device		      "IGBT / Diodes"
      Ron		      "1e-3"
      Lon		      "0"
      ForwardVoltages	      "[  0  0  ]"
      ForwardVoltage	      "0"
      GTOparameters	      "[ 10e-6 , 20e-6 ]"
      IGBTparameters	      "[ 1e-6 , 2e-6 ]"
      Measurements	      "None"
      converterType	      "Rectifier"
    }
    Block {
      BlockType		      SubSystem
      Name		      "V*2alfbe"
      Ports		      [3, 2]
      Position		      [95, 72, 175, 228]
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskPromptString	      "DC bus voltage measurement - low-pass filter cutoff frequency (Hz)|Switching frequency (Hz)|SVM sampling time (s)|Ts"
      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"
      MaskVarAliasString      ",,,"
      MaskVariables	      "fc_bus=@1;car_freq=@2;TsMLIV=@3;Ts=@4;"
      MaskInitialization      "[X1,X1m,X2,X2m,X3,X4,Y1,Y1m,Y2,Y2m,Y3,Y4,color1,color2]=spsdrivelogo;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "50|4500|20e-6|2e-6"
      MaskTabNameString	      ",,,"
      System {
	Name			"V*2alfbe"
	Location		[2, 82, 1270, 775]
	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			  "Freq*"
	  Position		  [25, 183, 55, 197]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "V*"
	  Position		  [25, 213, 55, 227]
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "dir"
	  Position		  [25, 243, 55, 257]
	  Port			  "3"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "3phases sin generator"
	  Ports			  [3, 1]
	  Position		  [150, 177, 250, 263]
	  NamePlacement		  "alternate"
	  FontSize		  12
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  System {
	    Name		    "3phases sin generator"
	    Location		    [76, 459, 798, 674]
	    Open		    on
	    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		      "Freq_com"
	      Position		      [15, 33, 45, 47]
	      NamePlacement	      "alternate"
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Vcom"
	      Position		      [15, 103, 45, 117]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "dir"
	      Position		      [15, 178, 45, 192]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [3, 1]
	      Position		      [410, 22, 415, 198]
	      ShowName		      off
	      Inputs		      "3"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      RateTransition
	      Name		      "Rate Transition"
	      Position		      [435, 89, 490, 131]
	      ShowName		      off
	      FontSize		      12
	    }
	    Block {
	      BlockType		      ZeroOrderHold
	      Name		      "Zero-Order\nHold4"
	      Position		      [510, 100, 530, 120]
	      ShowName		      off
	      FontSize		      12
	      SampleTime	      "Ts"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "sin_angle_generator"
	      Ports		      [1, 1]
	      Position		      [80, 23, 155, 57]
	      NamePlacement	      "alternate"
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      FunctionWithSeparateData off
	      System {
		Name			"sin_angle_generator"
		Location		[135, 226, 656, 553]
		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			  "freq_in"
		  Position		  [20, 38, 50, 52]
		  IconDisplay		  "Port number"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [15, 18, 50, 32]
		  ShowName		  off
		  Value			  "360"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant1"
		  Position		  [235, 73, 260, 97]
		  Orientation		  "left"
		  NamePlacement		  "alternate"
		  ShowName		  off
		  Value			  "360"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  DiscreteIntegrator
		  Name			  "Discrete-Time\nIntegrator"
		  Ports			  [2, 1]
		  Position		  [140, 24, 185, 66]
		  ShowName		  off
		  IntegratorMethod	  "Integration: Trapezoidal"
		  ExternalReset		  "rising"
		  InitialConditionSource  "internal"
		  SampleTime		  "TsMLIV"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		  ICPrevOutput		  "DiscIntNeverNeededParam"
		  ICPrevScaledInput	  "DiscIntNeverNeededParam"
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [2, 1]
		  Position		  [85, 16, 110, 54]
		  ShowName		  off
		  CollapseMode		  "All dimensions"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		  RndMeth		  "Floor"
		}
		Block {
		  BlockType		  RelationalOperator
		  Name			  "Relational\nOperator"
		  Position		  [170, 70, 195, 90]
		  Orientation		  "left"
		  NamePlacement		  "alternate"
		  ShowName		  off
		}
		Block {
		  BlockType		  UnitDelay
		  Name			  "Unit Delay"
		  Position		  [120, 70, 145, 90]
		  Orientation		  "left"
		  NamePlacement		  "alternate"
		  ShowName		  off
		  SampleTime		  "TsMLIV"
		}
		Block {
		  BlockType		  Outport
		  Name			  "sin_out"
		  Position		  [235, 38, 265, 52]
		  IconDisplay		  "Port number"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Line {
		  SrcBlock		  "Product"
		  SrcPort		  1
		  DstBlock		  "Discrete-Time\nIntegrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  DstBlock		  "Product"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "freq_in"
		  SrcPort		  1
		  DstBlock		  "Product"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Discrete-Time\nIntegrator"
		  SrcPort		  1
		  Points		  [20, 0]
		  Branch {
		    DstBlock		    "Relational\nOperator"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "sin_out"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Constant1"
		  SrcPort		  1
		  DstBlock		  "Relational\nOperator"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Relational\nOperator"
		  SrcPort		  1
		  DstBlock		  "Unit Delay"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Unit Delay"
		  SrcPort		  1
		  Points		  [0, -25]
		  DstBlock		  "Discrete-Time\nIntegrator"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "sin_phi_0"
	      Ports		      [2, 1]
	      Position		      [220, 30, 295, 70]
	      NamePlacement	      "alternate"
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      FunctionWithSeparateData off
	      System {
		Name			"sin_phi_0"
		Location		[18, 150, 291, 261]
		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			  "freq_in"
		  Position		  [20, 33, 50, 47]
		  IconDisplay		  "Port number"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  Inport
		  Name			  "amp_in"
		  Position		  [20, 73, 50, 87]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"

⌨️ 快捷键说明

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