📄 swps_2.mdl
字号:
DstBlock "gotos"
DstPort 1
}
Line {
SrcBlock "froms"
SrcPort 1
DstBlock "model"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "transit"
Ports [1, 1]
Position [520, 106, 575, 144]
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, 1]
Position [145, 62, 180, 258]
Outputs "1"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [75, 145, 105, 175]
Elements "3"
InputPortWidth "3"
}
Block {
BlockType Outport
Name "Out"
Position [150, 15, 170, 35]
Orientation "left"
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out"
Position [595, 113, 620, 137]
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "transit"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "State-Space"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "transit"
DstPort 1
}
Branch {
DstBlock "ideal_switch"
DstPort 1
}
}
Line {
SrcBlock "MasterMux"
SrcPort 1
DstBlock "State-Space"
DstPort 1
}
Line {
SrcBlock "MuxSwitch"
SrcPort 1
Points [15, 0; 0, -35]
DstBlock "MasterMux"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "MasterMux"
DstPort 1
}
Line {
SrcBlock "ideal_switch"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "ideal_switch"
SrcPort 2
DstBlock "MuxSwitch"
DstPort 1
}
Line {
SrcBlock "electrical sources"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
}
}
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 [405, 139, 425, 161]
FontSize 16
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
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 {
SrcBlock "Simulation method"
SrcPort 1
DstBlock "Phasor Measurements"
DstPort enable
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Phasor Measurements"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "v"
DstPort 1
}
Line {
SrcBlock "source"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Phasor Measurements"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Mux"
DstPort 2
}
}
}
}
Block {
BlockType Display
Name "Vout"
Ports [1]
Position [630, 300, 720, 330]
FontSize 10
Decimation "20"
}
Block {
BlockType Constant
Name "Zero"
Position [895, 305, 925, 335]
Orientation "up"
NamePlacement "alternate"
Value "0.0"
}
Line {
SrcBlock "50 kHz"
SrcPort 1
Points [25, 0; 0, 30]
DstBlock "Variable Duration One Shot"
DstPort 1
}
Line {
SrcBlock "Loop Compensator"
SrcPort 1
Points [-20, 0; 0, -95]
DstBlock "Open Loop"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "G3"
DstPort 1
}
Line {
SrcBlock "V set "
SrcPort 1
Points [-75, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Quiescent"
SrcPort 1
DstBlock "Open Loop"
DstPort 1
}
Line {
SrcBlock "Open Loop"
SrcPort 1
DstBlock "Sat"
DstPort 1
}
Line {
Name "ton"
Labels [0, 0]
SrcBlock "G"
SrcPort 1
DstBlock "Variable Duration One Shot"
DstPort 2
}
Line {
SrcBlock "Sat"
SrcPort 1
DstBlock "G"
DstPort 1
}
Line {
Labels [2, 0]
SrcBlock "500Hz Load Pulse"
SrcPort 1
Points [70, 0]
DstBlock "Load Pulse"
DstPort 1
}
Line {
SrcBlock "Zero"
SrcPort 1
DstBlock "Load Pulse"
DstPort 2
}
Line {
SrcBlock "G3"
SrcPort 1
DstBlock "Loop Compensator"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "Load"
SrcPort RConn1
DstBlock "G2"
DstPort LConn1
}
Line {
Name "Vout"
Labels [0, 0]
SrcBlock "Vmeas"
SrcPort 1
Points [40, 0; 0, 110]
Branch {
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [-160, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 45]
DstBlock "Vout"
DstPort 1
}
}
}
Line {
SrcBlock "Variable Duration One Shot"
SrcPort 1
Points [15, 0; 0, -90]
DstBlock "Ideal Switch"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "DC Voltage Source"
SrcPort RConn1
DstBlock "Ideal Switch"
DstPort LConn1
}
Line {
LineType "Connection"
Points [665, 55; 0, 0; 0, 65]
Branch {
ConnectType "SRC_SRC"
DstBlock "RL"
DstPort RConn1
}
Branch {
ConnectType "SRC_SRC"
DstBlock "Load"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
Points [0, 35]
DstBlock "Vmeas"
DstPort LConn1
}
Branch {
ConnectType "DEST_DEST"
SrcBlock "CCS"
SrcPort RConn1
Points [-75, 0]
}
}
Line {
Name "gate_drive"
Labels [0, 0]
SrcBlock "Variable Duration One Shot"
SrcPort 2
DstBlock "Ideal Switch1"
DstPort 1
}
Line {
Name "I Load Pulse"
Labels [0, 0]
SrcBlock "Load Pulse"
SrcPort 1
Points [0, -65]
Branch {
DstBlock "CCS"
DstPort 1
}
Branch {
Labels [1, 0]
Points [35, 0; 0, 180]
DstBlock "Scope1"
DstPort 2
}
}
Line {
LineType "Connection"
SrcBlock "Ideal Switch1"
SrcPort RConn1
Points [15, 0; 0, -120]
Branch {
ConnectType "DEST_SRC"
DstBlock "RL"
DstPort LConn1
}
Branch {
ConnectType "DEST_DEST"
SrcBlock "Ideal Switch"
SrcPort RConn1
Points [25, 0]
}
}
Line {
LineType "Connection"
Points [845, 215; -180, 0; 0, 1]
Branch {
ConnectType "SRC_DEST"
SrcBlock "CCS"
SrcPort LConn1
Points [30, 0; 0, 85]
}
Branch {
ConnectType "SRC_SRC"
DstBlock "G1"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
Points [0, -51]
DstBlock "Vmeas"
DstPort LConn2
}
Branch {
ConnectType "DEST_SRC"
Points [-240, 0; 0, -31]
DstBlock "Ideal Switch1"
DstPort LConn1
}
}
Line {
LineType "Connection"
SrcBlock "DC Voltage Source"
SrcPort LConn1
Points [-35, 0]
DstBlock "G4"
DstPort LConn1
}
Annotation {
Name "Switching Power Supply"
Position [274, 336]
FontName "Arial"
FontSize 16
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -