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

📄 pll1.mdl

📁 matlab在电力电子技术仿真中运用
💻 MDL
📖 第 1 页 / 共 2 页
字号:
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      ShowAdditionalParam     off
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      TransferFcn
      Numerator		      "[1]"
      Denominator	      "[1 2 1]"
      AbsoluteTolerance	      "auto"
      Realization	      "auto"
    }
    Block {
      BlockType		      Trigonometry
      Operator		      "sin"
      OutputSignalType	      "auto"
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "pll1"
    Location		    [2, 78, 1278, 970]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Clock
      Name		      "Clock1"
      Position		      [125, 190, 145, 210]
      Decimation	      "10"
    }
    Block {
      BlockType		      Constant
      Name		      "Constant"
      Position		      [105, 271, 165, 299]
      Value		      "2*pi*50"
    }
    Block {
      BlockType		      Constant
      Name		      "Constant1"
      Position		      [65, 127, 120, 153]
      Value		      "2*pi*49.5"
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete\nPI Controller"
      Ports		      [1, 1]
      Position		      [520, 392, 565, 438]
      FontSize		      10
      SourceBlock	      "powerlib_extras/Discrete \nControl Blocks/Discr"
"ete\nPI Controller"
      SourceType	      "Discrete PI Controller"
      Kp		      "2.8"
      Ki		      "4"
      Par_Limits	      "[1e6 -1e6]"
      Init		      "0"
      Ts		      "50e-6"
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator"
      Ports		      [1, 1]
      Position		      [305, 210, 335, 240]
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [2, 1]
      Position		      [515, 71, 520, 109]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Product
      Name		      "Product1"
      Ports		      [2, 1]
      Position		      [380, 116, 425, 149]
      InputSameDT	      off
    }
    Block {
      BlockType		      Product
      Name		      "Product2"
      Ports		      [2, 1]
      Position		      [190, 141, 235, 174]
      InputSameDT	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [3]
      Position		      [565, 93, 595, 127]
      Location		      [1, 56, 1281, 989]
      Open		      off
      NumInputPorts	      "3"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
	axes3			""
      }
      YMin		      "-5~-5~-5"
      YMax		      "5~5~5"
      DataFormat	      "StructureWithTime"
      MaxDataPoints	      "500000"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [265, 215, 285, 235]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|++"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      TransferFcn
      Name		      "Transfer Fcn"
      Position		      [445, 117, 505, 153]
      Numerator		      "[0.42]"
      Denominator	      "[0.04545 1]"
    }
    Block {
      BlockType		      Trigonometry
      Name		      "Trigonometric\nFunction"
      Ports		      [1, 1]
      Position		      [360, 210, 390, 240]
    }
    Block {
      BlockType		      Trigonometry
      Name		      "Trigonometric\nFunction1"
      Ports		      [1, 1]
      Position		      [270, 110, 300, 140]
    }
    Block {
      BlockType		      Reference
      Name		      "Voltage-Controlled\nOscillator"
      Ports		      [1, 1]
      Position		      [285, 318, 365, 362]
      FontName		      "Arial"
      FontSize		      10
      SourceBlock	      "commcontsrc2/Voltage-Controlled\nOscillator"
      SourceType	      "Voltage-Controlled Oscillator"
      Ac		      "1"
      Fc		      "10"
      Kc		      "1"
      Ph		      "0"
    }
    Line {
      SrcBlock		      "Constant"
      SrcPort		      1
      Points		      [110, 0; 0, -35]
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "Integrator"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Trigonometric\nFunction1"
      SrcPort		      1
      Points		      [0, 0; 25, 0]
      Branch {
	Points			[0, 0]
	DstBlock		"Product1"
	DstPort			1
      }
      Branch {
	Points			[0, -45]
	DstBlock		"Mux"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Trigonometric\nFunction"
      SrcPort		      1
      Points		      [10, 0; 0, -35; -40, 0; 0, -10]
      Branch {
	DstBlock		"Product1"
	DstPort			2
      }
      Branch {
	Points			[-10, 0; 0, -80]
	DstBlock		"Mux"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Constant1"
      SrcPort		      1
      Points		      [40, 0; 0, 10]
      DstBlock		      "Product2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Clock1"
      SrcPort		      1
      Points		      [10, 0; 0, -35]
      DstBlock		      "Product2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Product2"
      SrcPort		      1
      Points		      [5, 0; 0, -35]
      DstBlock		      "Trigonometric\nFunction1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Product1"
      SrcPort		      1
      DstBlock		      "Transfer Fcn"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Transfer Fcn"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	Points			[0, -25]
	DstBlock		"Scope"
	DstPort			2
      }
      Branch {
	Points			[15, 0; 0, 15]
	Branch {
	  Points		  [0, -30]
	  DstBlock		  "Scope"
	  DstPort		  3
	}
	Branch {
	  Points		  [0, 110; -310, 0; 0, -35]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      Points		      [10, 0; 0, 10]
      DstBlock		      "Scope"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Integrator"
      SrcPort		      1
      DstBlock		      "Trigonometric\nFunction"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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