📄 spwmdownload.mdl
字号:
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "SPWM"
Location [2, 82, 1014, 721]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "250V"
Tag "PoWeRsYsTeMbLoCk"
Description "source block"
Ports [1, 1]
Position [70, 235, 90, 270]
Orientation "up"
NamePlacement "alternate"
SourceBlock "powerlib2/Electrical\nSources/DC Voltage Source"
SourceType "DC Voltage Source"
V "250"
mesure "Voltage"
PSBOutputType "1"
}
Block {
BlockType Clock
Name "Clock"
Position [345, 515, 365, 535]
Decimation "10"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [695, 363, 700, 547]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Reference
Name "Fourier"
Ports [1, 2]
Position [765, 222, 815, 278]
SourceBlock "powerlib_extras/Measurements/Fourier"
SourceType "Fourier analyser"
f1 "60"
n "1"
}
Block {
BlockType Reference
Name "Multimeter"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1]
Position [620, 437, 655, 473]
SourceBlock "powerlib2/Measurements/Multimeter"
SourceType "MultimeterPSB"
PhasorSimulation off
OutputType "Magnitude"
sel "[1 2 3]"
L "23"
Gain "[1 1 1]"
yselected "{'Ub: Ra R=2 L=0.01','Ub: Rb','Ub: Rc'};"
PSBOutputType "1"
PSBequivalent "0"
AxesSetting "[0,0.1,-100,100]"
Display "0"
SavedBlockNames "-11"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [615, 228, 620, 352]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Neutral (output)"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [164, 300, 216, 340]
Orientation "up"
ShowName off
SourceBlock "powerlib2/Connectors/Neutral (output)"
SourceType "Neutral"
no "99"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Neutral (output)1"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [54, 295, 106, 335]
Orientation "up"
ShowName off
SourceBlock "powerlib2/Connectors/Neutral (output)"
SourceType "Neutral"
no "99"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "PWM Generator"
Ports [1, 1]
Position [145, 379, 225, 441]
SourceBlock "powerlib_extras/Control \nBlocks/PWM Generator"
SourceType "PWM Generator"
GeneratorMode "3-arm bridge (6 pulses)"
Fc "600"
Internal on
mIndex "[0.8]"
Freq "[50]"
Phase "[0]"
}
Block {
BlockType Reference
Name "Ra R=2 L=0.01"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [515, 238, 575, 262]
SourceBlock "powerlib2/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
a "2"
b "0.01"
c "inf"
mesure "Branch voltage and current"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Rb"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [510, 278, 570, 302]
SourceBlock "powerlib2/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
a "2"
b "0.01"
c "inf"
mesure "Branch voltage and current"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Rc"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [510, 318, 570, 342]
SourceBlock "powerlib2/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
a "2"
b "0.01"
c "inf"
mesure "Branch voltage and current"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Universal Bridge"
Tag "PoWeRsYsTeMbLoCk"
Ports [3, 3]
Position [350, 227, 415, 353]
SourceBlock "powerlib2/Power\nElectronics/Universal Bridge"
SourceType "Universal Bridge"
arms "3"
confi "ABC as output terminals"
injcc "1e3"
cf "1e-6"
device "IGBT / Diodes"
Ron "1e-4"
Lon "0"
VFs "[ 0 , 0 ]"
Vf "0"
gtoparameters "[ 10e-6 , 20e-6 ]"
igbtparameters "[ 1e-6 , 0 ]"
mesure "All voltages and currents"
PSBOutputType "111"
}
Block {
BlockType Scope
Name "t"
Ports [1]
Position [445, 509, 475, 541]
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "ura"
Ports [1]
Position [775, 379, 805, 411]
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "urb"
Ports [1]
Position [770, 439, 800, 471]
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "urc"
Ports [1]
Position [770, 499, 800, 531]
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData3"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "x"
Ports [1]
Position [890, 219, 920, 251]
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
}
Line {
SrcBlock "PWM Generator"
SrcPort 1
Points [45, 0; 0, -80]
DstBlock "Universal Bridge"
DstPort 3
}
Line {
SrcBlock "250V"
SrcPort 1
Points [0, -30; 225, 0; 0, 50]
DstBlock "Universal Bridge"
DstPort 1
}
Line {
SrcBlock "Neutral (output)1"
SrcPort 1
DstBlock "250V"
DstPort 1
}
Line {
SrcBlock "Neutral (output)"
SrcPort 1
Points [0, -5]
DstBlock "Universal Bridge"
DstPort 2
}
Line {
SrcBlock "Universal Bridge"
SrcPort 1
DstBlock "Ra R=2 L=0.01"
DstPort 1
}
Line {
SrcBlock "Universal Bridge"
SrcPort 2
DstBlock "Rb"
DstPort 1
}
Line {
SrcBlock "Universal Bridge"
SrcPort 3
DstBlock "Rc"
DstPort 1
}
Line {
SrcBlock "Ra R=2 L=0.01"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Rb"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Rc"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "t"
DstPort 1
}
Line {
SrcBlock "Multimeter"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "ura"
DstPort 1
}
Branch {
Points [0, -145]
DstBlock "Fourier"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "urb"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
DstBlock "urc"
DstPort 1
}
Line {
SrcBlock "Fourier"
SrcPort 1
DstBlock "x"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -