📄 power_mosconv.mdl
字号:
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "From2"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "From3"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "From4"
SrcPort 1
DstBlock "Mux"
DstPort 4
}
}
}
Block {
BlockType "S-Function"
Name "State-Space"
Ports [2, 2]
Position [115, 35, 245, 155]
FontName "Arial"
FontSize 14
FunctionName "sfun_spssw_contc"
Parameters "A, B, C, D, x0, SwitchResistance ,Switc"
"hType, SwitchGateInitialValue, OutputsToResetToZero "
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType SubSystem
Name "Status"
Ports [1]
Position [280, 113, 345, 137]
FontName "Arial"
FontSize 14
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Status"
Location [124, 85, 631, 971]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "status"
Position [15, 373, 45, 387]
IconDisplay "Port number"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [100, 191, 105, 569]
BackgroundColor "black"
ShowName off
Outputs "[1 1 1]"
DisplayOption "bar"
}
Block {
BlockType Goto
Name "Goto1"
Position [325, 21, 395, 49]
GotoTag "tp374564"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto2"
Position [325, 66, 395, 94]
GotoTag "tp373318"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto3"
Position [325, 111, 395, 139]
GotoTag "tp374556"
TagVisibility "global"
}
Line {
SrcBlock "status"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Goto1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Goto2"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
DstBlock "Goto3"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Yout"
Ports [1]
Position [280, 53, 345, 77]
FontName "Arial"
FontSize 14
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Yout"
Location [124, 85, 631, 971]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "v,i"
Position [15, 373, 45, 387]
IconDisplay "Port number"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 4]
Position [100, 193, 105, 572]
BackgroundColor "black"
ShowName off
Outputs "[1 1 1 1]"
DisplayOption "bar"
}
Block {
BlockType Goto
Name "Goto1"
Position [325, 21, 395, 49]
GotoTag "tp374561"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto2"
Position [325, 66, 395, 94]
GotoTag "tp373315"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto3"
Position [325, 111, 395, 139]
GotoTag "tp374553"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto4"
Position [325, 156, 395, 184]
GotoTag "tp373311"
TagVisibility "global"
}
Line {
SrcBlock "v,i"
SrcPort 1
Points [35, 0]
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Goto1"
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 "Gates"
SrcPort 1
DstBlock "State-Space"
DstPort 2
}
Line {
SrcBlock "Sources"
SrcPort 1
DstBlock "State-Space"
DstPort 1
}
Line {
SrcBlock "State-Space"
SrcPort 2
DstBlock "Status"
DstPort 1
}
Line {
SrcBlock "State-Space"
SrcPort 1
DstBlock "Yout"
DstPort 1
}
}
}
Block {
BlockType Ground
Name "Ground"
Position [315, 40, 335, 60]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator"
Position [355, 40, 375, 60]
ShowName off
}
Line {
SrcBlock "Ground"
SrcPort 1
DstBlock "Terminator"
DstPort 1
}
Annotation {
Name "Graphical user interface for the analysis o"
"f SimPowerSystems circuits. \nPlace the Powergui block in the top-level of y"
"our model and double-click\non it to open the GUI."
Position [14, 29]
HorizontalAlignment "left"
ForegroundColor "blue"
UseDisplayTextAsClickCallback off
FontName "Arial"
FontSize 12
}
}
}
Line {
Name "I_Diode"
Labels [-1, 0]
SrcBlock "Selector1"
SrcPort 1
DstBlock "Scope"
DstPort 4
}
Line {
Name "I_MOSFET"
SrcBlock "Selector"
SrcPort 1
Points [5, 0; 0, 155]
Branch {
DstBlock "State-plane\nTrajectory"
DstPort 2
}
Branch {
Labels [-1, 0]
Points [0, 90]
DstBlock "Scope"
DstPort 2
}
}
Line {
LineType "Connection"
Points [470, 105; 65, 0]
Branch {
ConnectType "SRC_DEST"
SrcBlock "Lr = 0.02 uH"
SrcPort RConn1
Points [5, 0; 70, 0]
}
Branch {
ConnectType "SRC_SRC"
Points [0, 75]
Branch {
ConnectType "DEST_SRC"
Points [-65, 0]
DstBlock "VC"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
DstBlock "C\n0.03 uF"
DstPort LConn1
}
}
Branch {
ConnectType "DEST_SRC"
Points [90, 0]
DstBlock "Io = 5A"
DstPort LConn1
}
Branch {
ConnectType "DEST_DEST"
SrcBlock "Diode"
SrcPort RConn1
Points [0, -90]
}
}
Line {
LineType "Connection"
SrcBlock "C\n0.03 uF"
SrcPort RConn1
Points [0, 0]
Branch {
ConnectType "DEST_SRC"
Points [-65, 0]
DstBlock "VC"
DstPort LConn2
}
Branch {
ConnectType "DEST_SRC"
DstBlock "Ground1"
DstPort LConn1
}
}
Line {
LineType "Connection"
SrcBlock "Io = 5A"
SrcPort RConn1
DstBlock "Ground"
DstPort LConn1
}
Line {
SrcBlock "Mosfet"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "U = 24 V"
SrcPort RConn1
Points [0, -105]
DstBlock "Mosfet"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "output Ground2"
SrcPort LConn1
DstBlock "U = 24 V"
DstPort LConn1
}
Line {
SrcBlock "Diode"
SrcPort 1
Points [0, -15; -30, 0; 0, 180]
DstBlock "Selector1"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "Mosfet"
SrcPort RConn1
DstBlock "Lr = 0.02 uH"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "output Ground1"
SrcPort LConn1
DstBlock "Diode"
DstPort LConn1
}
Line {
Name "V_C"
SrcBlock "VC"
SrcPort 1
Points [0, 0; -15, 0]
Branch {
Labels [-1, 0]
Points [0, 125]
DstBlock "Scope"
DstPort 3
}
Branch {
DstBlock "State-plane\nTrajectory"
DstPort 1
}
}
Line {
Name "Pulses"
Labels [0, 0]
SrcBlock "Pulse\nGenerator"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Labels [-1, 0]
Points [130, 0; 0, 140]
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, -85]
DstBlock "Mosfet"
DstPort 1
}
}
Annotation {
Name "MOSFET in Zero-Current-Quasi-Resonant Converter"
Position [195, 20]
UseDisplayTextAsClickCallback off
FontSize 14
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -