📄 svpwm_modol.mdl
字号:
Name "Repeating\nSequence"
Ports [0, 1]
Position [355, 135, 385, 165]
SourceBlock "simulink/Sources/Repeating\nSequence"
SourceType "Repeating table"
rep_seq_t "[0 0.0625*1.0e-3 0.125*1.0e-3 0.1875*1.0e-3"
" 0.25*1.0e-3]"
rep_seq_y "[0.00005 0.0001 0.00005 0 0.00005 ]"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [450, 88, 480, 122]
Location [5, 60, 1029, 741]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "-1"
YMax "1"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleInput on
SampleTime "0.000001"
}
Block {
BlockType Scope
Name "Scope1"
Ports [3]
Position [585, 124, 615, 156]
Location [471, 259, 795, 498]
Open on
NumInputPorts "3"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
YMin "-1~-1~-1"
YMax "1~1~0"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleInput on
SampleTime "0.00001"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [465, 429, 495, 461]
Location [1, 56, 1025, 737]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "-0.0001"
YMax "0.0001"
SaveName "ScopeData7"
DataFormat "StructureWithTime"
SampleInput on
SampleTime "0.0001"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [405, 414, 435, 446]
Location [5, 60, 1029, 741]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData8"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleInput on
SampleTime "0.0001"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [415, 195, 440, 235]
ShowName off
Inputs "-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [415, 255, 440, 295]
ShowName off
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [415, 310, 440, 350]
ShowName off
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Switch
Name "Switch3"
Position [590, 200, 620, 230]
InputSameDT off
}
Block {
BlockType Switch
Name "Switch4"
Position [590, 260, 620, 290]
InputSameDT off
}
Block {
BlockType Switch
Name "Switch5"
Position [590, 315, 620, 345]
InputSameDT off
}
Block {
BlockType Outport
Name "Out1"
Position [645, 208, 675, 222]
}
Block {
BlockType Outport
Name "Out2"
Position [645, 268, 675, 282]
Port "2"
}
Block {
BlockType Outport
Name "Out3"
Position [645, 323, 675, 337]
Port "3"
}
Line {
SrcBlock "Tcm2"
SrcPort 1
Points [20, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Tcm3"
SrcPort 1
Points [20, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Repeating\nSequence"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 80]
Branch {
Points [0, 60]
Branch {
Points [0, 50]
DstBlock "Sum2"
DstPort 2
}
Branch {
Points [5, 0]
DstBlock "Sum1"
DstPort 2
}
}
Branch {
Points [5, 0]
DstBlock "Sum"
DstPort 2
}
}
Branch {
Points [0, -55]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Tcm1"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 215]
DstBlock "Scope3"
DstPort 1
}
Branch {
Points [15, 0; 0, -10]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, -90]
DstBlock "Mux"
DstPort 2
}
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Relay"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Relay1"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Relay2"
DstPort 1
}
Branch {
DstBlock "Scope2"
DstPort 1
}
}
Line {
SrcBlock "Relay"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Switch3"
DstPort 2
}
Branch {
Points [0, -85]
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "Relay1"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
DstBlock "Switch4"
DstPort 2
}
Branch {
Points [0, -135]
DstBlock "Scope1"
DstPort 2
}
}
Line {
SrcBlock "Relay2"
SrcPort 1
Points [0, 0; 60, 0]
Branch {
DstBlock "Switch5"
DstPort 2
}
Branch {
Points [0, -180]
DstBlock "Scope1"
DstPort 3
}
}
Line {
Labels [0, 0]
SrcBlock "Switch3"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Switch4"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "Switch5"
SrcPort 1
DstBlock "Out3"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [40, 0; 0, -50]
Branch {
DstBlock "Switch5"
DstPort 3
}
Branch {
Points [0, -55]
Branch {
Points [0, -60]
DstBlock "Switch3"
DstPort 3
}
Branch {
DstBlock "Switch4"
DstPort 3
}
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [5, 0; 0, 105]
Branch {
Points [0, 60]
Branch {
Points [0, 55]
DstBlock "Switch5"
DstPort 1
}
Branch {
DstBlock "Switch4"
DstPort 1
}
}
Branch {
DstBlock "Switch3"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "Vdc"
Position [270, 440, 300, 470]
Value "540"
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [30, 0; 0, 20; 10, 0]
Branch {
DstBlock "CAL-N"
DstPort 1
}
Branch {
Points [0, -45; 120, 0]
DstBlock "Subsystem"
DstPort 1
}
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
Points [60, 0]
Branch {
DstBlock "CAL-N"
DstPort 2
}
Branch {
Points [0, 20]
DstBlock "Subsystem"
DstPort 2
}
}
Line {
SrcBlock "CAL-N"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -105]
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [15, 0]
Branch {
Points [25, 0; 0, -45; 215, 0]
DstBlock "TCM123"
DstPort 1
}
Branch {
Points [0, -20]
DstBlock "T1T2"
DstPort 1
}
}
}
Line {
SrcBlock "TCM123"
SrcPort 1
DstBlock "Uabc"
DstPort 1
}
Line {
SrcBlock "TCM123"
SrcPort 2
DstBlock "Uabc"
DstPort 2
}
Line {
SrcBlock "TCM123"
SrcPort 3
Points [5, 0]
Branch {
DstBlock "Uabc"
DstPort 3
}
Branch {
Points [0, 165]
DstBlock "Scope4"
DstPort 1
}
}
Line {
SrcBlock "T1T2"
SrcPort 1
Points [15, 0]
Branch {
Points [15, 0; 0, 15]
DstBlock "TCM123"
DstPort 2
}
Branch {
Points [0, -105]
DstBlock "Scope2"
DstPort 1
}
}
Line {
SrcBlock "T1T2"
SrcPort 2
Points [30, 0; 0, -20]
DstBlock "TCM123"
DstPort 3
}
Line {
SrcBlock "Subsystem"
SrcPort 3
Points [10, 0]
Branch {
Points [0, 160]
DstBlock "Scope3"
DstPort 3
}
Branch {
DstBlock "T1T2"
DstPort 4
}
}
Line {
SrcBlock "Subsystem"
SrcPort 2
Points [15, 0]
Branch {
Points [0, 165]
DstBlock "Scope3"
DstPort 2
}
Branch {
DstBlock "T1T2"
DstPort 3
}
}
Line {
SrcBlock "Subsystem"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "T1T2"
DstPort 2
}
Branch {
Points [0, 170]
DstBlock "Scope3"
DstPort 1
}
}
Line {
SrcBlock "T"
SrcPort 1
Points [20, 0; 0, -10; 15, 0]
Branch {
Points [0, 75; 230, 0]
DstBlock "TCM123"
DstPort 4
}
Branch {
DstBlock "Subsystem"
DstPort 3
}
}
Line {
SrcBlock "Vdc"
SrcPort 1
Points [20, 0; 0, -40]
DstBlock "Subsystem"
DstPort 4
}
Line {
SrcBlock "Uabc"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Uabc"
SrcPort 2
DstBlock "Scope"
DstPort 2
}
Line {
SrcBlock "Uabc"
SrcPort 3
DstBlock "Scope"
DstPort 3
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -