📄 svc_test_2.mdl
字号:
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Gain
Name "Gain"
Position [510, 103, 565, 147]
Gain "f1"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [260, 92, 295, 128]
Inputs "2"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [190, 41, 220, 79]
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [190, 176, 220, 214]
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [455, 99, 475, 146]
Inputs "+-"
}
Block {
BlockType TransportDelay
Name "T"
Position [390, 120, 430, 150]
DelayTime "1/f1"
}
Block {
BlockType TransportDelay
Name "T\\4"
Position [120, 140, 160, 170]
DelayTime "1/f1/4"
}
Block {
BlockType Integrator
Name "integ"
Ports [1, 1]
Position [315, 159, 345, 201]
}
Block {
BlockType Outport
Name "PQ"
Position [595, 115, 615, 135]
IconDisplay "Port number"
InitialOutput "0"
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "integ"
SrcPort 1
Points [0, -70; 25, 0]
Branch {
DstBlock "T"
DstPort 1
}
Branch {
DstBlock "Sum1"
DstPort 1
}
}
Line {
SrcBlock "T"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "integ"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "PQ"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [10, 0; 0, -75]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
Points [10, 0; 0, 40]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "T\\4"
SrcPort 1
Points [10, 0]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "V"
SrcPort 1
Points [40, 0]
Branch {
Points [0, 105]
DstBlock "T\\4"
DstPort 1
}
Branch {
DstBlock "Product"
DstPort 1
}
}
Line {
SrcBlock "I"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Product1"
DstPort 2
}
Branch {
Points [0, -135]
DstBlock "Product"
DstPort 2
}
}
}
}
Block {
BlockType Reference
Name "Active & Reactive\nPower2"
Ports [2, 1]
Position [335, 229, 385, 276]
SourceBlock "powerlib_extras/Measurements/Active & React"
"ive\nPower"
SourceType "Active & Reactive Power "
ShowPortLabels on
f1 "50"
}
Block {
BlockType Outport
Name "Out1"
Position [505, 88, 535, 102]
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "Out2"
Position [510, 158, 540, 172]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "Out3"
Position [410, 248, 440, 262]
Port "3"
IconDisplay "Port number"
}
Line {
SrcBlock "Va"
SrcPort 1
Points [0, 35]
DstBlock "Active & Reactive\nPower"
DstPort 1
}
Line {
SrcBlock "Active & Reactive\nPower"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Ia"
SrcPort 1
DstBlock "Active & Reactive\nPower"
DstPort 2
}
Line {
SrcBlock "Vb"
SrcPort 1
DstBlock "Active & Reactive\nPower1"
DstPort 1
}
Line {
SrcBlock "Active & Reactive\nPower1"
SrcPort 1
Points [105, 0]
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "Ib"
SrcPort 1
DstBlock "Active & Reactive\nPower1"
DstPort 2
}
Line {
SrcBlock "Vc"
SrcPort 1
DstBlock "Active & Reactive\nPower2"
DstPort 1
}
Line {
SrcBlock "Active & Reactive\nPower2"
SrcPort 1
DstBlock "Out3"
DstPort 1
}
Line {
SrcBlock "Ic"
SrcPort 1
Points [0, -5]
DstBlock "Active & Reactive\nPower2"
DstPort 2
}
}
}
Block {
BlockType Reference
Name "Vb Measure1"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [475, 203, 500, 227]
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Vc Measure2"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [475, 248, 500, 272]
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Magnitude"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType SubSystem
Name "controller"
Ports [9, 6]
Position [676, 345, 914, 505]
Orientation "down"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "controller"
Location [0, 50, 1016, 764]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "darkGreen"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Ia"
Position [20, 153, 50, 167]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Ib"
Position [20, 193, 50, 207]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Ic"
Position [20, 233, 50, 247]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Iab"
Position [165, 243, 195, 257]
Port "4"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Ibc"
Position [165, 278, 195, 292]
Port "5"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Ica"
Position [165, 313, 195, 327]
Port "6"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Va"
Position [20, 28, 50, 42]
Port "7"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Vb"
Position [20, 68, 50, 82]
Port "8"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Vc"
Position [20, 108, 50, 122]
Port "9"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Clock
Name "Clock"
Position [570, 535, 590, 555]
Decimation "1"
}
Block {
BlockType Constant
Name "Constant"
Position [565, 585, 595, 615]
Value "0.08"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 6]
Position [840, 91, 845, 184]
BackgroundColor "black"
ShowName off
Outputs "6"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [505, 337, 510, 403]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Demux
Name "Demux2"
Ports [1, 2]
Position [355, 586, 360, 624]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType SubSystem
Name "Enabled\nSubsystem"
Ports [1, 1, 1]
Position [730, 500, 830, 550]
NamePlacement "alternate"
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Enabled\nSubsystem"
Location [421, 301, 919, 601]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [45, 103, 75, 117]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [235, 20, 255, 40]
}
Block {
BlockType MATLABFcn
Name "triger_3"
Position [180, 95, 240, 125]
MATLABFcn "triger_3(u)"
OutputDimensions "6"
}
Block {
BlockType Outport
Name "Out1"
Position [360, 103, 390, 117]
IconDisplay "Port number"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "triger_3"
DstPort 1
}
Line {
SrcBlock "triger_3"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType MATLABFcn
Name "I_U"
Position [395, 355, 455, 385]
MATLABFcn "I_U(u)"
}
Block {
BlockType Lookup
Name "I_ab to a"
Position [580, 292, 625, 328]
DialogController "Simulink.DDGSource"
InputValues "[0.0000 0.0001 0.0001 0.0001 0."
"0001 0.0001 0.0001 0.0001 0.0001 0.0001 0.0001 0.0002 "
" 0.0002 0.0002 0.0002 0.0002 0.0002 0.0003 0.0003 0.0003"
" 0.0003 0.0003 0.0004 0.0004 0.0004 0.0005 0.0005 0.0"
"005 0.0005 0.0006 0.0006 0.0006 0.0007 0.0007 0.0008 "
"0.0008 0.0008 0.0009 0.0009 0.0010 0.0010 0.0011 0.0011 "
" 0.0012 0.0012 0.0013 0.0014 0.0014 0.0015 0.0015 0.00"
"16 0.0017 0.0017 0.0018 0.0019 0.0020 0.0020 0.0021 0"
".0022 0.0023 0.0024 0.0025 0.0025 0.0026 0.0027 0.0028 "
" 0.0029 0.0030 0.0031 0.0032 0.0033 0.0034 0.0035 0.003"
"6 0.0038 0.0039 0.0040 0.0041 0.0042 0.0044 0.0045 0."
"0046 0.0048 0.0049 0.0050 0.0052 0.0053 0.0054 0.0056 "
" 0.0057 0.0059 0.0060 0.0062 0.0064 0.0065 0.0067 0.0069"
" 0.0070 0.0072 0.0074 0.0076 0.0077 0.0079 0.0081 0.0"
"083 0.0085 0.0087 0.0089 0.0091 0.0093 0.0095 0.0097 "
"0.0099 0.0101 0.0103 0.0105 0.0108 0.0110 0.0112 0.0114 "
" 0.0117 0.0119 0.0121 0.0124 0.0126 0.0129 0.0131 0.01"
"34 0.0136 0.0139 0.0142 0.0144 0.0147 0.0150 0.0152 0"
".0155 0.0158 0.0161 0.0163 0.0166 0.0169 0.0172 0.0175 "
" 0.0178 0.0181 0.0184 0.0187 0.0190 0.0194 0.0197 0.020"
"0 0.0203 0.0207 0.0210 0.0213 0.0217 0.0220 0.0223 0."
"0227 0.0230 0.0234 0.0237 0.0241 0.0245 0.0248 0.0252 "
" 0.0256 0.0259 0.0263 0.0267 0.0271 0.0274 0.0278 0.0282"
" 0.0286 0.0290 0.0294 0.0298 0.0302 0.0306 0.0310 0.0"
"315 0.0319 0.0323 0.0327
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -