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

📄 circuitbreaker_1.mdl

📁 PLLmatlab for simulink
💻 MDL
📖 第 1 页 / 共 3 页
字号:
      CloseFcn		      "sigbuilder_block('close');"
      TreatAsAtomicUnit	      off
      MaskType		      "Sigbuilder block"
      MaskDescription	      "Sigbuilder GUI"
      MaskInitialization      "if ~strcmp(get_param(bdroot,'SimulationStatus')"
",'stopped') tuvar = sigbuilder_block('maskInit'); end"
      MaskDisplay	      "plot(0,0,100,100,[10,10,40,40,10],[80,20,20,80,"
"80],[40,10],[50,50], [40,27,10],[65,72,56],[40,25,25,10],[28,28,43,43]);"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "port"
      MaskIconUnits	      "autoscale"
      Port {
	PortNumber		2
	Name			"Reset"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
      System {
	Name			"Signal Builder"
	Location		[480, 85, 980, 386]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Tag			  "STV Demux"
	  Ports			  [1, 2]
	  Position		  [150, 32, 160, 603]
	  Outputs		  "2"
	}
	Block {
	  BlockType		  FromWorkspace
	  Name			  "FromWs"
	  Tag			  "STV FromWs"
	  Position		  [30, 300, 115, 350]
	  VariableName		  "tuvar"
	  SampleTime		  "0"
	  SigBuilderData	  "DataTag0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Voltage"
	  Tag			  "STV Outport"
	  Position		  [280, 30, 300, 40]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Reset"
	  Tag			  "STV Outport"
	  Position		  [280, 60, 300, 70]
	  Port			  "2"
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  Points		  [50, 0; 0, -140]
	  DstBlock		  "Voltage"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "FromWs"
	  SrcPort		  1
	  Points		  [5, 0; 0, -5]
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  DstBlock		  "Reset"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Voltage Measurement"
      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
      Ports		      [0, 1, 0, 0, 0, 2]
      Position		      [485, 198, 510, 222]
      AttributesFormatString  "\\n"
      AncestorBlock	      "powerlib/Measurements/Voltage Measurement"
      CopyFcn		      "powericon('psbloadfunction',gcbh,'Measurement B"
"lock','VerifyPhasor');"
      LoadFcn		      "powericon('psbloadfunction',gcbh,'Measurement B"
"lock','');"
      PreSaveFcn	      "powericon('psbloadfunction',gcbh,'ModelCloseFcn"
"','');"
      InitFcn		      "powericon('psbloadfunction',gcbh,'InitFcnOfSPSB"
"locks','Measurement Block');"
      CloseFcn		      "powericon('psbloadfunction',gcbh,'CloseFcn','')"
";"
      TreatAsAtomicUnit	      off
      MaskType		      "Voltage Measurement"
      MaskDescription	      "Ideal voltage measurement."
      MaskHelp		      "web(psbhelp);"
      MaskPromptString	      "Phasor simulation|Output signal :|Equivalent ci"
"rcuit"
      MaskStyleString	      "checkbox,popup(Complex|Real-Imag|Magnitude-Angl"
"e|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;PSBequivalent"
"=@3;"
      MaskInitialization      "switch OutputType\ncase 1\n    OutputSelection "
"= 1;\n    NormalMode = 2;\n    PhasorMode = 1;\ncase 2\n    OutputSelection ="
"[2,3];\n    NormalMode = 3;\n    PhasorMode = [1,2];\ncase 3\n    OutputSelec"
"tion =[4,5];\n    NormalMode = 3;\n    PhasorMode = [1,2];\ncase 4\n    Outpu"
"tSelection =[4];\n    NormalMode = 2;\n    PhasorMode = 1;\nend\n%\nif Phasor"
"Simulation\n    SelectionMode = PhasorMode;\nelse\n    SelectionMode = Normal"
"Mode;\nend\n"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "port"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "off|Magnitude|0"
      Port {
	PortNumber		1
	Name			"Vload"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
      System {
	Name			"Voltage Measurement"
	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
	  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]
	    }
	    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		  From
	  Name			  "source"
	  Position		  [25, 124, 95, 146]
	  GotoTag		  "tp222642"
	}
	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
	  InitialOutput		  "0"
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "-"
	  SrcPort		  RConn1
	  Points		  [0, 0]
	  DstBlock		  "VoltageMeasurement"
	  DstPort		  RConn1
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "+"
	  SrcPort		  RConn1
	  Points		  [0, 0]
	  DstBlock		  "VoltageMeasurement"
	  DstPort		  LConn1
	}
	Line {
	  SrcBlock		  "Simulation method"
	  SrcPort		  1
	  DstBlock		  "Phasor Measurements"
	  DstPort		  enable
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "Selector"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Phasor Measurements"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Selector"
	  SrcPort		  1
	  DstBlock		  "v"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "source"
	  SrcPort		  1
	  Points		  [0, 0; 10, 0]
	  Branch {
	    DstBlock		    "Phasor Measurements"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 30]
	    DstBlock		    "Mux"
	    DstPort		    2
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "my breaker"
      Ports		      [1, 2, 0, 0, 0, 1, 1]
      Position		      [215, 42, 345, 128]
      TreatAsAtomicUnit	      off
      MaskPromptString	      "Current Rating (Amps)|Mechanical Time Constant "
"(Sec)"
      MaskStyleString	      "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString	      "on,on"
      MaskVarAliasString      ","
      MaskVariables	      "Iset=@1;Tau=@2;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "10|.1"
      Port {
	PortNumber		1
	Name			"Isw"
	PropagatedSignals	"Isw"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
      Port {
	PortNumber		2
	Name			"Vsw"
	PropagatedSignals	"Vsw"
	TestPoint		off
	LinearAnalysisOutput	off

⌨️ 快捷键说明

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