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

📄 tiaosu_1.mdl

📁 双馈电机的matlab/simulink开环调速源码
💻 MDL
📖 第 1 页 / 共 4 页
字号:
      Tf		      "0"
      w0		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "DC Voltage Source"
      Description	      "source block"
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [465, 207, 485, 243]
      Orientation	      "left"
      AttributesFormatString  "\\n"
      SourceBlock	      "powerlib/Electrical\nSources/DC Voltage Source"
      SourceType	      "DC Voltage Source"
      Amplitude		      "220"
      Measurements	      "None"
    }
    Block {
      BlockType		      Demux
      Name		      "Demux"
      Ports		      [1, 4]
      Position		      [615, 144, 620, 211]
      BackgroundColor	      "black"
      ShowName		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Ground"
      Ports		      [0, 0, 0, 0, 0, 1]
      Position		      [34, 180, 56, 205]
      Orientation	      "down"
      AttributesFormatString  "\\n"
      SourceBlock	      "powerlib/Elements/Ground"
      SourceType	      "Ground"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      PortType		      "p1"
      LConnTagsString	      "a"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [3, 1]
      Position		      [670, 301, 675, 339]
      ShowName		      off
      Inputs		      "3"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [1]
      Position		      [315, 219, 345, 251]
      Location		      [1, 56, 1025, 737]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      YMin		      "0"
      YMax		      "1"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [4]
      Position		      [665, 144, 695, 211]
      Location		      [1, 56, 1025, 737]
      Open		      off
      NumInputPorts	      "4"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
	axes4			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
	axes3			""
	axes4			""
      }
      YMin		      "40~50~0.916667~0"
      YMax		      "180~450~0.916667~800"
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Scope2"
      Ports		      [1]
      Position		      [315, 39, 345, 71]
      Location		      [1, 56, 1025, 737]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      YMin		      "-400"
      YMax		      "400"
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Reference
      Name		      "Series RLC Branch"
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [285, 126, 355, 154]
      FontSize		      10
      SourceBlock	      "powerlib/Elements/Series RLC Branch"
      SourceType	      "Series RLC Branch"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      PortType		      "p1"
      LConnTagsString	      "__new0"
      RConnTagsString	      "__new0"
      Resistance	      "0"
      Inductance	      "5e-3"
      Capacitance	      "inf"
      Measurements	      "None"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem"
      Ports		      [2, 1, 0, 0, 0, 2, 1]
      Position		      [230, 247, 270, 308]
      TreatAsAtomicUnit	      off
      System {
	Name			"Subsystem"
	Location		[313, 477, 808, 697]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "in2"
	  Position		  [25, 168, 55, 182]
	}
	Block {
	  BlockType		  Inport
	  Name			  "Uct"
	  Position		  [30, 28, 60, 42]
	  Port			  "2"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Synchronized\n6-Pulse Generator"
	  Ports			  [5, 1]
	  Position		  [315, 64, 390, 136]
	  FontSize		  10
	  SourceBlock		  "powerlib_extras/Control \nBlocks/Synchroniz"
"ed\n6-Pulse Generator"
	  SourceType		  "Synchronized 6-pulse generator"
	  freq			  "50"
	  pwidth		  "10"
	  Double_Pulse		  off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Voltage Measurement"
	  Tag			  "PoWeRsYsTeMmEaSuReMeNt"
	  Ports			  [0, 1, 0, 0, 0, 2]
	  Position		  [195, 48, 220, 72]
	  AttributesFormatString  "\\n"
	  AncestorBlock		  "powerlib/Measurements/Voltage Measurement"
	  CopyFcn		  "powericon('psbloadfunction',gcbh,'Measureme"
"nt Block','VerifyPhasor');"
	  LoadFcn		  "powericon('psbloadfunction',gcbh,'Measureme"
"nt Block','');"
	  PreSaveFcn		  "powericon('psbloadfunction',gcbh,'ModelClos"
"eFcn','');"
	  InitFcn		  "powericon('psbloadfunction',gcbh,'InitFcnOf"
"SPSBlocks','Measurement Block');"
	  CloseFcn		  "powericon('psbloadfunction',gcbh,'CloseFcn'"
",'');"
	  TreatAsAtomicUnit	  off
	  MaskType		  "Voltage Measurement"
	  MaskDescription	  "Ideal voltage measurement."
	  MaskHelp		  "web(psbhelp);"
	  MaskPromptString	  "Phasor simulation|Output signal :|Equivalen"
"t circuit"
	  MaskStyleString	  "checkbox,popup(Complex|Real-Imag|Magnitude-"
"Angle|Magnitude),edit"
	  MaskTunableValueString  "on,on,on"
	  MaskCallbackString	  "||"
	  MaskEnableString	  "off,off,off"
	  MaskVisibilityString	  "off,on,off"
	  MaskToolTipString	  "on,on,on"
	  MaskVarAliasString	  ",,"
	  MaskVariables		  "PhasorSimulation=@1;OutputType=@2;PSBequiva"
"lent=@3;"
	  MaskInitialization	  "switch OutputType\ncase 1\n    OutputSelect"
"ion = 1;\n    NormalMode = 2;\n    PhasorMode = 1;\ncase 2\n    OutputSelecti"
"on =[2,3];\n    NormalMode = 3;\n    PhasorMode = [1,2];\ncase 3\n    OutputS"
"election =[4,5];\n    NormalMode = 3;\n    PhasorMode = [1,2];\ncase 4\n    O"
"utputSelection =[4];\n    NormalMode = 2;\n    PhasorMode = 1;\nend\n%\nif Ph"
"asorSimulation\n    SelectionMode = PhasorMode;\nelse\n    SelectionMode = No"
"rmalMode;\nend\n"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  off
	  MaskIconRotate	  "port"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "off|Magnitude|1"
	  System {
	    Name		    "Voltage Measurement"
	    Location		    [206, 474, 665, 687]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [2, 1]
	      Position		      [275, 121, 280, 179]
	      ShowName		      off
	      Inputs		      "2"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Phasor Measurements"
	      Ports		      [1, 1, 1]
	      Position		      [145, 123, 250, 147]
	      BackgroundColor	      "green"
	      TreatAsAtomicUnit	      on
	      System {
		Name			"Phasor Measurements"
		Location		[255, 525, 861, 796]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "measure"
		  Position		  [70, 28, 100, 42]
		}
		Block {
		  BlockType		  EnablePort
		  Name			  "Enable"
		  Ports			  []
		  Position		  [20, 15, 40, 35]
		}
		Block {
		  BlockType		  Gain
		  Name			  "180/pi"
		  Position		  [225, 105, 245, 125]
		  Gain			  "180/pi"
		}
		Block {
		  BlockType		  ComplexToMagnitudeAngle
		  Name			  "Complex to\nMagnitude-Angle"
		  Ports			  [1, 2]
		  Position		  [140, 85, 195, 125]
		  ShowName		  off
		  Output		  "Magnitude and angle"
		}
		Block {
		  BlockType		  ComplexToRealImag
		  Name			  "Complex to\nReal-Imag"
		  Ports			  [1, 2]
		  Position		  [140, 45, 195, 85]
		  ShowName		  off
		  Output		  "Real and imag"
		}
		Block {
		  BlockType		  Mux
		  Name			  "Mux2"
		  Ports			  [5, 1]
		  Position		  [275, 23, 280, 127]
		  ShowName		  off
		  Inputs		  "5"
		  DisplayOption		  "bar"
		}
		Block {
		  BlockType		  Selector
		  Name			  "Selector"
		  Ports			  [1, 1]
		  Position		  [315, 51, 350, 99]
		  Elements		  "OutputSelection"
		  InputPortWidth	  "5"
		}
		Block {
		  BlockType		  Outport
		  Name			  "options"
		  Position		  [380, 68, 410, 82]
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Mux2"
		  SrcPort		  1
		  DstBlock		  "Selector"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "measure"
		  SrcPort		  1
		  Points		  [0, 0; 5, 0]
		  Branch {
		    Points		    [0, 30]
		    Branch {
		    Points		    [0, 40]
		    DstBlock		    "Complex to\nMagnitude-Angle"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Complex to\nReal-Imag"
		    DstPort		    1
		    }
		  }
		  Branch {
		    DstBlock		    "Mux2"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Complex to\nReal-Imag"
		  SrcPort		  1
		  DstBlock		  "Mux2"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Complex to\nReal-Imag"
		  SrcPort		  2
		  DstBlock		  "Mux2"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Complex to\nMagnitude-Angle"
		  SrcPort		  1
		  DstBlock		  "Mux2"
		  DstPort		  4
		}
		Line {
		  SrcBlock		  "Complex to\nMagnitude-Angle"
		  SrcPort		  2
		  DstBlock		  "180/pi"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "180/pi"
		  SrcPort		  1
		  DstBlock		  "Mux2"
		  DstPort		  5
		}
		Line {
		  SrcBlock		  "Selector"
		  SrcPort		  1
		  DstBlock		  "options"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Selector"
	      Ports		      [1, 1]
	      Position		      [305, 128, 370, 172]
	      Elements		      "SelectionMode"
	      InputPortWidth	      "length(OutputSelection)+1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Simulation method"
	      Position		      [140, 85, 250, 105]
	      Orientation	      "down"
	      BackgroundColor	      "magenta"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Value		      "PhasorSimulation"
	    }
	    Block {
	      BlockType		      PMComponent
	      Name		      "VoltageMeasurement"
	      Ports		      [0, 0, 0, 0, 0, 1, 1]
	      Position		      [80, 21, 145, 49]
	      PhysicalDomain	      "powersysdomain"
	      PortType		      "p1"
	      LConnTagsString	      "+"
	      RConnTagsString	      "-"
	      MaskType		      "InnerPowersysBlock"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "source"
	      Ports		      [0, 1]
	      Position		      [25, 124, 95, 146]
	      TreatAsAtomicUnit	      off
	      MaskInitialization      "pss=powericon('loadsavedata','tiaosu_1'"
",'load');if isempty(pss),A=0;B=0;C=0;D=0;x0=0;Rswitch=0;TypeSwitch=0;Ts=0;YSw"
"itchCurrent=-1;else,A=pss.A;B=pss.B;C=pss.C;D=pss.D;x0=pss.x0;Rswitch=pss.Rsw"
"itch;TypeSwitch=pss.TypeSwitch;Ts=0;YSwitchCurrent=pss.YSwitchCurrent;end"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      System {
		Name			"source"
		Location		[442, 172, 1084, 578]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Mux
		  Name			  "MasterMux"
		  Ports			  [2, 1]
		  Position		  [315, 106, 340, 144]
		  NamePlacement		  "alternate"
		  Inputs		  "[-1 6]"
		}
		Block {
		  BlockType		  Mux
		  Name			  "Mux"
		  Ports			  [2, 1]
		  Position		  [140, 67, 170, 163]
		  Inputs		  "[6 5]"
		}
		Block {
		  BlockType		  Mux
		  Name			  "MuxSwitch"
		  Ports			  [1, 1]
		  Position		  [235, 126, 265, 214]
		  Inputs		  "1"
		}
		Block {
		  BlockType		  Mux
		  Name			  "MuxVf"
		  Ports			  [1, 1]
		  Position		  [265, 256, 295, 344]
		  Orientation		  "left"
		  Inputs		  "1"
		}
		Block {
		  BlockType		  Selector
		  Name			  "SelectorVf"
		  Ports			  [1, 1]
		  Position		  [225, 287, 245, 313]
		  Orientation		  "left"
		  InputPortWidth	  "6"
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "State-Space"
		  Ports			  [1, 1]
		  Position		  [375, 103, 455, 147]
		  FunctionName		  "sfun_psbcontc"
		  Parameters		  "A,B,C,D,x0,Rswitch,YSwitchCurrent"
		  MaskIconFrame		  on
		  MaskIconOpaque	  on
		  MaskIconRotate	  "none"
		  MaskIconUnits		  "autoscale"
		}
		Block {
		  BlockType		  Terminator
		  Name			  "T"
		  Position		  [195, 335, 215, 355]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "electrical sources"
		  Ports			  [0, 1]
		  Position		  [50, 102, 75, 128]
		  TreatAsAtomicUnit	  off
		  System {
		    Name		    "electrical sources"
		    Location		    [49, 463, 473, 721]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "A4"
		    PaperUnits		    "centimeters"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Mux
		    Name		    "Mux"
		    Ports		    [5, 1]
		    Position		    [165, 119, 205, 151]
		    Inputs		    "[2 2 2 2 2]"
		    }

⌨️ 快捷键说明

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