📄 pwm_pfm_buck_4.mdl
字号:
InputSameDT off
LogicOutDataTypeMode "Boolean"
}
Block {
BlockType Outport
Name "Vmcon"
Position [675, 78, 705, 92]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Vpcon"
Position [940, 228, 970, 242]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Vf"
SrcPort 1
DstBlock "Relational\nOperator3"
DstPort 2
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [15, 0; 0, 35]
DstBlock "Relational\nOperator3"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator2"
SrcPort 1
Points [35, 0]
Branch {
Points [0, 100]
DstBlock "Logical\nOperator1"
DstPort 1
}
Branch {
DstBlock "Vmcon"
DstPort 1
}
}
Line {
SrcBlock "Relational\nOperator3"
SrcPort 1
DstBlock "Logical\nOperator2"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator1"
SrcPort 1
Points [20, 0; 0, 40]
DstBlock "Logical\nOperator"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Vpcon"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator3"
SrcPort 1
Points [25, 0; 0, -75]
DstBlock "Logical\nOperator2"
DstPort 2
}
Line {
SrcBlock "Vipfm"
SrcPort 1
Points [140, 0]
Branch {
Points [0, -75]
DstBlock "Logical\nOperator3"
DstPort 1
}
Branch {
DstBlock "Logical\nOperator"
DstPort 2
}
}
}
}
Block {
BlockType Reference
Name "Mosfet"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [175, 75, 230, 115]
NamePlacement "alternate"
SourceBlock "powerlib/Power\nElectronics/Mosfet"
SourceType "Mosfet"
ShowPortLabels on
Ron "0.001"
Lon "1e-6"
Rd ".001"
Vfd "0"
IC "0"
Rs "1e5"
Cs "inf"
Measurements off
}
Block {
BlockType SubSystem
Name "OSC\nRamp Generator"
Ports [1, 2]
Position [199, 515, 241, 615]
Orientation "up"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "OSC\nRamp Generator"
Location [478, 321, 1189, 672]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Vmcon"
Position [50, 218, 80, 232]
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant2"
Position [110, 30, 140, 60]
Value "0.5"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion1"
Position [145, 278, 220, 312]
OutDataTypeMode "double"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide2"
Ports [2, 1]
Position [350, 282, 380, 313]
Inputs "**"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Logic
Name "Logical\nOperator2"
Ports [2, 1]
Position [345, 102, 375, 133]
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [275, 92, 305, 123]
InputSameDT off
LogicOutDataTypeMode "Boolean"
}
Block {
BlockType Reference
Name "Repeating\nSequence1"
Ports [0, 1]
Position [110, 100, 140, 130]
SourceBlock "simulink/Sources/Repeating\nSequence"
SourceType "Repeating table"
ShowPortLabels on
rep_seq_t "[0 0.8333e-6]"
rep_seq_y "[0 1]"
}
Block {
BlockType Scope
Name "Scope13"
Ports [1]
Position [360, 44, 390, 76]
Floating off
Location [198, 254, 1222, 711]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "2.77556e-017"
YMax "1"
SaveName "ScopeData18"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Outport
Name "Vosc"
Position [540, 113, 570, 127]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Vramp"
Position [550, 213, 580, 227]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [55, 0; 0, 55]
DstBlock "Relational\nOperator1"
DstPort 1
}
Line {
SrcBlock "Repeating\nSequence1"
SrcPort 1
Points [65, 0]
Branch {
DstBlock "Relational\nOperator1"
DstPort 2
}
Branch {
Points [0, 105]
DstBlock "Vramp"
DstPort 1
}
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Logical\nOperator2"
DstPort 1
}
Branch {
Points [0, -50]
DstBlock "Scope13"
DstPort 1
}
}
Line {
SrcBlock "Logical\nOperator2"
SrcPort 1
DstBlock "Vosc"
DstPort 1
}
Line {
SrcBlock "Vmcon"
SrcPort 1
Points [10, 0; 0, -50; 235, 0]
DstBlock "Logical\nOperator2"
DstPort 2
}
}
}
Block {
BlockType Reference
Name "Parallel RLC Branch"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [644, 110, 696, 165]
Orientation "down"
NamePlacement "alternate"
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Parallel RLC Branch"
SourceType "Parallel RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
RConnTagsString "__new0"
BranchType "R"
Resistance "10"
Inductance "[]"
SetiL0 off
InitialCurrent "0"
Capacitance "10e-6"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Reference
Name "R1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [616, 125, 644, 195]
Orientation "down"
NamePlacement "alternate"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "R"
Resistance "5e4"
Inductance "[]"
SetiL0 off
InitialCurrent "0"
Capacitance "[]"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Reference
Name "R2"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [616, 235, 644, 305]
Orientation "down"
NamePlacement "alternate"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "R"
Resistance "1e5"
Inductance "[]"
SetiL0 off
InitialCurrent "0"
Capacitance "[]"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Reference
Name "S-R\nFlip-Flop"
Ports [2, 2]
Position [190, 235, 265, 280]
Orientation "up"
SourceBlock "simulink_extras/Flip Flops/S-R\nFlip-Flop"
SourceType "SRFlipFlop"
ShowPortLabels on
initial_condition "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [610, 469, 640, 501]
Floating off
Location [17, 164, 1041, 679]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "2.77556e-017"
YMax "1"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope10"
Ports [1]
Position [460, 279, 490, 311]
Orientation "left"
NamePlacement "alternate"
Floating off
Location [125, 166, 1149, 728]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "2.77556e-017"
YMax "1"
SaveName "ScopeData12"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope11"
Ports [1]
Position [315, 594, 345, 626]
Floating off
Location [17, 255, 1041, 712]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "2.77556e-017"
YMax "1"
SaveName "ScopeData13"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope12"
Ports [1]
Position [145, 619, 175, 651]
Orientation "left"
NamePlacement "alternate"
Floating off
Location [199, 307, 1223, 764]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "2.77556e-017"
YMax "1"
SaveName "ScopeData14"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope13"
Ports [1]
Position [145, 454, 175, 486]
Orientation "left"
NamePlacement "alternate"
Floating off
Location [199, 142, 1223, 599]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "2.77556e-017"
YMax "1"
SaveName "ScopeData15"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope14"
Ports [1]
Position [315, 494, 345, 526]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -