📄 asy_generator_no.mdl
字号:
SrcPort 1
DstBlock "Voltage Measurement2"
DstPort 2
}
Line {
SrcBlock "Ground (output)2"
SrcPort 1
DstBlock "Voltage Measurement1"
DstPort 2
}
Line {
SrcBlock "Ground (output)"
SrcPort 1
DstBlock "Voltage Measurement"
DstPort 2
}
Line {
SrcBlock "Controlled Current Source2"
SrcPort 2
Points [0, 0; 125, 0]
Branch {
DstBlock "Voltage Measurement2"
DstPort 1
}
Branch {
DstBlock "C"
DstPort 1
}
}
Line {
SrcBlock "Controlled Current Source1"
SrcPort 2
Points [0, -5; 100, 0]
Branch {
DstBlock "Voltage Measurement1"
DstPort 1
}
Branch {
DstBlock "B"
DstPort 1
}
}
Line {
SrcBlock "Controlled Current Source"
SrcPort 2
Points [0, 0; 75, 0]
Branch {
DstBlock "Voltage Measurement"
DstPort 1
}
Branch {
DstBlock "A"
DstPort 1
}
}
Line {
SrcBlock "Discrete\nVirtual PLL1"
SrcPort 2
DstBlock "abc_to_dq0\nTransformation1"
DstPort 2
}
Line {
SrcBlock "Voltage Measurement2"
SrcPort 1
Points [5, 0]
DstBlock "Mux2"
DstPort 3
}
Line {
SrcBlock "Controlled Current Source1"
SrcPort 1
Points [30, 0]
DstBlock "Bus Bar (vert)1"
DstPort 2
}
Line {
SrcBlock "Controlled Current Source"
SrcPort 1
Points [45, 0]
DstBlock "Bus Bar (vert)1"
DstPort 3
}
Line {
SrcBlock "Controlled Current Source2"
SrcPort 1
Points [15, 0]
DstBlock "Bus Bar (vert)1"
DstPort 1
}
Line {
SrcBlock "Bus Bar (vert)1"
SrcPort 1
DstBlock "Ground (input)"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 3
DstBlock "Controlled Current Source2"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 2
DstBlock "Controlled Current Source1"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 1
DstBlock "Controlled Current Source"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "abc_to_dq0\nTransformation1"
DstPort 1
}
Line {
SrcBlock "Voltage Measurement1"
SrcPort 1
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Voltage Measurement"
SrcPort 1
Points [75, 0]
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "dq0_to_abc\nTranformation"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Selector5"
SrcPort 1
Points [-245, 0; 0, 130]
DstBlock "Mux"
DstPort 6
}
Line {
SrcBlock "Selector4"
SrcPort 1
Points [-350, 0; 0, 130]
DstBlock "Mux"
DstPort 5
}
Line {
SrcBlock "Demux"
SrcPort 4
Points [15, 0; 0, 45; -175, 0; 0, -80]
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [5, 0; 0, 60; -155, 0]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "dq0_to_abc\nTranformation"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [0, 0; 15, 0]
Branch {
DstBlock "Mux1"
DstPort 2
}
Branch {
Points [0, -65; -175, 0; 0, 40]
DstBlock "Mux"
DstPort 2
}
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Mux1"
DstPort 1
}
Branch {
Points [0, -30; -155, 0]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "MATLAB Fcn"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Discrete\nVirtual PLL"
SrcPort 1
DstBlock "Terminator"
DstPort 1
}
Line {
SrcBlock "Discrete\nVirtual PLL"
SrcPort 3
DstBlock "Terminator1"
DstPort 1
}
Line {
SrcBlock "Discrete\nVirtual PLL1"
SrcPort 1
DstBlock "Terminator2"
DstPort 1
}
Line {
SrcBlock "Discrete\nVirtual PLL1"
SrcPort 3
DstBlock "Terminator3"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Breaker"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [495, 180, 545, 210]
ShowName off
SourceBlock "powerlib2/Elements/Breaker"
SourceType "Breaker"
a "0.01"
c "0"
rs "1e6"
cs "inf"
times "[ 3 ]"
Ts "0"
comext off
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Breaker1"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [500, 214, 550, 246]
ShowName off
SourceBlock "powerlib2/Elements/Breaker"
SourceType "Breaker"
a "0.01"
c "0"
rs "1e6"
cs "inf"
times "[ 3 ]"
Ts "0"
comext off
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Breaker2"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [500, 251, 550, 279]
ShowName off
SourceBlock "powerlib2/Elements/Breaker"
SourceType "Breaker"
a "0.01"
c "0"
rs "1e6"
cs "inf"
times "[3 ]"
Ts "0"
comext off
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "Bus Bar (vert)1"
Tag "PoWeRsYsTeMbLoCk"
Ports [3, 1]
Position [660, 296, 665, 334]
BackgroundColor "black"
ShowName off
SourceBlock "powerlib2/Connectors/Bus Bar (vert)"
SourceType "Bus Bar"
entrees "3"
sorties "1"
PSBOutputType "11111111111111111111111111111111111111111111111"
"111111111111111111111111111111111111111111"
}
Block {
BlockType Reference
Name "Bus Bar (vert)2"
Tag "PoWeRsYsTeMbLoCk"
Ports [3, 1]
Position [650, 196, 655, 264]
BackgroundColor "black"
ShowName off
SourceBlock "powerlib2/Connectors/Bus Bar (vert)"
SourceType "Bus Bar"
entrees "3"
sorties "1"
PSBOutputType "11111111111111111111111111111111111111111111111"
"111111111111111111111111111111111111111111"
}
Block {
BlockType Constant
Name "Constant1"
Position [285, 309, 305, 341]
ShowName off
Value "314"
}
Block {
BlockType Reference
Name "Ground (input)"
Tag "PoWeRsYsTeMbLoCk"
Ports [1]
Position [678, 330, 702, 350]
Orientation "down"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (input)"
SourceType "Ground"
}
Block {
BlockType Reference
Name "Ground (input)1"
Tag "PoWeRsYsTeMbLoCk"
Ports [1]
Position [670, 245, 700, 275]
Orientation "down"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (input)"
SourceType "Ground"
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [680, 351, 705, 404]
Location [164, 254, 590, 558]
Open off
NumInputPorts "2"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "定子电压"
axes2 "定子电流"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "10"
YMin "-250~-4"
YMax "300~4"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleInput on
}
Block {
BlockType Selector
Name "Selector1"
Ports [1, 1]
Position [530, 352, 570, 378]
ShowName off
Elements "[1 ]"
InputPortWidth "3"
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [595, 378, 635, 402]
ShowName off
Elements "[1 ]"
InputPortWidth "3"
}
Block {
BlockType SubSystem
Name "Three-Phase\nV-I Measrement1"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [3, 5]
Position [400, 293, 445, 357]
ShowName off
AncestorBlock "powerlib2/Measurements/Three-Phase\nV-I Measure"
"ment"
CopyFcn " powericon('psbloadfunction',gcbh,'3-Phase VI "
"Measurement','VerifyPhasor'); "
LoadFcn "powericon('psbloadfunction',gcbh,'3-Phase VI Me"
"asurement','');"
InitFcn "powericon('checksum',bdroot)"
CloseFcn "%3phaseVImeasurement"
TreatAsAtomicUnit off
MaskType "3-Phase VI Measurement"
MaskDescription "This block is used to measure three-phase volta"
"ges and currents in a circuit. When connected in series with a three-phase el"
"ement, it return the three phase-to-ground voltages and line currents.\n\nThe"
" block can output the voltages and currents in per unit values or in volts an"
"d amperes. Check the appropriate boxes if you want to output the voltages and"
" currents in pu"
MaskHelp "web(psbhelp)"
MaskPromptString "Voltage measurement|Use a label |Signal label "
"(use a From block to collect signal)|Voltage in pu|Base voltage (Vrms phase-"
"phase) :|Current measurement|Use a label|Signal label (use a From block to c"
"ollect signal)|Currents in pu|Base power ( VA 3 phase)|Output signal :|Phasor"
" simulation|Equivalent circuit|PSBOutputType"
MaskStyleString "popup(no|phase-to-ground|phase-to-phase),checkb"
"ox,edit,checkbox,edit,popup(no|yes),checkbox,edit,checkbox,edit,popup(Complex"
"|Real-Imag|Magnitude-Angle|Magnitude),checkbox,edit,edit"
MaskTunableValueString "off,off,off,on,on,off,off,off,on,on,on,on,on,on"
MaskCallbackString "powericon('psbcallbacks',gcb,'Three-phase measu"
"rements',2);|powericon('psbcallbacks',gcb,'Three-phase measurements',2);||pow"
"ericon('psbcallbacks',gcb,'Three-phase measurements',2);||powericon('psbcallb"
"acks',gcb,'Three-phase measurements',2);|powericon('psbcallbacks',gcb,'Three-"
"phase measurements',2);||powericon('psbcallbacks',gcb,'Three-phase measuremen"
"ts',4);|||||"
MaskEnableString "on,on,on,on,on,on,on,on,on,on,off,on,off,on"
MaskVisibilityString "on,on,off,on,on,on,on,off,on,on,on,off,off,off"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,,,,,"
MaskVariables "VChoice=@1;ualv=@2;labelV=&3;Vpu=@4;Vbase=@5;IC"
"hoice=@6;ualc=@7;labelC=&8;Ppu=@9;Pbase=@10;OutputType=@11;PhasorSimulation=@"
"12;PSBequivalent=@13;PSBOutputType=&14;"
MaskInitialization "powericon('psbcallbacks',gcb,'Three-phase measu"
"rements',4);\nif Vpu\n xKv=1/(Vbase/sqrt(3)*sqrt(2));\nelse\n xKv=1;\n"
"end\nif Ppu\n xKi=1/(Pbase/Vbase/sqrt(3)*sqrt(2));\nelse\n xKi=1;\nend"
"\nswitch OutputType\ncase 1\n OutputSelection = [1:6];\n PhasorModeV ="
" [1:3];\n NormalModeV = [7:9];\n PhasorModeI = [4:6];\n NormalModeI "
"= [10:12];\n Kv = xKv;\n Ki = xKi;\ncase 2\n OutputSelection = [7,13"
",8,14,9,15,10,16,11,17,12,18];\n PhasorModeV = [1:6];\n NormalModeV = ["
"13:15];\n PhasorModeI = [7:12];\n NormalModeI = [16:18];\n Kv = xKv;"
"\n Ki = xKi;\ncase 3\n OutputSelection = [13,19,14,20,15,21,16,22,17,23"
",18,24];\n PhasorModeV = [1:6];\n NormalModeV = [13:15];\n PhasorMod"
"eI = [7:12];\n NormalModeI = [16:18];\n Kv = [xKv 1 xKv 1 xKv 1];\n "
"Ki = [xKi 1 xKi 1 xKi 1];\ncase 4\n OutputSelection = [19:24];\n Phaso"
"rModeV = [1:3];\n NormalModeV = [7:9];\n PhasorModeI = [4:6];\n Norm"
"alModeI = [10:12];\n Kv = xKv;\n Ki = xKi;\nend\nif PhasorSimulation\n "
" SelectionModeV = PhasorModeV;\n SelectionModeI = PhasorModeI;\nelse\n "
" SelectionModeV = NormalModeV;\n SelectionModeI = NormalModeI;\n Kv = "
"xKv;\n Ki = xKi;\nend"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "phase-to-ground|off|V1|on|1|yes|off|I1|on|1|Com"
"plex|off|1|11100"
System {
Name "Three-Phase\nV-I Measrement1"
Location [357, 382, 1063, 777]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "A"
Position [15, 23, 45, 37]
}
Block {
BlockType Inport
Name "B"
Position [15, 83, 45, 97]
Port "2"
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -