📄 gsvpwm.mdl
字号:
ShowName off
AttributesFormatString "node %<NodeNumber>"
SourceBlock "powerlib/Elements/Neutral"
SourceType "Neutral"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
NodeNumber "10"
}
Block {
BlockType Reference
Name "PI Controller1"
Ports [1, 1]
Position [165, 435, 195, 465]
SourceBlock "powerlib_extras/Discrete \nControl Blocks/Discrete\nPI Controller"
SourceType "Discrete PI Controller"
Kp "0.05"
Ki "500"
Par_Limits "[1e2 -1e2]"
Init "0"
Ts "50e-6"
}
Block {
BlockType Reference
Name "PI Controller2"
Ports [1, 1]
Position [185, 550, 215, 580]
SourceBlock "powerlib_extras/Discrete \nControl Blocks/Discrete\nPI Controller"
SourceType "Discrete PI Controller"
Kp "30"
Ki "500"
Par_Limits "[1e2 -1e2]"
Init "0"
Ts "50e-6"
}
Block {
BlockType Reference
Name "PI Controller3"
Ports [1, 1]
Position [390, 540, 420, 570]
SourceBlock "powerlib_extras/Discrete \nControl Blocks/Discrete\nPI Controller"
SourceType "Discrete PI Controller"
Kp "0.05"
Ki "500"
Par_Limits "[1e2 -1e2]"
Init "0"
Ts "50e-6"
}
Block {
BlockType Scope
Name "Scope1"
Ports [2]
Position [385, 331, 415, 364]
Orientation "left"
Location [5, 60, 1029, 741]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-300~-300"
YMax "300~300"
SaveName "ScopeData8"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [700, 523, 730, 557]
Location [1, 50, 1025, 737]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "0.05"
YMax "0.55"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope3"
Ports [2]
Position [210, 300, 240, 335]
Location [5, 60, 1029, 741]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-0.9~-67.3"
YMax "0.9~-65.6"
SaveName "ScopeData9"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [775, 493, 805, 527]
Location [1, 50, 1025, 737]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "6e-005"
YMax "0.0001025"
SaveName "ScopeData12"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [940, 23, 970, 57]
Location [1, 50, 1025, 737]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "0"
YMax "1"
SaveName "ScopeData14"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope7"
Ports [1]
Position [300, 613, 330, 647]
Location [1, 50, 1025, 737]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "618.1"
YMax "620.1"
SaveName "ScopeData11"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope8"
Ports [1]
Position [645, 334, 675, 366]
Location [5, 60, 1029, 741]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.14"
YMin "2"
YMax "6"
SaveName "ScopeData16"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope9"
Ports [1]
Position [280, 368, 310, 402]
Location [5, 56, 1029, 737]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-100"
YMax "100"
SaveName "ScopeData15"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [4, 3]
Position [540, 432, 580, 493]
TreatAsAtomicUnit off
RTWSystemCode "Auto"
System {
Name "Subsystem"
Location [6, 82, 1018, 713]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "ubef"
Position [25, 113, 55, 127]
Port "1"
LatchInput off
}
Block {
BlockType Inport
Name "uaef"
Position [25, 193, 55, 207]
Port "2"
LatchInput off
}
Block {
BlockType Inport
Name "T"
Position [70, 248, 100, 262]
Port "3"
LatchInput off
}
Block {
BlockType Inport
Name "ud"
Position [25, 273, 55, 287]
Port "4"
LatchInput off
}
Block {
BlockType Gain
Name "Gain"
Position [150, 25, 180, 55]
Gain "1.732"
}
Block {
BlockType Gain
Name "Gain1"
Position [150, 105, 180, 135]
Gain "0.866"
}
Block {
BlockType Gain
Name "Gain2"
Position [120, 185, 150, 215]
Gain "1.5"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [380, 211, 425, 244]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [380, 131, 425, 164]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [375, 31, 420, 64]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [130, 246, 175, 279]
Inputs "*/"
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Scope
Name "Scope4"
Ports [3]
Position [640, 129, 670, 161]
Location [148, 257, 706, 641]
Open off
NumInputPorts "3"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
YMin "-7.5e-005~-7.5e-005~-7.5e-005"
YMax "7.5e-005~7.5e-005~7.5e-005"
SaveName "ScopeData16"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [245, 92, 270, 148]
ShowName off
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [245, 165, 270, 205]
ShowName off
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "x"
Position [510, 43, 540, 57]
}
Block {
BlockType Outport
Name "y"
Position [510, 143, 540, 157]
Port "2"
}
Block {
BlockType Outport
Name "z"
Position [510, 223, 540, 237]
Port "3"
}
Line {
SrcBlock "Product"
SrcPort 1
Points [25, 0]
Branch {
Points [0, 120; 135, 0; 0, -195]
DstBlock "Scope4"
DstPort 3
}
Branch {
DstBlock "z"
DstPort 1
}
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [45, 0]
Branch {
DstBlock "x"
DstPort 1
}
Branch {
Points [0, 85]
DstBlock "Scope4"
DstPort 1
}
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "y"
DstPort 1
}
Branch {
Points [0, 45; 110, 0; 0, -50]
DstBlock "Scope4"
DstPort 2
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [45, 0; 0, 35]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product3"
SrcPort 1
Points [175, 0; 0, -30]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, -80]
Branch {
DstBlock "Product1"
DstPort 2
}
Branch {
Points [0, -100]
DstBlock "Product2"
DstPort 2
}
}
}
Line {
SrcBlock "ubef"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Gain1"
DstPort 1
}
Branch {
Points [0, -80]
DstBlock "Gain"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [90, 0]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Sum1"
DstPort 1
}
}
Line {
SrcBlock "T"
SrcPort 1
DstBlock "Product3"
DstPort 1
}
Line {
SrcBlock "ud"
SrcPort 1
Points [55, 0]
DstBlock "Product3"
DstPort 2
}
Line {
SrcBlock "uaef"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [60, 0]
Branch {
DstBlock "Sum1"
DstPort 2
}
Branch {
Points [0, -60]
DstBlock "Sum"
DstPort 2
}
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [130, 555, 150, 575]
ShowName off
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [130, 440, 150, 460]
ShowName off
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [340, 543, 360, 567]
ShowName off
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Reference
Name "Three-Phase\nProgrammable\nVoltage Source"
Ports [0, 0, 0, 0, 0, 1, 3]
Position [330, 97, 380, 153]
SourceBlock "powerlib/Electrical\nSources/Three-Phase\nProgrammable\nVoltage Source"
SourceType "Three-Phase Programmable Voltage Source"
PositiveSequence "[220 0 50]"
VariationEntity "Phase"
VariationType "Step"
VariationStep "0.5"
VariationRate "10"
VariationMagnitude "0.3"
VariationFrequency "2"
VariationTiming "[1 2]"
VariationPhaseA off
Amplitudes "[1 0.8 1.2 1.0]"
TimeValues "[0 0.1 0.15 0.2]"
HarmonicGeneration off
HarmonicA "[3 0.2 -25 0]"
HarmonicB "[2 0.15 35 2]"
Timing "[0.05 3]"
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -