📄 inverter.mdl
字号:
DstBlock "Terminator2"
DstPort 1
}
Line {
SrcBlock "Thyristor4"
SrcPort 2
DstBlock "Terminator4"
DstPort 1
}
Line {
SrcBlock "Thyristor5"
SrcPort 2
DstBlock "Terminator5"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Bus Bar (thin vert)"
Tag "PoWeRsYsTeMbLoCk"
Ports [3]
Position [765, 92, 770, 278]
ShowName off
SourceBlock "powerlib2/Connectors/Bus Bar (thin vert)"
SourceType "Bus Bar"
ShowPortLabels on
input "3"
output "0"
PSBOutputType "11111111111111111111111111111111111111111111111"
"1111111111111111111111111111111111111"
}
Block {
BlockType Clock
Name "Clock"
Position [40, 320, 60, 340]
Decimation "10"
}
Block {
BlockType Display
Name "I (rms)"
Ports [1]
Position [620, 13, 715, 37]
Decimation "1"
Lockdown off
}
Block {
BlockType SubSystem
Name "Measurement"
Ports [1, 3]
Position [455, 89, 530, 131]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Measurement"
Location [84, 220, 767, 563]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "r"
Position [15, 128, 45, 142]
ShowName off
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Current Measurement"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [1, 2]
Position [80, 163, 110, 192]
ShowName off
SourceBlock "powerlib2/Measurements/Current Measurement"
SourceType "Current Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "01"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Fourier"
Ports [1, 2]
Position [190, 236, 255, 294]
SourceBlock "powerlib_extras/Measurements/Fourier"
SourceType "Fourier analyser"
ShowPortLabels on
f1 "50"
n "3"
}
Block {
BlockType Reference
Name "Ground (output)1"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [59, 70, 91, 100]
Orientation "up"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (output)"
SourceType "Ground"
ShowPortLabels on
PSBOutputType "1"
}
Block {
BlockType Display
Name "Q"
Ports [1]
Position [320, 287, 410, 313]
Decimation "1"
Lockdown off
}
Block {
BlockType Reference
Name "RMS"
Ports [1, 1]
Position [270, 134, 305, 166]
SourceBlock "powerlib_extras/Measurements/RMS"
SourceType "RMS"
ShowPortLabels on
f1 "50"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [145, 38, 175, 72]
ShowName off
Floating off
Location [56, 330, 716, 737]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.04"
YMin "-350"
YMax "350"
SaveName "ScopeData6"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [320, 233, 350, 267]
ShowName off
Floating off
Location [56, 330, 716, 737]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.04"
YMin "-350"
YMax "350"
SaveName "ScopeData7"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [250, 20, 310, 50]
ShowName off
VariableName "x"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [410, 205, 470, 235]
ShowName off
VariableName "x1"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace2"
Position [465, 85, 525, 115]
ShowName off
VariableName "y"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Reference
Name "Voltage Measurement"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [90, 38, 120, 67]
ShowName off
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "1"
}
Block {
BlockType Outport
Name "rms"
Position [605, 143, 635, 157]
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "i"
Position [335, 63, 365, 77]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "a"
Position [355, 178, 385, 192]
ShowName off
Port "3"
IconDisplay "Port number"
}
Line {
SrcBlock "Current Measurement"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -10]
Branch {
Points [0, 10; 120, 0]
DstBlock "RMS"
DstPort 1
}
Branch {
Points [0, -35; 65, 0; 0, -55]
Branch {
Points [0, -35]
DstBlock "To Workspace"
DstPort 1
}
Branch {
DstBlock "i"
DstPort 1
}
}
}
Branch {
Points [0, 95]
DstBlock "Fourier"
DstPort 1
}
}
Line {
SrcBlock "RMS"
SrcPort 1
Points [85, 0]
Branch {
Points [0, -50]
DstBlock "To Workspace2"
DstPort 1
}
Branch {
DstBlock "rms"
DstPort 1
}
}
Line {
SrcBlock "r"
SrcPort 1
Points [0, 0]
Branch {
Points [0, 45]
DstBlock "Current Measurement"
DstPort 1
}
Branch {
Points [0, -90]
DstBlock "Voltage Measurement"
DstPort 1
}
}
Line {
SrcBlock "Current Measurement"
SrcPort 2
DstBlock "a"
DstPort 1
}
Line {
SrcBlock "Ground (output)1"
SrcPort 1
DstBlock "Voltage Measurement"
DstPort 2
}
Line {
SrcBlock "Voltage Measurement"
SrcPort 1
DstBlock "Scope1"
DstPort 1
}
Line {
SrcBlock "Fourier"
SrcPort 1
Points [-10, 0; 20, 0]
Branch {
DstBlock "Scope3"
DstPort 1
}
Branch {
Points [0, -30]
DstBlock "To Workspace1"
DstPort 1
}
}
Line {
SrcBlock "Fourier"
SrcPort 2
Points [15, 0; 0, 20]
DstBlock "Q"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [770, 48, 800, 82]
ShowName off
Floating off
Location [121, 207, 963, 518]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.04"
YMin "-350"
YMax "350"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [135, 315, 195, 345]
ShowName off
VariableName "t"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType SubSystem
Name "source"
Ports [0, 3]
Position [15, 93, 95, 277]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('3phase source')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "source"
Location [433, 403, 931, 703]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Reference
Name "output Ground1"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [75, 215, 105, 245]
Orientation "up"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (output)"
SourceType "Ground"
ShowPortLabels on
PSBOutputType "1"
}
Block {
BlockType Reference
Name "output Ground2"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [155, 215, 185, 245]
Orientation "up"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (output)"
SourceType "Ground"
ShowPortLabels on
PSBOutputType "1"
}
Block {
BlockType Reference
Name "output Ground3"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [235, 215, 265, 245]
Orientation "up"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (output)"
SourceType "Ground"
ShowPortLabels on
PSBOutputType "1"
}
Block {
BlockType Reference
Name "v1"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [80, 160, 100, 200]
Orientation "up"
SourceBlock "powerlib2/Electrical\nSources/AC Voltage So"
"urce"
SourceType "AC Voltage Source"
ShowPortLabels on
A "220*sqrt(2)"
P "0"
F "50"
stime "0"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "v2"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [160, 160, 180, 200]
Orientation "up"
SourceBlock "powerlib2/Electrical\nSources/AC Voltage So"
"urce"
SourceType "AC Voltage Source"
ShowPortLabels on
A "220*sqrt(2)"
P "-120"
F "50"
stime "0"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "v3"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [240, 165, 260, 205]
Orientation "up"
SourceBlock "powerlib2/Electrical\nSources/AC Voltage So"
"urce"
SourceType "AC Voltage Source"
ShowPortLabels on
A "220*sqrt(2)"
P "120"
F "50"
stime "0"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Outport
Name "a"
Position [110, 28, 140, 42]
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "b"
Position [190, 23, 220, 37]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "c"
Position [260, 23, 290, 37]
Port "3"
IconDisplay "Port number"
}
Line {
SrcBlock "output Ground1"
SrcPort 1
DstBlock "v1"
DstPort 1
}
Line {
SrcBlock "v1"
SrcPor
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -