📄 connected_to_pwm.mdl
字号:
SrcBlock "From2"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "From3"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
}
}
Block {
BlockType SubSystem
Name "Sources"
Ports [0, 1]
Position [15, 51, 80, 79]
FontName "Arial"
FontSize 14
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Sources"
Location [20, 127, 741, 789]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType From
Name "From1"
Position [15, 21, 85, 49]
GotoTag "tp6a714669_d001_4f31_a6c2_56f5d99f8551"
TagVisibility "global"
}
Block {
BlockType From
Name "From2"
Position [15, 66, 85, 94]
GotoTag "tpc147cabf_6551_4540_b251_2d6b0dd64055"
TagVisibility "global"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [325, 270, 330, 610]
ShowName off
Inputs "[1 1]"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux_u"
Ports [2, 1]
Position [465, 374, 470, 461]
Inputs "[3 2]"
DisplayOption "bar"
}
Block {
BlockType Constant
Name "SwitchCurrents"
Position [350, 379, 430, 411]
NamePlacement "alternate"
Value "zeros(3,1)"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "u"
Position [505, 413, 535, 427]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Mux_u"
DstPort 2
}
Line {
SrcBlock "SwitchCurrents"
SrcPort 1
DstBlock "Mux_u"
DstPort 1
}
Line {
SrcBlock "Mux_u"
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_discc"
Parameters "Ts,A, B, C, D, x0, SwitchResistance ,SwitchType, SwitchGateInitialValue, OutputsToResetToZero "
EnableBusSupport off
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType SubSystem
Name "Status"
Ports [1]
Position [280, 113, 345, 137]
FontName "Arial"
FontSize 14
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
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"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "status"
Position [15, 373, 45, 387]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
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 "tp7511cc03_fd9e_40d3_91f7_e7a578e52346"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto2"
Position [325, 66, 395, 94]
GotoTag "tpf0948aa0_b7e6_432f_b793_e354b9313f2f"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto3"
Position [325, 111, 395, 139]
GotoTag "tp3baa4506_fab3_4135_84d6_6b8b7d8b6eb9"
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
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
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"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "v,i"
Position [15, 373, 45, 387]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 5]
Position [100, 191, 105, 569]
BackgroundColor "black"
ShowName off
Outputs "[1 1 1 1 6]"
DisplayOption "bar"
}
Block {
BlockType Goto
Name "Goto1"
Position [325, 21, 395, 49]
GotoTag "tpad7554dd_79fe_4217_98c7_a1a10d613726"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto2"
Position [325, 66, 395, 94]
GotoTag "tpa35b6c09_f9a6_4e60_af6f_187d887fc972"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto3"
Position [325, 111, 395, 139]
GotoTag "tpc79885da_9859_44b2_aa65_6a3a03772844"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto4"
Position [325, 156, 395, 184]
GotoTag "tp369b6414_a09d_499e_acdd_df9b52f9f455"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto5"
Position [325, 201, 395, 229]
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 "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
}
}
}
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 of SimPowerSystems circuits. \nPlace the Powergui block in the top-level of your model and double-click\non it to open the GUI."
Position [14, 29]
HorizontalAlignment "left"
ForegroundColor "blue"
FontName "Arial"
FontSize 12
}
}
}
Line {
LineType "Connection"
Points [560, 365; 80, 0]
Branch {
ConnectType "SRC_DEST"
SrcBlock "C"
SrcPort LConn1
Points [0, -50]
}
Branch {
ConnectType "SRC_SRC"
Points [-80, 0]
DstBlock "Diode"
DstPort RConn1
}
Branch {
ConnectType "DEST_SRC"
DstBlock "R
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -