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

📄 swps_2.mdl

📁 PLLmatlab for simulink
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      Position		      [585, 34, 635, 76]
      AttributesFormatString  "\\n"
      SourceBlock	      "powerlib/Elements/Parallel RLC Branch"
      SourceType	      "Parallel RLC Branch"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "a"
      RConnTagsString	      "__new0"
      Resistance	      "10000"
      Inductance	      "1e-3"
      Capacitance	      "0"
      Measurements	      "None"
    }
    Block {
      BlockType		      Saturate
      Name		      "Sat"
      Position		      [145, 150, 175, 180]
      UpperLimit	      "0.95"
      LowerLimit	      ".01"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [2]
      Position		      [970, 261, 1000, 294]
      Location		      [7, 499, 620, 717]
      Open		      on
      NumInputPorts	      "2"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      TimeRange		      "0.01"
      YMin		      "-5~-2"
      YMax		      "17.5~0"
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [430, 260, 450, 280]
      Orientation	      "left"
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|-+"
    }
    Block {
      BlockType		      Constant
      Name		      "V set "
      Position		      [520, 299, 565, 331]
      Orientation	      "left"
      Value		      "13.8"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Variable Duration One Shot"
      Ports		      [2, 2]
      Position		      [265, 118, 395, 182]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      Port {
	PortNumber		2
	Name			"gate_drive"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
      System {
	Name			"Variable Duration One Shot"
	Location		[201, 175, 904, 485]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Trigger"
	  Position		  [15, 168, 45, 182]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Ton"
	  Position		  [460, 198, 490, 212]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Comparitor"
	  Ports			  [2, 1]
	  Position		  [530, 160, 595, 220]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "Comparitor"
	    Location		    [616, 315, 1117, 500]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "+"
	      Position		      [35, 53, 65, 67]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "-"
	      Position		      [40, 118, 70, 132]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Compare and Invert "
	      Ports		      [1, 1]
	      Position		      [265, 56, 340, 84]
	      SourceBlock	      "simulink/Logic and Bit\nOperations/Comp"
"are\nTo Constant"
	      SourceType	      "Compare To Constant"
	      ShowPortLabels	      on
	      relop		      "<="
	      const		      ".5"
	      LogicOutDataTypeMode    "uint8"
	      ZeroCross		      off
	    }
	    Block {
	      BlockType		      TransferFcn
	      Name		      "Delay"
	      Position		      [150, 52, 205, 88]
	      Denominator	      "[1e-9 1]"
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\nOperator"
	      Position		      [90, 52, 120, 83]
	      NamePlacement	      "alternate"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [385, 63, 415, 77]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "Relational\nOperator"
	      SrcPort		      1
	      DstBlock		      "Delay"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "+"
	      SrcPort		      1
	      DstBlock		      "Relational\nOperator"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Delay"
	      SrcPort		      1
	      DstBlock		      "Compare and Invert "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "-"
	      SrcPort		      1
	      DstBlock		      "Relational\nOperator"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Compare and Invert "
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Reference
	  Name			  "D Flip-Flop"
	  Ports			  [3, 2]
	  Position		  [220, 137, 265, 213]
	  SourceBlock		  "simulink_extras/Flip Flops/D Flip-Flop"
	  SourceType		  "DFlipFlop"
	  ShowPortLabels	  on
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [2, 1]
	  Position		  [335, 133, 425, 217]
	  ExternalReset		  "level"
	  IgnoreLimit		  off
	}
	Block {
	  BlockType		  Constant
	  Name			  "logic 1"
	  Position		  [165, 141, 185, 159]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Pulse Out"
	  Position		  [665, 103, 695, 117]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Pulse Out Bar"
	  Position		  [620, 253, 650, 267]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "D Flip-Flop"
	  SrcPort		  2
	  Points		  [0, 0; 30, 0]
	  Branch {
	    DstBlock		    "Integrator"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 65]
	    DstBlock		    "Pulse Out Bar"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "logic 1"
	  SrcPort		  1
	  DstBlock		  "D Flip-Flop"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  DstBlock		  "Comparitor"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "D Flip-Flop"
	  SrcPort		  1
	  Points		  [0, 0; 30, 0]
	  Branch {
	    DstBlock		    "Integrator"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -45]
	    DstBlock		    "Pulse Out"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Trigger"
	  SrcPort		  1
	  DstBlock		  "D Flip-Flop"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Ton"
	  SrcPort		  1
	  DstBlock		  "Comparitor"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Comparitor"
	  SrcPort		  1
	  Points		  [40, 0; 0, -125; -560, 0; 0, 135]
	  DstBlock		  "D Flip-Flop"
	  DstPort		  3
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Vmeas"
      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
      Ports		      [0, 1, 0, 0, 0, 2]
      Position		      [695, 148, 720, 172]
      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
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      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|1"
      MaskTabNameString	      ",,"
      Port {
	PortNumber		1
	Name			"Vout"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
      System {
	Name			"Vmeas"
	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		      "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]

⌨️ 快捷键说明

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