📄 svpwm.mdl
字号:
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
}
Branch {
DstBlock "Mux2"
DstPort 1
}
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
DstBlock "Mux2"
DstPort 3
}
Line {
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 1
DstBlock "Mux2"
DstPort 4
}
Line {
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 2
DstBlock "180/pi"
DstPort 1
}
Line {
SrcBlock "180/pi"
SrcPort 1
DstBlock "Mux2"
DstPort 5
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "options"
DstPort 1
}
}
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [305, 128, 370, 172]
Elements "SelectionMode"
InputPortWidth "length(OutputSelection)+1"
}
Block {
BlockType Constant
Name "Simulation method"
Position [140, 85, 250, 105]
Orientation "down"
BackgroundColor "magenta"
NamePlacement "alternate"
ShowName off
Value "PhasorSimulation"
}
Block {
BlockType PMComponent
Name "VoltageMeasurement"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [80, 21, 145, 49]
PhysicalDomain "powersysdomain"
PortType "p1"
LConnTagsString "+"
RConnTagsString "-"
MaskType "InnerPowersysBlock"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType SubSystem
Name "source"
Ports [0, 1]
Position [25, 124, 95, 146]
TreatAsAtomicUnit off
MaskInitialization "pss=powericon('loadsavedata','svpwm','l"
"oad');if isempty(pss),A=0;B=0;C=0;D=0;x0=0;Rswitch=0;TypeSwitch=0;Ts=0;YSwitc"
"hCurrent=-1;else,A=pss.A;B=pss.B;C=pss.C;D=pss.D;x0=pss.x0;Rswitch=pss.Rswitc"
"h;TypeSwitch=pss.TypeSwitch;Ts=0;YSwitchCurrent=pss.YSwitchCurrent;end"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "source"
Location [442, 172, 1084, 578]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType SubSystem
Name "GTO-IGBT Bridge"
Ports [1, 3]
Position [335, 229, 390, 261]
Orientation "left"
TreatAsAtomicUnit off
System {
Name "GTO-IGBT Bridge"
Location [148, 105, 915, 763]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [17, 130, 43, 150]
Orientation "down"
}
Block {
BlockType Demux
Name "Demux V"
Ports [1, 1]
Position [95, 141, 100, 419]
BackgroundColor "black"
Outputs "1"
}
Block {
BlockType From
Name "From1"
Position [50, 30, 215, 60]
GotoTag "tp421865"
}
Block {
BlockType Mux
Name "MuxItail"
Ports [1, 1]
Position [580, 141, 585, 419]
Inputs "1"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "MuxStatus"
Ports [1, 1]
Position [465, 141, 470, 419]
Inputs "1"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "MuxVf"
Ports [1, 1]
Position [685, 141, 690, 419]
Inputs "1"
DisplayOption "bar"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [19, 185, 41, 225]
Orientation "down"
Elements "[1 2 3 4 5 6]"
InputPortWidth "12"
}
Block {
BlockType Reference
Name "model1"
Ports [2, 3]
Position [250, 30, 315, 60]
BackgroundColor "lightBlue"
DropShadow on
SourceBlock "powerlib_models/Continuous/GTO-IG"
"BT Bridge"
SourceType "GTO & IGBT Bridge Logic"
nb_arm "3"
Tf "1e-006"
Tt "2e-006"
Cs "Inf"
VFs "[0 0]"
Rsw "0.001"
}
Block {
BlockType Outport
Name "iTail"
Position [610, 268, 635, 292]
InitialOutput "0"
}
Block {
BlockType Outport
Name "Status"
Position [500, 268, 525, 292]
Port "2"
InitialOutput "0"
}
Block {
BlockType Outport
Name "Vf"
Position [720, 268, 745, 292]
Port "3"
InitialOutput "0"
}
Line {
SrcBlock "Selector"
SrcPort 1
Points [0, 50]
DstBlock "Demux V"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "MuxVf"
SrcPort 1
DstBlock "Vf"
DstPort 1
}
Line {
SrcBlock "MuxItail"
SrcPort 1
DstBlock "iTail"
DstPort 1
}
Line {
SrcBlock "MuxStatus"
SrcPort 1
DstBlock "Status"
DstPort 1
}
Line {
SrcBlock "model1"
SrcPort 1
DstBlock "MuxItail"
DstPort 1
}
Line {
SrcBlock "Demux V"
SrcPort 1
DstBlock "model1"
DstPort 1
}
Line {
SrcBlock "model1"
SrcPort 2
DstBlock "MuxStatus"
DstPort 1
}
Line {
SrcBlock "model1"
SrcPort 3
DstBlock "MuxVf"
DstPort 1
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "model1"
DstPort 2
}
}
}
Block {
BlockType Mux
Name "MasterMux"
Ports [2, 1]
Position [315, 106, 340, 144]
NamePlacement "alternate"
Inputs "[-1 6]"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [140, 67, 170, 163]
Inputs "[6 2 4]"
}
Block {
BlockType Mux
Name "MuxSwitch"
Ports [1, 1]
Position [235, 126, 265, 214]
Inputs "1"
}
Block {
BlockType Mux
Name "MuxVf"
Ports [1, 1]
Position [265, 256, 295, 344]
Orientation "left"
Inputs "1"
}
Block {
BlockType SubSystem
Name "PM_synchronous_machine"
Ports [1, 1]
Position [335, 279, 390, 311]
Orientation "left"
TreatAsAtomicUnit off
System {
Name "PM_synchronous_machine"
Location [-63, 207, 470, 707]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [15, 270, 40, 290]
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 1]
Position [145, 141, 150, 419]
BackgroundColor "black"
ShowName off
Outputs "1"
}
Block {
BlockType Goto
Name "Goto1"
Position [400, 30, 465, 60]
GotoTag "tp421857"
TagVisibility "global"
}
Block {
BlockType Mux
Name "Mux"
Ports [1, 1]
Position [465, 141, 470, 419]
ShowName off
Inputs "1"
DisplayOption "bar"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [70, 265, 110, 295]
Elements "[7 8]"
InputPortWidth "12"
}
Block {
BlockType From
Name "from11"
Position [200, 30, 265, 60]
GotoTag "tp421856"
}
Block {
BlockType Reference
Name "model1"
Ports [2, 2]
Position [300, 32, 365, 63]
BackgroundColor "yellow"
DropShadow on
SourceBlock "powerlib_models/Continuous/PM_syn"
"chronous_machine"
SourceType "PM Synchronous Machine Model"
R "2.875"
L "[0.0085 0.0085]"
lam "0.175"
mec "[0.0008 0 4]"
}
Block {
BlockType Outport
Name "Out"
Position [495, 268, 520, 292]
InitialOutput "0"
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "model1"
DstPort 1
}
Line {
SrcBlock "model1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "model1"
SrcPort 2
DstBlock "Goto1"
DstPort 1
}
Line {
SrcBlock "from11"
SrcPort 1
DstBlock "model1"
DstPort 2
}
}
}
Block {
BlockType Selector
Name "SelectorVf"
Ports [1, 1]
Position [225, 287, 245, 313]
Orientation "left"
InputPortWidth "6"
}
Block {
BlockType "S-Function"
Name "State-Space"
Ports [1, 1]
Position [375, 103, 455, 147]
FunctionName "sfun_psbcontc"
Parameters "A,B,C,D,x0,Rswitch,YSwitchCurrent"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Terminator
Name "T"
Position [195, 335, 215, 355]
Orientation "down"
NamePlacement "alternate"
}
Block {
BlockType SubSystem
Name "electrical sources"
Ports [0, 1]
Position [50, 102, 75, 128]
TreatAsAtomicUnit off
System {
Name "electrical sources"
Location [49, 463, 473, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Mux
Name "Mux"
Ports [4, 1]
Position [165, 119, 205, 151]
Inputs "[2 2 2 2]"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [230, 125, 265, 145]
Elements "[1 3 5 7]"
InputPortWidth "8"
}
Block {
BlockType From
Name "from1"
Position [20, 30, 75, 60]
GotoTag "tp424096"
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -