📄 pwm_pfm_buck_4.mdl
字号:
BlockType Reference
Name "Current Measurement2"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [668, 55, 692, 80]
Orientation "down"
NamePlacement "alternate"
SourceBlock "powerlib/Measurements/Current Measurement"
SourceType "Current Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Block {
BlockType SubSystem
Name "CurrentLimit"
Ports [1, 1]
Position [455, 504, 555, 546]
Orientation "left"
NamePlacement "alternate"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "CurrentLimit"
Location [173, 307, 671, 607]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Isen"
Position [110, 98, 140, 112]
IconDisplay "Port number"
}
Block {
BlockType Relay
Name "Relay"
Position [195, 90, 225, 120]
OnSwitchValue "0.141"
OffSwitchValue "0.139"
}
Block {
BlockType Outport
Name "Vipfm"
Position [360, 98, 390, 112]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Isen"
SrcPort 1
DstBlock "Relay"
DstPort 1
}
Line {
SrcBlock "Relay"
SrcPort 1
DstBlock "Vipfm"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "DC Voltage Source"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [40, 145, 60, 180]
Orientation "up"
SourceBlock "powerlib/Electrical\nSources/DC Voltage Source"
SourceType "DC Voltage Source"
ShowPortLabels on
Amplitude "3.6"
Measurements "None"
}
Block {
BlockType Reference
Name "Diode"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [255, 125, 295, 180]
Orientation "up"
SourceBlock "powerlib/Power\nElectronics/Diode"
SourceType "Diode"
ShowPortLabels on
Ron "1"
Lon "0"
Vf "0.25"
IC "0"
Rs "500"
Cs "250e-9"
Measurements off
}
Block {
BlockType SubSystem
Name "ErrorAmplifier"
Ports [2, 1]
Position [730, 394, 830, 436]
Orientation "left"
NamePlacement "alternate"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "ErrorAmplifier"
Location [70, 271, 568, 571]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Vref"
Position [110, 103, 140, 117]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Vfb"
Position [110, 158, 140, 172]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [195, 102, 225, 133]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain"
Position [295, 105, 325, 135]
Gain "500"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Vea"
Position [395, 113, 425, 127]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Vref"
SrcPort 1
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Vfb"
SrcPort 1
Points [15, 0; 0, -40]
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Vea"
DstPort 1
}
}
}
Block {
BlockType Gain
Name "Gain1"
Position [480, 225, 510, 255]
Orientation "down"
NamePlacement "alternate"
Gain "5.5556e-5"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Ground"
Ports [0, 0, 0, 0, 0, 1]
Position [34, 340, 56, 365]
Orientation "down"
ShowName off
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "Ground1"
Ports [0, 0, 0, 0, 0, 1]
Position [264, 205, 286, 230]
Orientation "down"
ShowName off
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "Ground2"
Ports [0, 0, 0, 0, 0, 1]
Position [659, 265, 681, 290]
Orientation "down"
ShowName off
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "Ground3"
Ports [0, 0, 0, 0, 0, 1]
Position [619, 340, 641, 365]
Orientation "down"
ShowName off
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
}
Block {
BlockType SubSystem
Name "I-V"
Ports [1, 2]
Position [400, 389, 500, 431]
Orientation "left"
NamePlacement "alternate"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "I-V"
Location [433, 403, 931, 703]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "I"
Position [110, 103, 140, 117]
IconDisplay "Port number"
}
Block {
BlockType Gain
Name "Gain1"
Position [210, 95, 240, 125]
Gain "1.5e4"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [210, 50, 240, 80]
Gain "1.5e4"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Vfd"
Position [285, 58, 315, 72]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Vf"
Position [360, 103, 390, 117]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "I"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Gain1"
DstPort 1
}
Branch {
Points [0, -45]
DstBlock "Gain2"
DstPort 1
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Vf"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Vfd"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "IL"
Ports [1]
Position [545, 149, 575, 181]
Floating off
Location [16, 66, 1040, 691]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "2.77556e-017"
YMax "1"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Iout"
Ports [1]
Position [845, 49, 875, 81]
Floating off
Location [53, 69, 1077, 763]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "2.77556e-017"
YMax "1"
SaveName "ScopeData7"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType SubSystem
Name "ModeControl"
Ports [2, 2]
Position [255, 654, 355, 696]
Orientation "left"
NamePlacement "alternate"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "ModeControl"
Location [189, 208, 1202, 694]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Vf"
Position [90, 73, 120, 87]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Vipfm"
Position [80, 233, 110, 247]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant2"
Position [95, 15, 125, 45]
Value "0.815"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [710, 217, 740, 248]
Operator "OR"
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [1, 1]
Position [610, 169, 640, 201]
Operator "NOT"
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator2"
Ports [2, 1]
Position [395, 67, 425, 98]
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator3"
Ports [1, 1]
Position [295, 149, 325, 181]
Operator "NOT"
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator3"
Position [180, 57, 210, 88]
Operator "<="
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -