📄 pwm_pfm_buck_1.mdl
字号:
Name "Vfb"
Position [570, 483, 600, 497]
Orientation "left"
NamePlacement "alternate"
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Iout"
Position [560, 548, 590, 562]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [435, 437, 465, 468]
Orientation "left"
NamePlacement "alternate"
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "Constant"
Position [570, 430, 600, 460]
Orientation "left"
NamePlacement "alternate"
Value "1.2"
}
Block {
BlockType Constant
Name "Constant1"
Position [200, 820, 230, 850]
}
Block {
BlockType Constant
Name "Constant2"
Position [130, 345, 160, 375]
}
Block {
BlockType Constant
Name "Constant3"
Position [230, 530, 260, 560]
Value "4"
}
Block {
BlockType Reference
Name "D Flip-Flop"
Ports [3, 2]
Position [435, 587, 480, 663]
SourceBlock "simulink_extras/Flip Flops/D Flip-Flop"
SourceType "DFlipFlop"
ShowPortLabels on
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion"
Position [260, 818, 335, 852]
OutDataTypeMode "boolean"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion1"
Position [805, 538, 880, 572]
OutDataTypeMode "boolean"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain"
Position [385, 440, 415, 470]
Orientation "left"
NamePlacement "alternate"
Gain "5e2"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [600, 330, 630, 360]
Orientation "left"
NamePlacement "alternate"
Gain "60"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [3, 1]
Position [385, 584, 415, 616]
Inputs "3"
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [352, 300, 383, 330]
Orientation "up"
InputSameDT off
LogicOutDataTypeMode "Boolean"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [210, 352, 240, 383]
InputSameDT off
LogicOutDataTypeMode "Boolean"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator2"
Position [305, 572, 335, 603]
InputSameDT off
LogicOutDataTypeMode "Boolean"
}
Block {
BlockType Relay
Name "Relay"
Position [420, 830, 450, 860]
Orientation "left"
NamePlacement "alternate"
OnSwitchValue "1.201"
OffSwitchValue "1.199"
OnOutputValue "0"
OffOutputValue "1"
}
Block {
BlockType Relay
Name "Relay1"
Position [505, 695, 535, 725]
Orientation "left"
NamePlacement "alternate"
OnSwitchValue "0.201"
OffSwitchValue "0.199"
OnOutputValue "0"
OffOutputValue "1"
}
Block {
BlockType Relay
Name "Relay2"
Position [705, 540, 735, 570]
OnSwitchValue "41e-3"
OffSwitchValue "39e-3"
}
Block {
BlockType Reference
Name "Repeating\nSequence1"
Ports [0, 1]
Position [50, 400, 80, 430]
SourceBlock "simulink/Sources/Repeating\nSequence"
SourceType "Repeating table"
ShowPortLabels on
rep_seq_t "[0 0.8333e-6]"
rep_seq_y "[0 5]"
}
Block {
BlockType Reference
Name "S-R\nFlip-Flop"
Ports [2, 2]
Position [275, 200, 350, 245]
Orientation "up"
SourceBlock "simulink_extras/Flip Flops/S-R\nFlip-Flop"
SourceType "SRFlipFlop"
ShowPortLabels on
initial_condition "1"
}
Block {
BlockType Scope
Name "Scope6"
Ports [1]
Position [415, 249, 445, 281]
Floating off
Location [17, 255, 1041, 472]
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 SubSystem
Name "Subsystem1"
Ports [0, 1]
Position [195, 714, 295, 756]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Subsystem1"
Location [348, 288, 846, 588]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [240, 112, 270, 143]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "Constant1"
Position [85, 105, 115, 135]
}
Block {
BlockType Constant
Name "Constant3"
Position [85, 235, 115, 265]
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion"
Position [310, 113, 385, 147]
OutDataTypeMode "boolean"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator1"
Ports [0, 1]
Position [70, 153, 115, 187]
PulseType "Time based"
Amplitude "2"
Period "8.333e-7"
PulseWidth "5"
PhaseDelay "6.7667e-7"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator2"
Ports [0, 1]
Position [70, 23, 115, 57]
PulseType "Time based"
Amplitude "2"
Period "8.333e-7"
PulseWidth "5"
PhaseDelay "1e-8"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [145, 32, 175, 63]
InputSameDT off
LogicOutDataTypeMode "Boolean"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator2"
Position [145, 162, 175, 193]
InputSameDT off
LogicOutDataTypeMode "Boolean"
}
Block {
BlockType Outport
Name "Out1"
Position [425, 123, 455, 137]
NamePlacement "alternate"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Pulse\nGenerator1"
SrcPort 1
DstBlock "Relational\nOperator2"
DstPort 1
}
Line {
SrcBlock "Constant3"
SrcPort 1
Points [5, 0; 0, -65]
DstBlock "Relational\nOperator2"
DstPort 2
}
Line {
SrcBlock "Pulse\nGenerator2"
SrcPort 1
DstBlock "Relational\nOperator1"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [5, 0; 0, -65]
DstBlock "Relational\nOperator1"
DstPort 2
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
Points [20, 0; 0, 70]
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator2"
SrcPort 1
Points [20, 0; 0, -45]
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "Data Type Conversion"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Switch
Name "Switch1"
Position [945, 540, 975, 570]
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Out1"
Position [995, 548, 1025, 562]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [-20, 0]
DstBlock "Relational\nOperator"
DstPort 1
}
Line {
SrcBlock "S-R\nFlip-Flop"
SrcPort 1
Points [0, -40; 520, 0; 0, 360; 115, 0]
DstBlock "Switch1"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
Points [0, 0; 0, -15]
Branch {
Points [-75, 0]
DstBlock "S-R\nFlip-Flop"
DstPort 1
}
Branch {
Points [0, -15]
DstBlock "Scope6"
DstPort 1
}
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
Points [85, 0]
DstBlock "S-R\nFlip-Flop"
DstPort 2
}
Line {
SrcBlock "Repeating\nSequence1"
SrcPort 1
Points [80, 0]
Branch {
Points [30, 0]
DstBlock "Relational\nOperator1"
DstPort 2
}
Branch {
Points [0, 180]
DstBlock "Relational\nOperator2"
DstPort 2
}
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [0, 0]
DstBlock "Relational\nOperator1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "IL"
SrcPort 1
Points [-40, 0]
Branch {
DstBlock "Gain1"
DstPort 1
}
Branch {
Points [0, 365]
DstBlock "Relay1"
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [-85, 0]
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Vfb"
SrcPort 1
Points [-10, 0]
Branch {
Points [-60, 0; 0, -30]
DstBlock "Add"
DstPort 2
}
Branch {
Points [0, 355]
DstBlock "Relay"
DstPor
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -