📄 buck.mdl
字号:
InitialOutput "0"
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "model"
DstPort 1
}
Line {
SrcBlock "model"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "model"
SrcPort 2
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "model"
SrcPort 3
DstBlock "gotos"
DstPort 1
}
Line {
SrcBlock "froms"
SrcPort 1
DstBlock "model"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "transit"
Ports [1, 1]
Position [525, 107, 575, 143]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "transit"
Location [475, 381, 915, 821]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [30, 150, 50, 170]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 5]
Position [145, 62, 180, 258]
Outputs "[1 1 1 1 1]"
}
Block {
BlockType Goto
Name "Goto2"
Position [330, 115, 360, 145]
DialogController "Simulink.DDGSource"
GotoTag "tp241656"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto3"
Position [330, 160, 360, 190]
DialogController "Simulink.DDGSource"
GotoTag "tp241670"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto4"
Position [330, 205, 360, 235]
DialogController "Simulink.DDGSource"
GotoTag "tp241668"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto5"
Position [330, 250, 360, 280]
DialogController "Simulink.DDGSource"
GotoTag "tp241667"
TagVisibility "global"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [75, 145, 105, 175]
Elements "[3 4 5 6 7]"
InputPortWidth "7"
}
Block {
BlockType Outport
Name "Out"
Position [150, 15, 170, 35]
Orientation "left"
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Goto2"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
DstBlock "Goto3"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 4
DstBlock "Goto4"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 5
DstBlock "Goto5"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out"
Position [595, 113, 620, 137]
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "SelectorVf"
SrcPort 1
Points [0, 0]
Branch {
Points [-15, 0]
DstBlock "T"
DstPort 1
}
Branch {
DstBlock "Mux"
DstPort 4
}
}
Line {
SrcBlock "MuxVf"
SrcPort 1
DstBlock "SelectorVf"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, -5]
DstBlock "MasterMux"
DstPort 1
}
Line {
SrcBlock "MuxSwitch"
SrcPort 1
Points [15, 0; 0, -40]
DstBlock "MasterMux"
DstPort 2
}
Line {
SrcBlock "MasterMux"
SrcPort 1
DstBlock "State-Space"
DstPort 1
}
Line {
SrcBlock "State-Space"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "transit"
DstPort 1
}
Branch {
DstBlock "ideal_switch"
DstPort 1
}
Branch {
DstBlock "diode (logical)"
DstPort 1
}
}
Line {
SrcBlock "transit"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "ideal_switch"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "ideal_switch"
SrcPort 2
DstBlock "MuxSwitch"
DstPort 1
}
Line {
SrcBlock "diode (logical)"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "diode (logical)"
SrcPort 2
DstBlock "MuxSwitch"
DstPort 2
}
Line {
SrcBlock "diode (logical)"
SrcPort 3
DstBlock "MuxVf"
DstPort 1
}
Line {
SrcBlock "electrical sources"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
}
}
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 [215, 124, 235, 146]
FontSize 16
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "model"
SrcPort 1
DstBlock "v"
DstPort 1
}
Line {
SrcBlock "source"
SrcPort 1
DstBlock "model"
DstPort 1
}
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 {
LineType "Connection"
SrcBlock "DC Voltage Source"
SrcPort RConn1
Points [0, -155; 150, 0]
DstBlock "Ideal Switch"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Diode"
SrcPort RConn1
Points [0, 0; 0, -75]
Branch {
ConnectType "DEST_SRC"
DstBlock "Ideal Switch"
DstPort RConn1
}
Branch {
ConnectType "DEST_SRC"
Points [0, -5]
DstBlock "Current Measurement"
DstPort LConn1
}
}
Line {
LineType "Connection"
SrcBlock "Parallel RLC Branch1"
SrcPort LConn1
Points [0, 0; 0, 85]
Branch {
ConnectType "DEST_SRC"
Points [0, 5; -165, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "Parallel RLC Branch"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
Points [-265, 0]
Branch {
ConnectType "DEST_SRC"
Points [-150, 0]
DstBlock "DC Voltage Source"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
DstBlock "Diode"
DstPort LConn1
}
}
}
Branch {
ConnectType "DEST_SRC"
Points [95, 0; 0, -135]
DstBlock "Voltage Measurement"
DstPort LConn2
}
}
Line {
SrcBlock "Pulse\nGenerator"
SrcPort 1
Points [95, 0]
DstBlock "Ideal Switch"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "Series RLC Branch"
SrcPort LConn1
Points [0, 0; -5, 0]
Branch {
ConnectType "DEST_SRC"
Points [-5, 0; 0, 5]
DstBlock "Current Measurement"
DstPort RConn1
}
Branch {
ConnectType "DEST_SRC"
Points [10, 0; 0, -55; 40, 0]
DstBlock "Voltage Measurement1"
DstPort LConn1
}
}
Line {
LineType "Connection"
SrcBlock "Current Measurement2"
SrcPort RConn1
DstBlock "Parallel RLC Branch"
DstPort RConn1
}
Line {
SrcBlock "Current Measurement"
SrcPort 1
Points [10, 0; 0, -140]
DstBlock "Scope1"
DstPort 2
}
Line {
SrcBlock "Voltage Measurement1"
SrcPort 1
Points [0, -50]
DstBlock "Scope1"
DstPort 1
}
Line {
SrcBlock "Current Measurement2"
SrcPort 1
Points [0, 35; -75, 0]
DstBlock "Scope2"
DstPort 1
}
Line {
SrcBlock "Voltage Measurement"
SrcPort 1
Points [20, 0; 0, -15]
DstBlock "Scope4"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "Voltage Measurement"
SrcPort LConn1
Points [-70, 0; 0, -70; -65, 0]
Branch {
ConnectType "DEST_SRC"
Points [-5, 0]
DstBlock "Parallel RLC Branch1"
DstPort RConn1
}
Branch {
ConnectType "DEST_DEST"
SrcBlock "Current Measurement1"
SrcPort RConn1
Points [55, 0]
}
}
Line {
LineType "Connection"
Points [505, 205; 20, 0]
Branch {
ConnectType "SRC_SRC"
DstBlock "Series RLC Branch"
DstPort RConn1
}
Branch {
ConnectType "SRC_SRC"
Points [-10, 0; 0, -55; -45, 0]
DstBlock "Voltage Measurement1"
DstPort LConn2
}
Branch {
ConnectType "DEST_SRC"
DstBlock "Current Measurement2"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
DstBlock "Current Measurement1"
DstPort LConn1
}
}
Line {
SrcBlock "Current Measurement1"
SrcPort 1
Points [285, 0; 0, 85]
DstBlock "Scope4"
DstPort 2
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -