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

📄 asy_generator_self.mdl

📁 经典的50例电机仿真
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	}
	Line {
	  SrcBlock		  "Bus Bar (vert)1"
	  SrcPort		  1
	  DstBlock		  "Ground (input)"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  3
	  DstBlock		  "Controlled Current Source2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  2
	  DstBlock		  "Controlled Current Source1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  1
	  DstBlock		  "Controlled Current Source"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux2"
	  SrcPort		  1
	  DstBlock		  "abc_to_dq0\nTransformation1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Voltage Measurement1"
	  SrcPort		  1
	  DstBlock		  "Mux2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Voltage Measurement"
	  SrcPort		  1
	  Points		  [75, 0]
	  DstBlock		  "Mux2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "dq0_to_abc\nTranformation"
	  SrcPort		  1
	  DstBlock		  "Demux1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Selector5"
	  SrcPort		  1
	  Points		  [-245, 0; 0, 130]
	  DstBlock		  "Mux"
	  DstPort		  6
	}
	Line {
	  SrcBlock		  "Selector4"
	  SrcPort		  1
	  Points		  [-350, 0; 0, 130]
	  DstBlock		  "Mux"
	  DstPort		  5
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  4
	  Points		  [15, 0; 0, 45; -175, 0; 0, -80]
	  DstBlock		  "Mux"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  3
	  Points		  [5, 0; 0, 60; -155, 0]
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Mux1"
	  SrcPort		  1
	  DstBlock		  "dq0_to_abc\nTranformation"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  DstBlock		  "Mux1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  Points		  [0, 0; 15, 0]
	  Branch {
	    DstBlock		    "Mux1"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, -65; -175, 0; 0, 40]
	    DstBlock		    "Mux"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  Points		  [0, 0; 5, 0]
	  Branch {
	    DstBlock		    "Mux1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -30; -155, 0]
	    DstBlock		    "Mux"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "MATLAB Fcn"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "MATLAB Fcn"
	  SrcPort		  1
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Discrete\nVirtual PLL"
	  SrcPort		  1
	  DstBlock		  "Terminator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Discrete\nVirtual PLL"
	  SrcPort		  3
	  DstBlock		  "Terminator1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Discrete\nVirtual PLL1"
	  SrcPort		  1
	  DstBlock		  "Terminator2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Discrete\nVirtual PLL1"
	  SrcPort		  3
	  DstBlock		  "Terminator3"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Bus Bar (vert)1"
      Tag		      "PoWeRsYsTeMbLoCk"
      Ports		      [3, 1]
      Position		      [565, 267, 570, 333]
      BackgroundColor	      "black"
      ShowName		      off
      SourceBlock	      "powerlib2/Connectors/Bus Bar (vert)"
      SourceType	      "Bus Bar"
      entrees		      "3"
      sorties		      "1"
      PSBOutputType	      "11111111111111111111111111111111111111111111111"
"111111111111111111111111111111111111111111"
    }
    Block {
      BlockType		      Constant
      Name		      "Constant1"
      Position		      [255, 294, 275, 326]
      ShowName		      off
      Value		      "314"
    }
    Block {
      BlockType		      Reference
      Name		      "Ground (input)"
      Tag		      "PoWeRsYsTeMbLoCk"
      Ports		      [1]
      Position		      [610, 315, 640, 335]
      Orientation	      "down"
      ShowName		      off
      SourceBlock	      "powerlib2/Connectors/Ground (input)"
      SourceType	      "Ground"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [2]
      Position		      [610, 339, 640, 406]
      Location		      [171, 332, 597, 636]
      Open		      off
      NumInputPorts	      "2"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"定子电压"
	axes2			"定子电流"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
      }
      TimeRange		      "5               "
      YMin		      "-250~-4"
      YMax		      "250~4"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleInput	      on
    }
    Block {
      BlockType		      Selector
      Name		      "Selector1"
      Ports		      [1, 1]
      Position		      [480, 342, 520, 368]
      ShowName		      off
      Elements		      "[1 ]"
      InputPortWidth	      "3"
    }
    Block {
      BlockType		      Selector
      Name		      "Selector2"
      Ports		      [1, 1]
      Position		      [540, 378, 580, 402]
      ShowName		      off
      Elements		      "[1 ]"
      InputPortWidth	      "3"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Three-Phase\nV-I Measrement1"
      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
      Ports		      [3, 5]
      Position		      [375, 278, 420, 342]
      ShowName		      off
      AncestorBlock	      "powerlib2/Measurements/Three-Phase\nV-I Measure"
"ment"
      CopyFcn		      "  powericon('psbloadfunction',gcbh,'3-Phase VI "
"Measurement','VerifyPhasor');   "
      LoadFcn		      "powericon('psbloadfunction',gcbh,'3-Phase VI Me"
"asurement','');"
      InitFcn		      "powericon('checksum',bdroot)"
      CloseFcn		      "%3phaseVImeasurement"
      TreatAsAtomicUnit	      off
      MaskType		      "3-Phase VI Measurement"
      MaskDescription	      "This block is used to measure three-phase volta"
"ges and currents in a circuit. When connected in series with a three-phase el"
"ement, it return the three phase-to-ground voltages and line currents.\n\nThe"
" block can output the voltages and currents in per unit values or in volts an"
"d amperes. Check the appropriate boxes if you want to output the voltages and"
" currents  in pu"
      MaskHelp		      "web(psbhelp)"
      MaskPromptString	      "Voltage measurement|Use a label |Signal label  "
"(use a From block to collect signal)|Voltage  in pu|Base voltage (Vrms phase-"
"phase) :|Current measurement|Use a label|Signal label  (use a From block to c"
"ollect signal)|Currents in pu|Base power ( VA 3 phase)|Output signal :|Phasor"
" simulation|Equivalent circuit|PSBOutputType"
      MaskStyleString	      "popup(no|phase-to-ground|phase-to-phase),checkb"
"ox,edit,checkbox,edit,popup(no|yes),checkbox,edit,checkbox,edit,popup(Complex"
"|Real-Imag|Magnitude-Angle|Magnitude),checkbox,edit,edit"
      MaskTunableValueString  "off,off,off,on,on,off,off,off,on,on,on,on,on,on"
      MaskCallbackString      "powericon('psbcallbacks',gcb,'Three-phase measu"
"rements',2);|powericon('psbcallbacks',gcb,'Three-phase measurements',2);||pow"
"ericon('psbcallbacks',gcb,'Three-phase measurements',2);||powericon('psbcallb"
"acks',gcb,'Three-phase measurements',2);|powericon('psbcallbacks',gcb,'Three-"
"phase measurements',2);||powericon('psbcallbacks',gcb,'Three-phase measuremen"
"ts',4);|||||"
      MaskEnableString	      "on,on,on,on,on,on,on,on,on,on,off,on,off,on"
      MaskVisibilityString    "on,on,off,on,on,on,on,off,on,on,on,off,off,off"
      MaskToolTipString	      "on,on,on,on,on,on,on,on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,,,,,,,"
      MaskVariables	      "VChoice=@1;ualv=@2;labelV=&3;Vpu=@4;Vbase=@5;IC"
"hoice=@6;ualc=@7;labelC=&8;Ppu=@9;Pbase=@10;OutputType=@11;PhasorSimulation=@"
"12;PSBequivalent=@13;PSBOutputType=&14;"
      MaskInitialization      "powericon('psbcallbacks',gcb,'Three-phase measu"
"rements',4);\nif  Vpu\n    xKv=1/(Vbase/sqrt(3)*sqrt(2));\nelse\n    xKv=1;\n"
"end\nif  Ppu\n    xKi=1/(Pbase/Vbase/sqrt(3)*sqrt(2));\nelse\n    xKi=1;\nend"
"\nswitch OutputType\ncase 1\n    OutputSelection  = [1:6];\n    PhasorModeV ="
" [1:3];\n    NormalModeV = [7:9];\n    PhasorModeI = [4:6];\n    NormalModeI "
"= [10:12];\n    Kv = xKv;\n    Ki = xKi;\ncase 2\n    OutputSelection = [7,13"
",8,14,9,15,10,16,11,17,12,18];\n    PhasorModeV = [1:6];\n    NormalModeV = ["
"13:15];\n    PhasorModeI = [7:12];\n    NormalModeI = [16:18];\n    Kv = xKv;"
"\n    Ki = xKi;\ncase 3\n    OutputSelection = [13,19,14,20,15,21,16,22,17,23"
",18,24];\n    PhasorModeV = [1:6];\n    NormalModeV = [13:15];\n    PhasorMod"
"eI = [7:12];\n    NormalModeI = [16:18];\n    Kv = [xKv 1 xKv 1 xKv 1];\n    "
"Ki = [xKi 1 xKi 1 xKi 1];\ncase 4\n    OutputSelection  = [19:24];\n    Phaso"
"rModeV = [1:3];\n    NormalModeV = [7:9];\n    PhasorModeI = [4:6];\n    Norm"
"alModeI = [10:12];\n    Kv = xKv;\n    Ki = xKi;\nend\nif PhasorSimulation\n "
"   SelectionModeV = PhasorModeV;\n    SelectionModeI = PhasorModeI;\nelse\n  "
"  SelectionModeV = NormalModeV;\n    SelectionModeI = NormalModeI;\n    Kv = "
"xKv;\n    Ki = xKi;\nend"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "phase-to-ground|off|V1|on|1|yes|off|I1|on|1|Com"
"plex|off|1|11100"
      System {
	Name			"Three-Phase\nV-I Measrement1"
	Location		[357, 382, 1063, 777]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "A"
	  Position		  [15, 23, 45, 37]
	}
	Block {
	  BlockType		  Inport
	  Name			  "B"
	  Position		  [15, 83, 45, 97]
	  Port			  "2"
	}
	Block {
	  BlockType		  Inport
	  Name			  "C"
	  Position		  [15, 138, 45, 152]
	  Port			  "3"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [155, 15, 175, 35]
	  Value			  "NaN"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant1"
	  Position		  [160, 60, 180, 80]
	  Value			  "NaN"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant2"
	  Position		  [150, 120, 170, 140]
	  NamePlacement		  "alternate"
	  Value			  "NaN"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Ia"
	  Ports			  [0, 1]
	  Position		  [55, 279, 90, 301]
	  AncestorBlock		  "powerlib2/Measurements/Three-Phase\nV-I Mea"
"surement/Ia"
	  TreatAsAtomicUnit	  off
	  System {
	    Name		    "Ia"
	    Location		    [153, 397, 333, 481]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      From
	      Name		      "source"
	      Position		      [25, 29, 100, 61]
	      NamePlacement	      "alternate"
	      GotoTag		      "tp025551"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [125, 38, 155, 52]
	    }
	    Line {
	      SrcBlock		      "source"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Ib"
	  Ports			  [0, 1]
	  Position		  [15, 304, 50, 326]
	  AncestorBlock		  "powerlib2/Measurements/Three-Phase\nV-I Mea"
"surement/Ib"
	  TreatAsAtomicUnit	  off
	  System {
	    Name		    "Ib"
	    Location		    [153, 397, 333, 481]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      From
	      Name		      "source"
	      Position		      [25, 29, 100, 61]
	      NamePlacement	      "alternate"
	      GotoTag		      "tp025552"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [125, 38, 155, 52]
	    }
	    Line {
	      SrcBlock		      "source"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Ic"
	  Ports			  [0, 1]
	  Position		  [55, 329, 90, 351]
	  AncestorBlock		  "powerlib2/Measurements/Three-Phase\nV-I Mea"
"surement/Ic"
	  TreatAsAtomicUnit	  off
	  System {
	    Name		    "Ic"
	    Location		    [153, 397, 333, 481]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      From
	      Name		      "source"
	      Position		      [25, 29, 100, 61]
	      NamePlacement	      "alternate"
	      GotoTag		      "tp025553"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [125, 38, 155, 52]
	    }
	    Line {
	      SrcBlock		      "source"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "Ki"
	  Position		  [490, 301, 520, 339]
	  ShowName		  off
	  Gain			  "Ki"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Kv"
	  Position		  [490, 243, 525, 287]
	  ShowName		  off
	  Gain			  "Kv"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux1"
	  Ports			  [6, 1]
	  Position		  [145, 208, 150, 347]
	  ShowName		  off
	  Inputs		  "6"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux3"
	  Ports			  [2, 1]
	  Position		  [365, 265, 370, 325]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Reference
	  N

⌨️ 快捷键说明

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