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

📄 huyusvpwm_sample1.mdl

📁 svpwm仿真
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	Block {
	  BlockType		  Sum
	  Name			  "Subtract"
	  Ports			  [2, 1]
	  Position		  [300, 132, 330, 163]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Subtract1"
	  Ports			  [2, 1]
	  Position		  [300, 227, 330, 258]
	  Inputs		  "+-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Outport
	  Name			  "X"
	  Position		  [620, 63, 650, 77]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Y"
	  Position		  [625, 188, 655, 202]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Z"
	  Position		  [630, 338, 660, 352]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    DstBlock		    "Subtract"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 95]
	    DstBlock		    "Subtract1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Gain1"
	  SrcPort		  1
	  DstBlock		  "Divide"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "T"
	  SrcPort		  1
	  Points		  [0, 0; 330, 0]
	  Branch {
	    Points		    [0, 30]
	    DstBlock		    "Divide2"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, -120]
	    Branch {
	      DstBlock		      "Divide1"
	      DstPort		      2
	    }
	    Branch {
	      Points		      [0, -125]
	      DstBlock		      "Divide"
	      DstPort		      2
	    }
	  }
	}
	Line {
	  SrcBlock		  "Udc"
	  SrcPort		  1
	  Points		  [390, 0; 0, -20]
	  Branch {
	    DstBlock		    "Divide2"
	    DstPort		    3
	  }
	  Branch {
	    Points		    [0, -145]
	    Branch {
	      Points		      [0, -5]
	      DstBlock		      "Divide1"
	      DstPort		      3
	    }
	    Branch {
	      Points		      [0, -130]
	      DstBlock		      "Divide"
	      DstPort		      3
	    }
	  }
	}
	Line {
	  SrcBlock		  "Ualfa"
	  SrcPort		  1
	  Points		  [70, 0; 0, 165; 130, 0]
	  Branch {
	    Points		    [0, 50]
	    DstBlock		    "Subtract1"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, -45]
	    DstBlock		    "Subtract"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Subtract"
	  SrcPort		  1
	  Points		  [140, 0]
	  DstBlock		  "Divide1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Subtract1"
	  SrcPort		  1
	  Points		  [145, 0]
	  DstBlock		  "Divide2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Divide"
	  SrcPort		  1
	  DstBlock		  "X"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Divide1"
	  SrcPort		  1
	  DstBlock		  "Gain2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Divide2"
	  SrcPort		  1
	  DstBlock		  "Gain3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain2"
	  SrcPort		  1
	  DstBlock		  "Y"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain3"
	  SrcPort		  1
	  DstBlock		  "Z"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Ubeta"
	  SrcPort		  1
	  Points		  [125, 0; 0, -105]
	  Branch {
	    DstBlock		    "Gain1"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Gain"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "powergui"
      Ports		      []
      Position		      [805, 415, 885, 460]
      ShowName		      off
      FontSize		      11
      SourceBlock	      "powerlib/powergui"
      SourceType	      "PSB option menu block"
      ShowPortLabels	      on
      SimulationMode	      "Continuous"
      SampleTime	      "0"
      echomessages	      on
      x0status		      "blocks"
      Frange		      "[0:2:500]"
      Ylog		      off
      Xlog		      on
      ShowGrid		      off
      save		      off
      variable		      "ZData"
      ZoomFFT		      on
      StartTime		      "0.0"
      cycles		      "1"
      DisplayStyle	      "1"
      fundamental	      "60"
      FreqAxis		      off
      MaxFrequency	      "1000"
      frequencyindice	      "1"
      frequencyindicesteady   "1"
      RmsSteady		      "1"
      display		      off
      Ts		      "0"
      frequency		      "60"
      methode		      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "produce PWM"
      Ports		      [3, 3]
      Position		      [655, 192, 720, 358]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      System {
	Name			"produce PWM"
	Location		[6, 82, 1018, 713]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Tcm1"
	  Position		  [20, 118, 50, 132]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Tcm2"
	  Position		  [20, 173, 50, 187]
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Tcm3"
	  Position		  [20, 228, 50, 242]
	  Port			  "3"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Relay
	  Name			  "Relay"
	  Position		  [175, 120, 205, 150]
	}
	Block {
	  BlockType		  Relay
	  Name			  "Relay1"
	  Position		  [180, 175, 210, 205]
	}
	Block {
	  BlockType		  Relay
	  Name			  "Relay2"
	  Position		  [180, 230, 210, 260]
	}
	Block {
	  BlockType		  Reference
	  Name			  "Repeating\nSequence"
	  Ports			  [0, 1]
	  Position		  [25, 25, 55, 55]
	  SourceBlock		  "simulink/Sources/Repeating\nSequence"
	  SourceType		  "Repeating table"
	  ShowPortLabels	  on
	  rep_seq_t		  "[0 0.00005 0.0001 ]"
	  rep_seq_y		  "[0 0.00005 0 ]"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope1"
	  Ports			  [1]
	  Position		  [135, 24, 165, 56]
	  Floating		  off
	  Location		  [5, 54, 1029, 741]
	  Open			  off
	  NumInputPorts		  "1"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  TimeRange		  "1"
	  YMin			  "-0.0025"
	  YMax			  "0.004"
	  SaveName		  "ScopeData6"
	  DataFormat		  "StructureWithTime"
	  LimitDataPoints	  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope2"
	  Ports			  [1]
	  Position		  [720, 44, 750, 76]
	  Floating		  off
	  Location		  [5, 54, 1029, 741]
	  Open			  off
	  NumInputPorts		  "1"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  TimeRange		  "1               "
	  YMin			  "0"
	  YMax			  "1"
	  SaveName		  "ScopeData5"
	  DataFormat		  "StructureWithTime"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Subtract"
	  Ports			  [2, 1]
	  Position		  [105, 117, 135, 148]
	  Inputs		  "+-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Subtract1"
	  Ports			  [2, 1]
	  Position		  [110, 172, 140, 203]
	  Inputs		  "+-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Subtract2"
	  Ports			  [2, 1]
	  Position		  [110, 227, 140, 258]
	  Inputs		  "+-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Ua"
	  Position		  [455, 128, 485, 142]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Ub"
	  Position		  [455, 183, 485, 197]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Uc"
	  Position		  [450, 238, 480, 252]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Repeating\nSequence"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    DstBlock		    "Scope1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 100]
	    Branch {
	      Points		      [0, 55]
	      Branch {
		Points			[0, 55]
		DstBlock		"Subtract2"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Subtract1"
		DstPort			2
	      }
	    }
	    Branch {
	      DstBlock		      "Subtract"
	      DstPort		      2
	    }
	  }
	}
	Line {
	  SrcBlock		  "Subtract"
	  SrcPort		  1
	  DstBlock		  "Relay"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Subtract1"
	  SrcPort		  1
	  DstBlock		  "Relay1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Subtract2"
	  SrcPort		  1
	  DstBlock		  "Relay2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relay"
	  SrcPort		  1
	  Points		  [105, 0]
	  Branch {
	    DstBlock		    "Ua"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -75]
	    DstBlock		    "Scope2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Relay2"
	  SrcPort		  1
	  DstBlock		  "Uc"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relay1"
	  SrcPort		  1
	  DstBlock		  "Ub"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Tcm3"
	  SrcPort		  1
	  DstBlock		  "Subtract2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Tcm2"
	  SrcPort		  1
	  DstBlock		  "Subtract1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Tcm1"
	  SrcPort		  1
	  DstBlock		  "Subtract"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Sin
      Name		      "ua"
      Ports		      [0, 1]
      Position		      [75, 105, 105, 135]
      SineType		      "Time based"
      Amplitude		      "300"
      Frequency		      "50"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sin
      Name		      "ub"
      Ports		      [0, 1]
      Position		      [75, 155, 105, 185]
      SineType		      "Time based"
      Amplitude		      "300"
      Frequency		      "50"
      Phase		      "-pi/2"
      SampleTime	      "0"
    }
    Line {
      SrcBlock		      "Constant1"
      SrcPort		      1
      Points		      [10, 0; 15, 0]
      Branch {
	DstBlock		"X.Y.Z"
	DstPort			1
      }
      Branch {
	Points			[0, 150; 220, 0]
	Branch {
	  Points		  [150, 0; 0, -80]
	  DstBlock		  "Subsystem1"
	  DstPort		  3
	}
	Branch {
	  DstBlock		  "Subsystem"
	  DstPort		  5
	}
      }
    }
    Line {
      SrcBlock		      "Constant"
      SrcPort		      1
      DstBlock		      "X.Y.Z"
      DstPort		      4
    }
    Line {
      SrcBlock		      "N1"
      SrcPort		      1
      Points		      [0, -5; 50, 0]
      Branch {
	Points			[145, 0; 0, 185]
	DstBlock		"Subsystem1"
	DstPort			4
      }
      Branch {
	Points			[0, -55]
	DstBlock		"Scope1"
	DstPort			1
      }
      Branch {
	Points			[0, 40]
	DstBlock		"Subsystem"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "X.Y.Z"
      SrcPort		      1
      Points		      [35, 0]
      Branch {
	Points			[0, 180]
	DstBlock		"Scope5"
	DstPort			1
      }
      Branch {
	Points			[30, 0]
	DstBlock		"Subsystem"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "X.Y.Z"
      SrcPort		      2
      Points		      [15, 0]

⌨️ 快捷键说明

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