📄 vm_pwm_buck.mdl
字号:
Name "IL"
Ports [1]
Position [530, 14, 560, 46]
Floating off
Location [6, 50, 1030, 677]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-0.025"
YMax "0.325"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Iout"
Ports [1]
Position [790, 24, 820, 56]
Floating off
Location [19, 85, 1043, 779]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "2.77556e-017"
YMax "1"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Reference
Name "Mosfet"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [310, 80, 365, 120]
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 Mux
Name "Mux"
Ports [2, 1]
Position [225, 371, 230, 409]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Parallel RLC Branch"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [644, 120, 696, 175]
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 "3"
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 "R3"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [736, 115, 764, 185]
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 "C"
Resistance "0.04"
Inductance "[]"
SetiL0 off
InitialCurrent "0"
Capacitance "10e-6"
Setx0 on
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [235, 297, 265, 328]
InputSameDT off
LogicOutDataTypeMode "Boolean"
}
Block {
BlockType Reference
Name "Repeating\nSequence"
Ports [0, 1]
Position [85, 290, 115, 320]
SourceBlock "simulink/Sources/Repeating\nSequence"
SourceType "Repeating table"
ShowPortLabels on
rep_seq_t "[0 0.8333e-6]"
rep_seq_y "[0 4]"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [290, 374, 320, 406]
Floating off
Location [117, 110, 1141, 694]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "2.77556e-017"
YMax "1"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [920, 229, 950, 261]
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 "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [440, 389, 470, 421]
Floating off
Location [136, 279, 1160, 637]
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 "Scope6"
Ports [1]
Position [330, 219, 360, 251]
Floating off
Location [17, 121, 1041, 650]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "2.77556e-017"
YMax "1"
SaveName "ScopeData6"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope7"
Ports [1]
Position [45, 404, 75, 436]
Orientation "left"
NamePlacement "alternate"
Floating off
Location [123, 100, 1147, 794]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "2.77556e-017"
YMax "1"
SaveName "ScopeData7"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope8"
Ports [1]
Position [240, 29, 270, 61]
Floating off
Location [6, 50, 1030, 744]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-0.025"
YMax "0.325"
SaveName "ScopeData8"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Reference
Name "Series RLC Branch"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [520, 91, 590, 119]
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "RL"
Resistance "0.1"
Inductance "3.3e-6"
SetiL0 on
InitialCurrent "0"
Capacitance "[]"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [205, 130, 265, 160]
VariableName "Iin"
MaxDataPoints "inf"
SampleTime "1e-7"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [225, 195, 285, 225]
VariableName "Vin"
MaxDataPoints "inf"
SampleTime "1e-7"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace2"
Position [930, 65, 990, 95]
VariableName "Vout"
MaxDataPoints "inf"
SampleTime "1e-7"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace3"
Position [860, 15, 920, 45]
VariableName "Iout"
MaxDataPoints "inf"
SampleTime "1e-7"
SaveFormat "Array"
}
Block {
BlockType Reference
Name "Voltage Measurement"
Ports [0, 1, 0, 0, 0, 2]
Position [860, 128, 885, 152]
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Voltage Measurement1"
Ports [0, 1, 0, 0, 0, 2]
Position [810, 233, 835, 257]
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Voltage Measurement2"
Ports [0, 1, 0, 0, 0, 2]
Position [130, 183, 155, 207]
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Block {
BlockType Scope
Name "Vout"
Ports [1]
Position [940, 124, 970, 156]
Floating off
Location [6, 100, 1030, 794]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "1.775"
YMax "2.075"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType SubSystem
Name "powergui"
Ports []
Position [15, 15, 75, 39]
AncestorBlock "powerlib/powergui"
CopyFcn "powergui('Copy_Callback',gcb,0,[]);"
DeleteFcn "powergui('Copy_Callback',gcb,1,[]);powergui('Cl"
"ose_Callback',gcb,[],[]);\n "
" "
ModelCloseFcn "powergui('Close_Callback',gcb,[],[]);"
PreSaveFcn "try \nclose(get_pa"
"ram(gcbh,'userdata'))\nend "
NameChangeFcn "handles = get_param(gcb,'UserData');if ~isempty"
"(handles);delete(handles.powergui);end"
OpenFcn "if (power_openblockproxy ('secondary'))\npowerg"
"ui(gcb,'PM')\nend;"
FontSize 11
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "PSB option menu block"
MaskHelp "web(psbhelp)"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -