📄 myspwm.mdl
字号:
SrcPort 1
DstBlock "Mux"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Sources"
Ports [0, 1]
Position [15, 52, 80, 78]
FontName "Arial"
FontSize 14
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Sources"
Location [16, 100, 737, 762]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType From
Name "From1"
Position [15, 21, 85, 49]
GotoTag "tp533354"
}
Block {
BlockType From
Name "From2"
Position [15, 66, 85, 94]
GotoTag "tp563746"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [325, 270, 330, 610]
Inputs "[6 1]"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "u"
Position [505, 433, 535, 447]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "u"
DstPort 1
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "From2"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
}
}
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 "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "status"
Position [15, 373, 45, 387]
IconDisplay "Port number"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 1]
Position [100, 191, 105, 569]
BackgroundColor "black"
ShowName off
Outputs "1"
DisplayOption "bar"
}
Block {
BlockType Goto
Name "Goto1"
Position [325, 21, 395, 49]
GotoTag "tp531351"
TagVisibility "global"
}
Line {
SrcBlock "status"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Goto1"
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 "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "v,i"
Position [15, 373, 45, 387]
IconDisplay "Port number"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [100, 191, 105, 569]
BackgroundColor "black"
ShowName off
Outputs "[6 22]"
DisplayOption "bar"
}
Block {
BlockType Goto
Name "Goto1"
Position [325, 21, 395, 49]
GotoTag "tp531348"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto2"
Position [325, 66, 395, 94]
GotoTag "gotomultimeterPSB"
TagVisibility "global"
}
Line {
SrcBlock "v,i"
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 "State-Space"
SrcPort 1
DstBlock "Yout"
DstPort 1
}
Line {
SrcBlock "State-Space"
SrcPort 2
DstBlock "Status"
DstPort 1
}
Line {
SrcBlock "Sources"
SrcPort 1
DstBlock "State-Space"
DstPort 1
}
Line {
SrcBlock "Gates"
SrcPort 1
DstBlock "State-Space"
DstPort 2
}
}
}
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 {
SrcBlock "PWM Generator"
SrcPort 1
Points [105, 0; 0, 100]
DstBlock "Universal Bridge"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "DC Voltage Source"
SrcPort RConn1
Points [-85, 0; 0, 80]
DstBlock "Universal Bridge"
DstPort RConn1
}
Line {
LineType "Connection"
SrcBlock "DC Voltage Source"
SrcPort LConn1
Points [0, 10; 160, 0]
DstBlock "Neutral"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Universal Bridge"
SrcPort RConn2
Points [250, 0]
DstBlock "Neutral1"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Series RLC Branch1"
SrcPort LConn1
Points [-20, 0; 0, -185]
DstBlock "Universal Bridge"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Series RLC Branch"
SrcPort LConn1
Points [-50, 0; 0, -230]
DstBlock "Universal Bridge"
DstPort LConn2
}
Line {
LineType "Connection"
SrcBlock "Series RLC Branch2"
SrcPort LConn1
Points [-75, 0; 0, -290]
DstBlock "Universal Bridge"
DstPort LConn3
}
Line {
LineType "Connection"
SrcBlock "Series RLC Branch1"
SrcPort RConn1
Points [35, 0; 0, 65]
Branch {
ConnectType "DEST_SRC"
DstBlock "Series RLC Branch"
DstPort RConn1
}
Branch {
ConnectType "DEST_DEST"
SrcBlock "Series RLC Branch2"
SrcPort RConn1
Points [40, 0; 0, -80]
}
}
Line {
SrcBlock "Multimeter"
SrcPort 1
Points [75, 0]
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [40, 0; 0, -5]
DstBlock "Scope2"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [0, -15]
DstBlock "Scope1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [40, 0; 0, -40]
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 4
Points [95, 0; 0, 15]
DstBlock "Scope3"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 5
Points [85, 0; 0, 15]
DstBlock "Scope4"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 6
Points [75, 0; 0, 55]
DstBlock "Scope5"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 7
Points [60, 0; 0, 75]
DstBlock "Scope6"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [40, 0; 0, 15]
DstBlock "Scope7"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -