📄 svpwm.mdl
字号:
SubClassName "unknown"
PortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "IGBT逆变器"
Ports [1, 0, 0, 0, 0, 3, 2]
Position [830, 630, 885, 710]
Orientation "left"
AttributesFormatString "\\n"
SourceBlock "powerlib/Power\nElectronics/Universal Bridge"
SourceType "Universal Bridge"
Arms "3"
SnubberResistance "1e5"
SnubberCapacitance "inf"
Device "IGBT / Diodes"
Ron "1e-3"
Lon "0"
ForwardVoltages "[ 0 0 ]"
ForwardVoltage "0"
GTOparameters "[ 10e-6 , 20e-6 ]"
IGBTparameters "[ 1e-6 , 2e-6 ]"
Measurements "None"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [400, 385, 460, 415]
MATLABFcn "(u(1)-0.5*u(2)-0.5*u(3))*2/3"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn1"
Position [400, 340, 460, 370]
MATLABFcn "(0.866*u(2)-0.866*u(3))*2/3"
}
Block {
BlockType Reference
Name "Machines\nMeasurement\nDemux"
Ports [1, 5]
Position [1080, 608, 1130, 732]
SourceBlock "powerlib/Machines/Machines\nMeasurement\nDemux"
SourceType "Machine measurements"
machType "Permanent magnet synchronous"
ssm1 on
ssm2 on
ssm3 on
ssm4 on
ssm5 on
ssm6 on
sm1 on
sm2 on
sm3 on
sm4 on
sm5 on
sm6 on
sm7 on
sm8 on
sm9 on
sm10 on
sm11 on
sm115 off
sm12 off
sm13 off
sm14 off
asm1 on
asm2 on
asm3 on
asm4 on
asm5 on
asm6 on
asm7 on
asm8 on
asm9 on
asm10 on
asm11 on
pmsm1 on
pmsm2 on
pmsm3 off
pmsm4 on
pmsm5 on
pmsm6 on
lastType "4"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [285, 305, 295, 445]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "PMSM"
Ports [1, 1, 0, 0, 0, 3]
Position [980, 634, 1050, 706]
AttributesFormatString "\\n"
SourceBlock "powerlib/Machines/Permanent Magnet\nSynchronous"
" Machine"
SourceType "Permanent Magnet Synchronous Machine"
Resistance "2.875"
Inductances "[8.5e-3, 8.5e-3]"
Flux "0.175"
Mechanical "[ 0.8e-3, 0, 4 ]"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [1330, 189, 1360, 221]
Location [639, 452, 963, 691]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "1"
YMax "3.1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope1"
Ports [3]
Position [275, 198, 305, 272]
Location [5, 60, 1029, 741]
Open off
NumInputPorts "3"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
YMin "-225~-225~-225"
YMax "225~225~225"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [1145, 59, 1175, 91]
Location [349, 385, 673, 624]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "-0.25"
YMax "0.3"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [880, 54, 910, 86]
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "-0.1"
YMax "1"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope4"
Ports [2]
Position [525, 445, 555, 520]
Location [5, 60, 1029, 741]
Open off
NumInputPorts "2"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.012"
YMin "10~-225"
YMax "230~150"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [1205, 649, 1235, 681]
Location [186, 259, 510, 498]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "-9.89"
YMax "-9.75"
SaveName "ScopeData6"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope6"
Ports [1]
Position [1035, 724, 1065, 756]
Location [632, 312, 956, 551]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "-0.00125"
YMax "0.00125"
SaveName "ScopeData7"
DataFormat "StructureWithTime"
}
Block {
BlockType Step
Name "Step"
Position [985, 600, 1015, 630]
Orientation "left"
NamePlacement "alternate"
Time "0.1"
Before "2"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [0, 1]
Position [110, 300, 150, 360]
TreatAsAtomicUnit off
System {
Name "Subsystem"
Location [2, 82, 1014, 722]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Reference
Name "A"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [546, 335, 614, 405]
Orientation "down"
NamePlacement "alternate"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
PortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
Resistance "1000"
Inductance "0"
Capacitance "inf"
Measurements "None"
}
Block {
BlockType Reference
Name "AC "
Description "source block"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [223, 350, 247, 385]
Orientation "up"
AttributesFormatString "\\n"
SourceBlock "powerlib/Electrical\nSources/AC Voltage Sou"
"rce"
SourceType "AC Voltage Source"
Amplitude "220"
Phase "0"
Frequency "60"
SampleTime "0"
Measurements "None"
}
Block {
BlockType Reference
Name "Ground"
Ports [0, 0, 0, 0, 0, 1]
Position [224, 450, 246, 475]
Orientation "down"
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
PortType "p1"
LConnTagsString "a"
}
Block {
BlockType SubSystem
Name "V"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [370, 218, 395, 242]
AttributesFormatString "\\n"
AncestorBlock "powerlib/Measurements/Voltage Measurement"
CopyFcn "powericon('psbloadfunction',gcbh,'Measureme"
"nt Block','VerifyPhasor');"
LoadFcn "powericon('psbloadfunction',gcbh,'Measureme"
"nt Block','');"
PreSaveFcn "powericon('psbloadfunction',gcbh,'ModelClos"
"eFcn','');"
InitFcn "powericon('psbloadfunction',gcbh,'InitFcnOf"
"SPSBlocks','Measurement Block');"
CloseFcn "powericon('psbloadfunction',gcbh,'CloseFcn'"
",'');"
TreatAsAtomicUnit off
MaskType "Voltage Measurement"
MaskDescription "Ideal voltage measurement."
MaskHelp "web(psbhelp);"
MaskPromptString "Phasor simulation|Output signal :|Equivalen"
"t circuit"
MaskStyleString "checkbox,popup(Complex|Real-Imag|Magnitude-"
"Angle|Magnitude),edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "off,off,off"
MaskVisibilityString "off,on,off"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "PhasorSimulation=@1;OutputType=@2;PSBequiva"
"lent=@3;"
MaskInitialization "switch OutputType\ncase 1\n OutputSelect"
"ion = 1;\n NormalMode = 2;\n PhasorMode = 1;\ncase 2\n OutputSelecti"
"on =[2,3];\n NormalMode = 3;\n PhasorMode = [1,2];\ncase 3\n OutputS"
"election =[4,5];\n NormalMode = 3;\n PhasorMode = [1,2];\ncase 4\n O"
"utputSelection =[4];\n NormalMode = 2;\n PhasorMode = 1;\nend\n%\nif Ph"
"asorSimulation\n SelectionMode = PhasorMode;\nelse\n SelectionMode = No"
"rmalMode;\nend\n"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "off|Magnitude|1"
System {
Name "V"
Location [206, 474, 665, 687]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [275, 121, 280, 179]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "Phasor Measurements"
Ports [1, 1, 1]
Position [145, 123, 250, 147]
BackgroundColor "green"
TreatAsAtomicUnit on
System {
Name "Phasor Measurements"
Location [255, 525, 861, 796]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "measure"
Position [70, 28, 100, 42]
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [20, 15, 40, 35]
}
Block {
BlockType Gain
Name "180/pi"
Position [225, 105, 245, 125]
Gain "180/pi"
}
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle"
Ports [1, 2]
Position [140, 85, 195, 125]
ShowName off
Output "Magnitude and angle"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [140, 45, 195, 85]
ShowName off
Output "Real and imag"
}
Block {
BlockType Mux
Name "Mux2"
Ports [5, 1]
Position [275, 23, 280, 127]
ShowName off
Inputs "5"
DisplayOption "bar"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [315, 51, 350, 99]
Elements "OutputSelection"
InputPortWidth "5"
}
Block {
BlockType Outport
Name "options"
Position [380, 68, 410, 82]
InitialOutput "0"
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "measure"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, 30]
Branch {
Points [0, 40]
DstBlock "Complex to\nMagnitude-Angle"
DstPort 1
}
Branch {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -