📄 buck_fb.mdl
字号:
Rs "1e5"
Cs "inf"
Measurements on
}
Block {
BlockType Reference
Name "L"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [585, 344, 640, 396]
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Parallel RLC Branch"
SourceType "Parallel RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
RConnTagsString "__new0"
Resistance "inf"
Inductance "2e-4"
Capacitance "0"
Measurements "None"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [980, 426, 985, 464]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "R"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [801, 440, 829, 510]
Orientation "up"
NamePlacement "alternate"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
Resistance "5"
Inductance "0"
Capacitance "inf"
Measurements "None"
}
Block {
BlockType Reference
Name "Repeating\nSequence"
Ports [0, 1]
Position [130, 270, 160, 300]
SourceBlock "simulink/Sources/Repeating\nSequence"
SourceType "Repeating table"
ShowPortLabels on
rep_seq_t "[0 0.000005]"
rep_seq_y "[0 1]"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [1045, 429, 1075, 461]
NamePlacement "alternate"
Location [1, 49, 1281, 993]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-1"
YMax "15"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [395, 209, 425, 241]
Location [1, 49, 1281, 993]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-0.5"
YMax "2.5"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [215, 164, 245, 196]
Location [1, 49, 1281, 993]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-0.5"
YMax "3"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [640, 630, 660, 650]
Orientation "left"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [225, 275, 245, 295]
ShowName off
IconShape "round"
Inputs "|-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch"
Position [295, 270, 325, 300]
Criteria "u2 > Threshold"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Terminator
Name "Terminator"
Position [585, 225, 605, 245]
}
Block {
BlockType Reference
Name "Voltage Measurement"
Ports [0, 1, 0, 0, 0, 2]
Position [890, 443, 915, 467]
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Line {
LineType "Connection"
SrcBlock "Ideal Switch"
SrcPort RConn1
Points [0, 65; 40, 0]
Branch {
ConnectType "DEST_DEST"
SrcBlock "L"
SrcPort LConn1
Points [0, 0; -5, 0]
}
Branch {
ConnectType "DEST_SRC"
DstBlock "Diode"
DstPort RConn1
}
}
Line {
LineType "Connection"
Points [815, 525; 0, 5; 60, 0; 0, -70]
DstBlock "Voltage Measurement"
DstPort LConn2
Branch {
ConnectType "SRC_SRC"
DstBlock "R"
DstPort LConn1
}
Branch {
ConnectType "SRC_DEST"
Points [745, 530; 70, 0; 0, -5]
Branch {
ConnectType "SRC_DEST"
SrcBlock "C"
SrcPort LConn1
Points [0, 0; 0, 10]
}
Branch {
ConnectType "SRC_SRC"
Points [-95, 0]
Branch {
ConnectType "DEST_SRC"
Points [-85, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "Diode"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
Points [-135, 0]
DstBlock "DC Voltage Source"
DstPort LConn1
}
}
Branch {
ConnectType "DEST_SRC"
DstBlock "Ground"
DstPort LConn1
}
}
}
}
Line {
LineType "Connection"
Points [745, 415; 35, 0; 35, 0]
Branch {
ConnectType "SRC_SRC"
DstBlock "C"
DstPort RConn1
}
Branch {
ConnectType "SRC_DEST"
SrcBlock "Current Measurement"
SrcPort RConn1
Points [25, 0; 0, 40]
}
Branch {
ConnectType "DEST_SRC"
DstBlock "R"
DstPort RConn1
}
Branch {
ConnectType "DEST_DEST"
SrcBlock "Voltage Measurement"
SrcPort LConn1
Points [-20, 0; 0, -35; -40, 0]
}
}
Line {
LineType "Connection"
SrcBlock "L"
SrcPort RConn1
DstBlock "Current Measurement"
DstPort LConn1
}
Line {
Labels [2, 0]
SrcBlock "Ideal Switch"
SrcPort 1
Points [40, 0; 0, -50]
DstBlock "Terminator"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "Ideal Switch"
SrcPort LConn1
Points [-10, 0]
DstBlock "DC Voltage Source"
DstPort RConn1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Voltage Measurement"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Mux"
DstPort 2
}
Branch {
Labels [3, 0]
Points [25, 0; 0, 245; -300, 0]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Current Measurement"
SrcPort 1
Points [205, 0; 0, 70]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [-315, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Repeating\nSequence"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Labels [1, 0]
Points [0, -105]
DstBlock "Scope2"
DstPort 1
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [-15, 0; 0, 50]
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [-15, 0; 0, -60]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Ideal Switch"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "Scope1"
DstPort 1
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -