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

📄 simpower_extensions_1.mdl

📁 PLLmatlab for simulink
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	  SourceBlock		  "powerlib/Electrical\nSources/Controlled Cur"
"rent Source"
	  SourceType		  "AC"
	  ShowPortLabels	  "on"
	  Initialize		  "off"
	  Amplitude		  "0"
	  Phase			  "0"
	  Frequency		  "0"
	  Measurements		  "None"
	}
	Block {
	  BlockType		  Reference
	  Name			  "CCS2"
	  Description		  "source block"
	  Ports			  [1, 0, 0, 0, 0, 1, 1]
	  Position		  [495, 282, 535, 338]
	  AttributesFormatString  "\\n"
	  SourceBlock		  "powerlib/Electrical\nSources/Controlled Cur"
"rent Source"
	  SourceType		  "AC"
	  ShowPortLabels	  "on"
	  Initialize		  "off"
	  Amplitude		  "0"
	  Phase			  "0"
	  Frequency		  "0"
	  Measurements		  "None"
	}
	Block {
	  BlockType		  Reference
	  Name			  "CCs3"
	  Description		  "source block"
	  Ports			  [1, 0, 0, 0, 0, 1, 1]
	  Position		  [500, 507, 540, 563]
	  AttributesFormatString  "\\n"
	  SourceBlock		  "powerlib/Electrical\nSources/Controlled Cur"
"rent Source"
	  SourceType		  "AC"
	  ShowPortLabels	  "on"
	  Initialize		  "off"
	  Amplitude		  "0"
	  Phase			  "0"
	  Frequency		  "0"
	  Measurements		  "None"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Int 1"
	  Ports			  [1, 1]
	  Position		  [255, 60, 285, 90]
	  IgnoreLimit		  off
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Int 2"
	  Ports			  [1, 1]
	  Position		  [265, 280, 295, 310]
	  IgnoreLimit		  off
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Int 3"
	  Ports			  [1, 1]
	  Position		  [270, 505, 300, 535]
	  IgnoreLimit		  off
	}
	Block {
	  BlockType		  Gain
	  Name			  "M12/L1"
	  Position		  [440, 200, 470, 230]
	  Orientation		  "up"
	  NamePlacement		  "alternate"
	  Gain			  "M12/L1"
	}
	Block {
	  BlockType		  Gain
	  Name			  "M12/L2"
	  Position		  [375, 200, 405, 230]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Gain			  "M12/L2"
	}
	Block {
	  BlockType		  Gain
	  Name			  "M13/L1"
	  Position		  [445, 430, 475, 460]
	  Orientation		  "up"
	  NamePlacement		  "alternate"
	  Gain			  "M13/L1"
	}
	Block {
	  BlockType		  Gain
	  Name			  "M13/L3"
	  Position		  [300, 420, 330, 450]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Gain			  "M13/L3"
	}
	Block {
	  BlockType		  Gain
	  Name			  "M23/L2"
	  Position		  [375, 415, 405, 445]
	  Orientation		  "up"
	  NamePlacement		  "alternate"
	  Gain			  "M23/L2"
	}
	Block {
	  BlockType		  Gain
	  Name			  "M23/L3"
	  Position		  [505, 445, 535, 475]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Gain			  "M23/L3"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [3, 1]
	  Position		  [395, 65, 415, 85]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|+--"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  Port {
	    PortNumber		    1
	    Name		    "I1"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [3, 1]
	  Position		  [380, 285, 400, 305]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "-+|-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  Port {
	    PortNumber		    1
	    Name		    "I2"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum2"
	  Ports			  [3, 1]
	  Position		  [385, 510, 405, 530]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "-+|-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  Port {
	    PortNumber		    1
	    Name		    "I3"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "VM1"
	  Tag			  "PoWeRsYsTeMmEaSuReMeNt"
	  Ports			  [0, 1, 0, 0, 0, 2]
	  Position		  [190, 63, 215, 87]
	  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
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  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|0"
	  MaskTabNameString	  ",,"
	  System {
	    Name		    "VM1"
	    Location		    [206, 474, 665, 687]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    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
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Phasor Measurements"
		Location		[255, 525, 861, 796]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "measure"
		  Position		  [70, 28, 100, 42]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		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]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Selector"
		  SrcPort		  1
		  DstBlock		  "options"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "180/pi"
		  SrcPort		  1
		  DstBlock		  "Mux2"
		  DstPort		  5
		}
		Line {
		  SrcBlock		  "Complex to\nMagnitude-Angle"
		  SrcPort		  2
		  DstBlock		  "180/pi"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Complex to\nMagnitude-Angle"
		  SrcPort		  1
		  DstBlock		  "Mux2"
		  DstPort		  4
		}
		Line {
		  SrcBlock		  "Complex to\nReal-Imag"
		  SrcPort		  2
		  DstBlock		  "Mux2"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Complex to\nReal-Imag"
		  SrcPort		  1
		  DstBlock		  "Mux2"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "measure"
		  SrcPort		  1
		  Points		  [0, 0; 5, 0]
		  Branch {
		    DstBlock		    "Mux2"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 30]
		    Branch {
		    DstBlock		    "Complex to\nReal-Imag"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 40]
		    DstBlock		    "Complex to\nMagnitude-Angle"
		    DstPort		    1
		    }
		  }
		}
		Line {
		  SrcBlock		  "Mux2"
		  SrcPort		  1
		  DstBlock		  "Selector"
		  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"
	      LeftPortType	      "p1"
	      RightPortType	      "p1"
	      LConnTagsString	      "+"
	      RConnTagsString	      "-"
	      MaskType		      "InnerPowersysBlock"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	    }
	    Block {
	      BlockType		      From
	      Name		      "source"
	      Position		      [25, 124, 95, 146]
	      DialogController	      "Simulink.DDGSource"
	      GotoTag		      "LibraryTag"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "+"
	      Position		      [15, 28, 45, 42]
	      Port		      "1"
	      Side		      "Left"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "-"
	      Position		      [190, 24, 215, 46]
	      Orientation	      "left"
	      Port		      "2"
	      Side		      "Left"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "v"
	      Position		      [405, 139, 425, 161]
	      FontSize		      16
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "source"
	      SrcPort		      1
	      Points		      [0, 0; 10, 0]
	      Branch {
		Points			[0, 30]
		DstBlock		"Mux"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Phasor Measurements"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Selector"
	      SrcPort		      1
	      DstBlock		      "v"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Phasor Measurements"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "Selector"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Simulation method"
	      SrcPort		      1
	      DstBlock		      "Phasor Measurements"
	      DstPort		      enable
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "+"
	      SrcPort		      RConn1
	      Points		      [0, 0]
	      DstBlock		      "VoltageMeasurement"
	      DstPort		      LConn1
	    }
	    Line {
	      LineType		      "Connection"

⌨️ 快捷键说明

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