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

📄 dc2dc.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 2 页
字号:
    Block {
      BlockType		      Signum
      Name		      "bipolar"
      Position		      [210, 130, 240, 160]
      Port {
	PortNumber		1
	Name			"q"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Constant
      Name		      "carrier\nfrequency"
      Position		      [35, 210, 65, 240]
      Value		      "20000"
    }
    Block {
      BlockType		      Scope
      Name		      "idc"
      Ports		      [1]
      Position		      [720, 47, 765, 113]
      Location		      [33, 140, 616, 439]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "5e-005"
      YMin		      "-6"
      YMax		      "6"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Constant
      Name		      "modulation\nindex m"
      Position		      [70, 130, 100, 160]
      BackgroundColor	      "orange"
      NamePlacement	      "alternate"
      Value		      ".725"
      Port {
	PortNumber		1
	Name			"m"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Product
      Name		      "multiply1"
      Ports		      [2, 1]
      Position		      [645, 58, 685, 102]
      ShowName		      off
      Port {
	PortNumber		1
	Name			"q*ia"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Constant
      Name		      "number of\nharmonics"
      Position		      [245, 280, 275, 310]
      BackgroundColor	      "orange"
      Value		      "8"
    }
    Block {
      BlockType		      Scope
      Name		      "pwm"
      Ports		      [1]
      Position		      [235, 187, 280, 263]
      Location		      [624, 507, 1135, 804]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "5e-005"
      YMin		      "-1"
      YMax		      "1"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      SubSystem
      Name		      "triangle"
      Ports		      [1, 1]
      Position		      [85, 210, 115, 240]
      TreatAsAtomicUnit	      off
      MaskDisplay	      "plot(0,0,90,90,[5 25 45 65 85],[5 85 5 85 5],[3"
" 87],[45 45])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      Port {
	PortNumber		1
	Name			"tri"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
      System {
	Name			"triangle"
	Location		[143, 226, 462, 343]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"98"
	Block {
	  BlockType		  Inport
	  Name			  "fc"
	  Position		  [25, 38, 55, 52]
	}
	Block {
	  BlockType		  Gain
	  Name			  "2pi"
	  Position		  [80, 28, 125, 62]
	  ShowName		  off
	  Gain			  "2*pi"
	  Port {
	    PortNumber		    1
	    Name		    "wc"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	}
	Block {
	  BlockType		  Clock
	  Name			  "Clock1"
	  Position		  [90, 70, 110, 90]
	  ShowName		  off
	  Decimation		  "10"
	}
	Block {
	  BlockType		  Product
	  Name			  "multiply"
	  Ports			  [2, 1]
	  Position		  [160, 33, 200, 77]
	  ShowName		  off
	}
	Block {
	  BlockType		  Fcn
	  Name			  "triangle"
	  Position		  [230, 40, 265, 70]
	  Expr			  "2/pi*asin(sin(u-pi/2))"
	}
	Block {
	  BlockType		  Outport
	  Name			  "tri"
	  Position		  [290, 48, 320, 62]
	}
	Line {
	  SrcBlock		  "Clock1"
	  SrcPort		  1
	  Points		  [0, -15]
	  DstBlock		  "multiply"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "multiply"
	  SrcPort		  1
	  DstBlock		  "triangle"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "fc"
	  SrcPort		  1
	  DstBlock		  "2pi"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "triangle"
	  SrcPort		  1
	  DstBlock		  "tri"
	  DstPort		  1
	}
	Line {
	  Name			  "wc"
	  Labels		  [0, 0]
	  SrcBlock		  "2pi"
	  SrcPort		  1
	  DstBlock		  "multiply"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Relay
      Name		      "unipolar"
      Position		      [210, 75, 240, 105]
      NamePlacement	      "alternate"
      Port {
	PortNumber		1
	Name			"qa"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Scope
      Name		      "va & ia"
      Ports		      [2]
      Position		      [355, 187, 400, 263]
      Orientation	      "left"
      Location		      [624, 139, 1139, 442]
      Open		      on
      NumInputPorts	      "2"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
      }
      TimeRange		      "5e-005"
      YMin		      "-100~-6"
      YMax		      "100~-4"
      DataFormat	      "StructureWithTime"
      MaxDataPoints	      "6000"
    }
    Line {
      SrcBlock		      "Ra"
      SrcPort		      1
      Points		      [-55, 0]
      DstBlock		      "Sum"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "1/La"
      DstPort		      1
    }
    Line {
      SrcBlock		      "1/La"
      SrcPort		      1
      DstBlock		      "Integrator"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Ea"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      Name		      "va"
      Labels		      [2, 0]
      SrcBlock		      "Vdc"
      SrcPort		      1
      Points		      [0, 0; 10, 0]
      Branch {
	DstBlock		"Sum"
	DstPort			2
      }
      Branch {
	Points			[0, 85]
	Branch {
	  Labels		  [-1, 0]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Branch {
	  DstBlock		  "va & ia"
	  DstPort		  1
	}
      }
    }
    Line {
      Name		      "m"
      Labels		      [2, 0]
      SrcBlock		      "modulation\nindex m"
      SrcPort		      1
      Points		      [0, 0; 30, 0]
      Branch {
	DstBlock		"Sum2"
	DstPort			1
      }
      Branch {
	Points			[0, 105]
	DstBlock		"Mux1"
	DstPort			3
      }
    }
    Line {
      Name		      "ia"
      Labels		      [2, 0]
      SrcBlock		      "Integrator"
      SrcPort		      1
      Points		      [0, 0; 15, 0]
      Branch {
	Points			[0, -30]
	DstBlock		"multiply1"
	DstPort			2
      }
      Branch {
	Points			[0, 85]
	Branch {
	  DstBlock		  "Ra"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 70; -205, 0; 0, -30]
	  Branch {
	    DstBlock		    "Mux"
	    DstPort		    2
	  }
	  Branch {
	    Labels		    [1, 1]
	    DstBlock		    "va & ia"
	    DstPort		    2
	  }
	}
      }
    }
    Line {
      Name		      "q*ia"
      Labels		      [1, 0]
      SrcBlock		      "multiply1"
      SrcPort		      1
      DstBlock		      "idc"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      DstBlock		      "To Workspace"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux1"
      SrcPort		      1
      DstBlock		      "pwm"
      DstPort		      1
    }
    Line {
      SrcBlock		      "carrier\nfrequency"
      SrcPort		      1
      DstBlock		      "triangle"
      DstPort		      1
    }
    Line {
      Name		      "tri"
      Labels		      [0, 1]
      SrcBlock		      "triangle"
      SrcPort		      1
      Points		      [0, 0; 40, 0]
      Branch {
	DstBlock		"Mux1"
	DstPort			2
      }
      Branch {
	DstBlock		"Sum2"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Sum2"
      SrcPort		      1
      Points		      [20, 0]
      Branch {
	DstBlock		"bipolar"
	DstPort			1
      }
      Branch {
	DstBlock		"unipolar"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "number of\nharmonics"
      SrcPort		      1
      DstBlock		      "To Workspace1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "SWITCH"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"Vdc"
	DstPort			1
      }
      Branch {
	Points			[0, -75]
	Branch {
	  Points		  [290, 0; 0, 25]
	  DstBlock		  "multiply1"
	  DstPort		  1
	}
	Branch {
	  Points		  [-150, 0; 0, 155]
	  DstBlock		  "Mux1"
	  DstPort		  1
	}
      }
    }
    Line {
      Name		      "q"
      Labels		      [0, 0]
      SrcBlock		      "bipolar"
      SrcPort		      1
      Points		      [15, 0; 0, -15]
      DstBlock		      "SWITCH"
      DstPort		      2
    }
    Line {
      Name		      "qa"
      Labels		      [0, 0]
      SrcBlock		      "unipolar"
      SrcPort		      1
      Points		      [15, 0; 0, 20]
      DstBlock		      "SWITCH"
      DstPort		      1
    }
    Annotation {
      Name		      "PWM  controller"
      Position		      [234, 25]
      FontSize		      14
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Choose"
      Position		      [225, 294]
      ForegroundColor	      "white"
      BackgroundColor	      "red"
    }
    Annotation {
      Name		      "R L E load"
      Position		      [487, 27]
      FontSize		      14
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "q*Vdc"
      Position		      [417, 104]
    }
    Annotation {
      Name		      "m=0.45 (unipolar)\nm=0.725 (bipolar)"
      Position		      [89, 88]
      ForegroundColor	      "red"
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "q_av=0.5(1+m) (unipolar)\nq_av = m (bipolar)"
      Position		      [713, 314]
      ForegroundColor	      "red"
      FontName		      "Arial"
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "SELECT\nMODE"
      Position		      [300, 76]
      ForegroundColor	      "white"
      BackgroundColor	      "red"
    }
  }
}

⌨️ 快捷键说明

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