power_wind_dfig.mdl
资源名称:DFIGFarm.rar [点击查看]
上传用户:sdgangguan
上传日期:2017-10-18
资源大小:179k
文件大小:487k
源码类别:
能源行业(电力石油煤炭)
开发平台:
Matlab
- }
- }
- Block {
- BlockType SubSystem
- Name "Decoding"
- Ports [1, 1]
- Position [640, 453, 695, 507]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "Decoding"
- Location [418, 74, 976, 251]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Code"
- Position [40, 53, 70, 67]
- IconDisplay "Port number"
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [95, 71, 170, 99]
- ShowName off
- Value "pow2(0:-1:-9)"
- }
- Block {
- BlockType Constant
- Name "Constant6"
- Position [305, 91, 325, 109]
- ShowName off
- Value "2"
- }
- Block {
- BlockType Math
- Name "MathnFunction"
- Ports [2, 1]
- Position [355, 63, 385, 112]
- ShowName off
- Operator "rem"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [195, 46, 225, 99]
- ShowName off
- RndMeth "Floor"
- }
- Block {
- BlockType Rounding
- Name "RoundingnFunction"
- Position [260, 60, 290, 90]
- ShowName off
- }
- Block {
- BlockType Outport
- Name "Out"
- Position [420, 83, 450, 97]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- DstBlock "Product"
- DstPort 2
- }
- Line {
- SrcBlock "Code"
- SrcPort 1
- DstBlock "Product"
- DstPort 1
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- DstBlock "RoundingnFunction"
- DstPort 1
- }
- Line {
- SrcBlock "Constant6"
- SrcPort 1
- DstBlock "MathnFunction"
- DstPort 2
- }
- Line {
- SrcBlock "RoundingnFunction"
- SrcPort 1
- DstBlock "MathnFunction"
- DstPort 1
- }
- Line {
- SrcBlock "MathnFunction"
- SrcPort 1
- DstBlock "Out"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Encoding"
- Ports [10, 1]
- Position [375, 412, 430, 528]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "Encoding"
- Location [485, 298, 1005, 741]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "In1"
- Position [35, 43, 65, 57]
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "In2"
- Position [35, 78, 65, 92]
- Port "2"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "In3"
- Position [35, 113, 65, 127]
- Port "3"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "In4"
- Position [35, 148, 65, 162]
- Port "4"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "In5"
- Position [35, 183, 65, 197]
- Port "5"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "In6"
- Position [35, 218, 65, 232]
- Port "6"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "In7"
- Position [35, 253, 65, 267]
- Port "7"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "In8"
- Position [35, 288, 65, 302]
- Port "8"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "In9"
- Position [35, 323, 65, 337]
- Port "9"
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "In10"
- Position [35, 358, 65, 372]
- Port "10"
- IconDisplay "Port number"
- }
- Block {
- BlockType Constant
- Name "Constant12"
- Position [215, 220, 285, 250]
- ShowName off
- Value "pow2(0:1:9)"
- }
- Block {
- BlockType DataTypeConversion
- Name "Data Type Conversion"
- Position [150, 196, 205, 224]
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [10, 1]
- Position [110, 34, 115, 381]
- ShowName off
- Inputs "10"
- DisplayOption "bar"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [315, 196, 345, 249]
- ShowName off
- RndMeth "Floor"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [1, 1]
- Position [390, 210, 420, 240]
- ShowName off
- IconShape "round"
- Inputs "1"
- }
- Block {
- BlockType Outport
- Name "Code"
- Position [455, 218, 485, 232]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Data Type Conversion"
- SrcPort 1
- DstBlock "Product"
- DstPort 1
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Data Type Conversion"
- DstPort 1
- }
- Line {
- SrcBlock "In2"
- SrcPort 1
- DstBlock "Mux"
- DstPort 2
- }
- Line {
- SrcBlock "In3"
- SrcPort 1
- DstBlock "Mux"
- DstPort 3
- }
- Line {
- SrcBlock "In4"
- SrcPort 1
- DstBlock "Mux"
- DstPort 4
- }
- Line {
- SrcBlock "In5"
- SrcPort 1
- DstBlock "Mux"
- DstPort 5
- }
- Line {
- SrcBlock "In6"
- SrcPort 1
- DstBlock "Mux"
- DstPort 6
- }
- Line {
- SrcBlock "In7"
- SrcPort 1
- DstBlock "Mux"
- DstPort 7
- }
- Line {
- SrcBlock "In8"
- SrcPort 1
- DstBlock "Mux"
- DstPort 8
- }
- Line {
- SrcBlock "In9"
- SrcPort 1
- DstBlock "Mux"
- DstPort 9
- }
- Line {
- SrcBlock "In10"
- SrcPort 1
- DstBlock "Mux"
- DstPort 10
- }
- Line {
- SrcBlock "In1"
- SrcPort 1
- DstBlock "Mux"
- DstPort 1
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "Constant12"
- SrcPort 1
- DstBlock "Product"
- DstPort 2
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Code"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Logic
- Name "LogicalnOperator"
- Ports [10, 1]
- Position [370, 26, 410, 334]
- ShowName off
- Operator "OR"
- Inputs "10"
- AllPortsSameDT off
- }
- Block {
- BlockType Logic
- Name "LogicalnOperator1"
- Ports [2, 1]
- Position [515, 169, 550, 211]
- ShowName off
- AllPortsSameDT off
- }
- Block {
- BlockType Logic
- Name "LogicalnOperator2"
- Ports [1, 1]
- Position [595, 199, 625, 221]
- ShowName off
- Operator "NOT"
- AllPortsSameDT off
- }
- Block {
- BlockType Logic
- Name "LogicalnOperator3"
- Ports [2, 1]
- Position [645, 199, 680, 241]
- ShowName off
- AllPortsSameDT off
- }
- Block {
- BlockType Memory
- Name "Memory"
- Position [805, 180, 820, 200]
- ShowName off
- InheritSampleTime on
- }
- Block {
- BlockType Memory
- Name "Memory1"
- Position [865, 180, 880, 200]
- ShowName off
- InheritSampleTime on
- }
- Block {
- BlockType Reference
- Name "Monostable"
- Ports [1, 1]
- Position [645, 344, 685, 386]
- Orientation "left"
- SourceBlock "powerlib_extras/Control nBlocks/Monost"
- "able"
- SourceType "Monostable Flip-Flop"
- ShowPortLabels off
- EdgeDetect "Rising"
- t_mono "1e-9"
- ic "0"
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator10"
- Position [425, 576, 460, 629]
- ShowName off
- InputSameDT off
- }
- Block {
- BlockType Reference
- Name "Sample & Hold"
- Ports [2, 1]
- Position [565, 460, 605, 500]
- SourceBlock "powerlib_extras/Control nBlocks/Sample"
- " & Hold"
- SourceType "Sample & Hold "
- ShowPortLabels on
- ic "0"
- }
- Block {
- BlockType Reference
- Name "Sample & Hold1"
- Ports [2, 1]
- Position [565, 540, 605, 580]
- SourceBlock "powerlib_extras/Control nBlocks/Sample"
- " & Hold"
- SourceType "Sample & Hold "
- ShowPortLabels on
- ic "0"
- }
- Block {
- BlockType Terminator
- Name "Terminator"
- Position [765, 214, 775, 226]
- ShowName off
- }
- Block {
- BlockType SubSystem
- Name "Under/Over SpeednProtection"
- Ports [1, 2]
- Position [100, 431, 175, 509]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "Under/Over SpeednProtection"
- Location [5, 359, 492, 551]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Speed"
- Position [30, 103, 60, 117]
- IconDisplay "Port number"
- PortDimensions "1"
- }
- Block {
- BlockType Reference
- Name "On/Off Delay1"
- Ports [1, 1]
- Position [265, 104, 305, 136]
- ShowName off
- SourceBlock "powerlib_extras/Control nBlocks/On"
- "//Off Delay"
- SourceType "On/Off Delay "
- ShowPortLabels off
- type_delay "On delay"
- delay "Delay_Speed"
- ic "0"
- }
- Block {
- BlockType Reference
- Name "On/Off Delay4"
- Ports [1, 1]
- Position [265, 29, 305, 61]
- ShowName off
- SourceBlock "powerlib_extras/Control nBlocks/On"
- "//Off Delay"
- SourceType "On/Off Delay "
- ShowPortLabels off
- type_delay "On delay"
- delay "Delay_Speed"
- ic "0"
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator1"
- Position [200, 98, 230, 142]
- ShowName off
- Operator ">"
- InputSameDT off
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator3"
- Position [200, 23, 230, 67]
- ShowName off
- Operator "<"
- InputSameDT off
- }
- Block {
- BlockType Constant
- Name "V1 max1"
- Position [105, 45, 165, 65]
- ForegroundColor "magenta"
- ShowName off
- Value "Min_Speed"
- }
- Block {
- BlockType Constant
- Name "V1 max3"
- Position [110, 120, 170, 140]
- ForegroundColor "magenta"
- ShowName off
- Value "Max_Speed"
- }
- Block {
- BlockType Outport
- Name "MinSpeed"
- Position [340, 38, 370, 52]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "MaxSpeed"
- Position [340, 113, 370, 127]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "RelationalnOperator3"
- SrcPort 1
- DstBlock "On/Off Delay4"
- DstPort 1
- }
- Line {
- SrcBlock "RelationalnOperator1"
- SrcPort 1
- DstBlock "On/Off Delay1"
- DstPort 1
- }
- Line {
- SrcBlock "V1 max1"
- SrcPort 1
- DstBlock "RelationalnOperator3"
- DstPort 2
- }
- Line {
- SrcBlock "V1 max3"
- SrcPort 1
- DstBlock "RelationalnOperator1"
- DstPort 2
- }
- Line {
- SrcBlock "Speed"
- SrcPort 1
- Points [0, 0; 10, 0]
- Branch {
- Points [0, -75]
- DstBlock "RelationalnOperator3"
- DstPort 1
- }
- Branch {
- DstBlock "RelationalnOperator1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "On/Off Delay4"
- SrcPort 1
- DstBlock "MinSpeed"
- DstPort 1
- }
- Line {
- SrcBlock "On/Off Delay1"
- SrcPort 1
- DstBlock "MaxSpeed"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Outport
- Name "Trip"
- Position [915, 183, 945, 197]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "TripTime"
- Position [760, 553, 790, 567]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "TripStatus"
- Position [760, 473, 790, 487]
- Port "3"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Speed (pu)"
- SrcPort 1
- DstBlock "Under/Over SpeednProtection"
- DstPort 1
- }
- Line {
- SrcBlock "Under/Over SpeednProtection"
- SrcPort 2
- Points [80, 0; 0, -175; 30, 0]
- Branch {
- Points [0, 200]
- DstBlock "Encoding"
- DstPort 10
- }
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 10
- }
- }
- Line {
- SrcBlock "Under/Over SpeednProtection"
- SrcPort 1
- Points [70, 0; 0, -165; 45, 0]
- Branch {
- Points [0, 220]
- DstBlock "Encoding"
- DstPort 9
- }
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 9
- }
- }
- Line {
- Labels [2, 0]
- SrcBlock "RelationalnOperator10"
- SrcPort 1
- Points [35, 0]
- DstBlock "LogicalnOperator1"
- DstPort 2
- }
- Line {
- SrcBlock "LogicalnOperator"
- SrcPort 1
- DstBlock "LogicalnOperator1"
- DstPort 1
- }
- Line {
- SrcBlock "Clock"
- SrcPort 1
- Points [0, 15; 50, 0]
- Branch {
- Points [0, -40]
- DstBlock "Sample & Hold1"
- DstPort 1
- }
- Branch {
- DstBlock "RelationalnOperator10"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- DstBlock "RelationalnOperator10"
- DstPort 2
- }
- Line {
- SrcBlock "Monostable"
- SrcPort 1
- Points [-105, 0; 0, 125]
- Branch {
- Points [0, 80]
- DstBlock "Sample & Hold1"
- DstPort 2
- }
- Branch {
- DstBlock "Sample & Hold"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Sample & Hold1"
- SrcPort 1
- DstBlock "TripTime"
- DstPort 1
- }
- Line {
- SrcBlock "AC VoltagenProtection"
- SrcPort 4
- Points [30, 0; 0, -25; 95, 0]
- Branch {
- Points [0, 260]
- DstBlock "Encoding"
- DstPort 7
- }
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 7
- }
- }
- Line {
- SrcBlock "AC VoltagenProtection"
- SrcPort 3
- Points [25, 0; 0, -30; 105, 0]
- Branch {
- Points [0, 280]
- DstBlock "Encoding"
- DstPort 6
- }
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 6
- }
- }
- Line {
- SrcBlock "AC VoltagenProtection"
- SrcPort 2
- Points [15, 0; 0, -35; 120, 0]
- Branch {
- Points [0, 300]
- DstBlock "Encoding"
- DstPort 5
- }
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 5
- }
- }
- Line {
- SrcBlock "AC VoltagenProtection"
- SrcPort 1
- Points [10, 0; 0, -40; 135, 0]
- Branch {
- Points [0, 320]
- DstBlock "Encoding"
- DstPort 4
- }
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 4
- }
- }
- Line {
- SrcBlock "AC CurrentnProtection"
- SrcPort 3
- Points [0, 0; 150, 0]
- Branch {
- Points [0, 340]
- DstBlock "Encoding"
- DstPort 3
- }
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 3
- }
- }
- Line {
- SrcBlock "AC CurrentnProtection"
- SrcPort 2
- Points [0, 0; 155, 0]
- Branch {
- Points [0, 360]
- DstBlock "Encoding"
- DstPort 2
- }
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 2
- }
- }
- Line {
- SrcBlock "AC CurrentnProtection"
- SrcPort 1
- Points [0, 0; 160, 0]
- Branch {
- Points [0, 380]
- DstBlock "Encoding"
- DstPort 1
- }
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Vabc (pu)"
- SrcPort 1
- DstBlock "AC VoltagenProtection"
- DstPort 1
- }
- Line {
- SrcBlock "Iabc (pu)"
- SrcPort 1
- DstBlock "AC CurrentnProtection"
- DstPort 1
- }
- Line {
- SrcBlock "Decoding"
- SrcPort 1
- DstBlock "TripStatus"
- DstPort 1
- }
- Line {
- SrcBlock "Sample & Hold"
- SrcPort 1
- DstBlock "Decoding"
- DstPort 1
- }
- Line {
- SrcBlock "Bistable"
- SrcPort 2
- DstBlock "Terminator"
- DstPort 1
- }
- Line {
- SrcBlock "Memory"
- SrcPort 1
- Points [0, 0; 15, 0]
- Branch {
- DstBlock "Memory1"
- DstPort 1
- }
- Branch {
- Points [0, 175]
- DstBlock "Monostable"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Bistable"
- SrcPort 1
- DstBlock "Memory"
- DstPort 1
- }
- Line {
- SrcBlock "Encoding"
- SrcPort 1
- DstBlock "Sample & Hold"
- DstPort 1
- }
- Line {
- SrcBlock "LogicalnOperator1"
- SrcPort 1
- Points [-5, 0; 25, 0]
- Branch {
- Points [0, 20]
- DstBlock "LogicalnOperator2"
- DstPort 1
- }
- Branch {
- DstBlock "Bistable"
- DstPort 1
- }
- }
- Line {
- SrcBlock "LogicalnOperator3"
- SrcPort 1
- DstBlock "Bistable"
- DstPort 2
- }
- Line {
- SrcBlock "Reset"
- SrcPort 1
- DstBlock "LogicalnOperator3"
- DstPort 2
- }
- Line {
- SrcBlock "LogicalnOperator2"
- SrcPort 1
- DstBlock "LogicalnOperator3"
- DstPort 1
- }
- Line {
- SrcBlock "DC VoltagenProtection"
- SrcPort 1
- Points [45, 0; 0, -90; 75, 0]
- Branch {
- Points [0, 240]
- DstBlock "Encoding"
- DstPort 8
- }
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 8
- }
- }
- Line {
- SrcBlock "Vdc (V)"
- SrcPort 1
- DstBlock "DC VoltagenProtection"
- DstPort 1
- }
- Line {
- SrcBlock "Memory1"
- SrcPort 1
- DstBlock "Trip"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Display
- Name "TripData"
- Ports [1]
- Position [265, 132, 305, 358]
- FontName "Arial"
- FontSize 12
- Decimation "1"
- Lockdown off
- }
- Block {
- BlockType Outport
- Name "Trip"
- Position [280, 48, 310, 62]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "Trip Time"
- Position [280, 93, 310, 107]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Ground2"
- SrcPort 1
- DstBlock "ProtectionnSystem"
- DstPort 4
- }
- Line {
- SrcBlock "ProtectionnSystem"
- SrcPort 3
- Points [15, 0; 0, 100]
- DstBlock "TripData"
- DstPort 1
- }
- Line {
- SrcBlock "From9"
- SrcPort 1
- DstBlock "ProtectionnSystem"
- DstPort 1
- }
- Line {
- SrcBlock "From10"
- SrcPort 1
- DstBlock "ProtectionnSystem"
- DstPort 3
- }
- Line {
- SrcBlock "From11"
- SrcPort 1
- DstBlock "ProtectionnSystem"
- DstPort 5
- }
- Line {
- SrcBlock "From7"
- SrcPort 1
- DstBlock "ProtectionnSystem"
- DstPort 2
- }
- Line {
- SrcBlock "ProtectionnSystem"
- SrcPort 1
- DstBlock "Trip"
- DstPort 1
- }
- Line {
- SrcBlock "ProtectionnSystem"
- SrcPort 2
- DstBlock "Trip Time"
- DstPort 1
- }
- Annotation {
- Name "Instantaneous AC Overcurrent"
- Position [407, 145]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "AC Overcurrent (positive-sequence)"
- Position [424, 168]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "AC Current Unbalance"
- Position [389, 188]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "AC Undervoltage (positive-sequence)"
- Position [429, 209]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "AC Overvoltage (positive-sequence)"
- Position [425, 228]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "AC Voltage Unbalance (Negative-sequence)"
- Position [447, 251]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "AC Voltage Unbalance (Zero-sequence)"
- Position [438, 276]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "DC Overvoltage"
- Position [373, 296]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "Under Speed"
- Position [366, 318]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "Over Speed"
- Position [361, 338]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Wind turbinenData acquisition"
- Ports [0, 4]
- Position [405, 329, 475, 436]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- Port {
- PortNumber 1
- Name "Pos. seq. V1_B575 (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "Pos. seq. I1_B575 (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 3
- Name "Generated P(MW)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 4
- Name "Generated Q(Mvar)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- System {
- Name "Wind turbinenData acquisition"
- Location [6, 98, 695, 461]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Reference
- Name "3-PhasenActive & Reactive Powern(Phasor T"
- "ype)"
- Ports [2, 1]
- Position [280, 204, 335, 266]
- SourceBlock "powerlib_extras/PhasornLibrary/3-PhasenAc"
- "tive & Reactive Powern(Phasor Type)"
- SourceType "3-Phase Active & Reactive Power (Phasor Typ"
- "e)"
- ShowPortLabels on
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [420, 300, 445, 320]
- ShowName off
- Value "0"
- }
- Block {
- BlockType Demux
- Name "Demux"
- Ports [1, 2]
- Position [425, 204, 430, 266]
- BackgroundColor "black"
- ShowName off
- Outputs "2"
- }
- Block {
- BlockType From
- Name "From1"
- Position [70, 31, 140, 49]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Vabc_B575"
- }
- Block {
- BlockType From
- Name "From3"
- Position [70, 106, 140, 124]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Iabc_B575"
- }
- Block {
- BlockType Gain
- Name "Gain3"
- Position [365, 22, 415, 58]
- ShowName off
- Gain "1/3"
- }
- Block {
- BlockType Gain
- Name "Gain4"
- Position [360, 97, 410, 133]
- ShowName off
- Gain "1/3"
- }
- Block {
- BlockType Gain
- Name "MW"
- Position [355, 212, 405, 258]
- Gain "-1/1e6"
- }
- Block {
- BlockType SubSystem
- Name "Mean Value1"
- Ports [2, 1]
- Position [480, 214, 535, 241]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Mean value"
- MaskDescription "This block uses the running window averagin"
- "g technique to compute the mean value of the input signal over the specified "
- "period.n"
- MaskPromptString "Averaging period (s):"
- MaskStyleString "edit"
- MaskTunableValueString "on"
- MaskEnableString "on"
- MaskVisibilityString "on"
- MaskToolTipString "on"
- MaskVariables "Period=@1;"
- MaskInitialization "n"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "1/60"
- System {
- Name "Mean Value1"
- Location [220, 282, 763, 473]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "In"
- Position [20, 73, 50, 87]
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Init"
- Position [380, 143, 410, 157]
- Port "2"
- IconDisplay "Port number"
- }
- Block {
- BlockType Gain
- Name "Gain"
- Position [310, 73, 385, 117]
- Gain "1/Period"
- }
- Block {
- BlockType Step
- Name "Step"
- Position [370, 25, 400, 55]
- Time "Period+eps"
- SampleTime "0"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [250, 69, 270, 116]
- Inputs "+-"
- }
- Block {
- BlockType Switch
- Name "Switch"
- Position [435, 90, 465, 120]
- Threshold "0.5"
- InputSameDT off
- }
- Block {
- BlockType TransportDelay
- Name "TransportnDelay"
- Position [175, 90, 205, 120]
- DelayTime "Period"
- }
- Block {
- BlockType Integrator
- Name "integrator"
- Ports [1, 1]
- Position [85, 59, 115, 101]
- IgnoreLimit off
- }
- Block {
- BlockType Outport
- Name "Mean"
- Position [490, 98, 520, 112]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "TransportnDelay"
- SrcPort 1
- DstBlock "Sum"
- DstPort 2
- }
- Line {
- SrcBlock "integrator"
- SrcPort 1
- Points [0, 0; 25, 0]
- Branch {
- Points [0, 25]
- DstBlock "TransportnDelay"
- DstPort 1
- }
- Branch {
- DstBlock "Sum"
- DstPort 1
- }
- }
- Line {
- SrcBlock "In"
- SrcPort 1
- DstBlock "integrator"
- DstPort 1
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Gain"
- DstPort 1
- }
- Line {
- SrcBlock "Gain"
- SrcPort 1
- DstBlock "Switch"
- DstPort 1
- }
- Line {
- SrcBlock "Switch"
- SrcPort 1
- DstBlock "Mean"
- DstPort 1
- }
- Line {
- SrcBlock "Step"
- SrcPort 1
- Points [10, 0; 0, 65]
- DstBlock "Switch"
- DstPort 2
- }
- Line {
- SrcBlock "Init"
- SrcPort 1
- Points [0, -35]
- DstBlock "Switch"
- DstPort 3
- }
- Annotation {
- Name "Mean value"
- Position [48, 26]
- UseDisplayTextAsClickCallback off
- FontSize 12
- FontWeight "bold"
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Mean Value2"
- Ports [2, 1]
- Position [480, 259, 535, 286]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Mean value"
- MaskDescription "This block uses the running window averagin"
- "g technique to compute the mean value of the input signal over the specified "
- "period.n"
- MaskPromptString "Averaging period (s):"
- MaskStyleString "edit"
- MaskTunableValueString "on"
- MaskEnableString "on"
- MaskVisibilityString "on"
- MaskToolTipString "on"
- MaskVariables "Period=@1;"
- MaskInitialization "n"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "1/60"
- System {
- Name "Mean Value2"
- Location [220, 282, 763, 473]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "In"
- Position [20, 73, 50, 87]
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Init"
- Position [380, 143, 410, 157]
- Port "2"
- IconDisplay "Port number"
- }
- Block {
- BlockType Gain
- Name "Gain"
- Position [310, 73, 385, 117]
- Gain "1/Period"
- }
- Block {
- BlockType Step
- Name "Step"
- Position [370, 25, 400, 55]
- Time "Period+eps"
- SampleTime "0"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [250, 69, 270, 116]
- Inputs "+-"
- }
- Block {
- BlockType Switch
- Name "Switch"
- Position [435, 90, 465, 120]
- Threshold "0.5"
- InputSameDT off
- }
- Block {
- BlockType TransportDelay
- Name "TransportnDelay"
- Position [175, 90, 205, 120]
- DelayTime "Period"
- }
- Block {
- BlockType Integrator
- Name "integrator"
- Ports [1, 1]
- Position [85, 59, 115, 101]
- IgnoreLimit off
- }
- Block {
- BlockType Outport
- Name "Mean"
- Position [490, 98, 520, 112]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Init"
- SrcPort 1
- Points [0, -35]
- DstBlock "Switch"
- DstPort 3
- }
- Line {
- SrcBlock "Step"
- SrcPort 1
- Points [10, 0; 0, 65]
- DstBlock "Switch"
- DstPort 2
- }
- Line {
- SrcBlock "Switch"
- SrcPort 1
- DstBlock "Mean"
- DstPort 1
- }
- Line {
- SrcBlock "Gain"
- SrcPort 1
- DstBlock "Switch"
- DstPort 1
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Gain"
- DstPort 1
- }
- Line {
- SrcBlock "In"
- SrcPort 1
- DstBlock "integrator"
- DstPort 1
- }
- Line {
- SrcBlock "integrator"
- SrcPort 1
- Points [0, 0; 25, 0]
- Branch {
- DstBlock "Sum"
- DstPort 1
- }
- Branch {
- Points [0, 25]
- DstBlock "TransportnDelay"
- DstPort 1
- }
- }
- Line {
- SrcBlock "TransportnDelay"
- SrcPort 1
- DstBlock "Sum"
- DstPort 2
- }
- Annotation {
- Name "Mean value"
- Position [48, 26]
- UseDisplayTextAsClickCallback off
- FontSize 12
- FontWeight "bold"
- }
- }
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [1, 1]
- Position [305, 30, 325, 50]
- ShowName off
- IconShape "round"
- Inputs "1"
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [1, 1]
- Position [310, 105, 330, 125]
- ShowName off
- IconShape "round"
- Inputs "1"
- }
- Block {
- BlockType Gain
- Name "abc_to_pos"
- Position [225, 18, 275, 62]
- Gain "[1 exp(j*2*pi/3) exp(-j*2*pi/3)]"
- }
- Block {
- BlockType Gain
- Name "abc_to_pos1"
- Position [225, 93, 275, 137]
- Gain "[1 exp(j*2*pi/3) exp(-j*2*pi/3)]"
- }
- Block {
- BlockType SubSystem
- Name "magnitudenpositive seq. "
- Ports [1, 1]
- Position [470, 104, 515, 126]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "magnitudenpositive seq. "
- Location [573, 453, 974, 623]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "In1"
- Position [25, 68, 55, 82]
- IconDisplay "Port number"
- }
- Block {
- BlockType ComplexToRealImag
- Name "Complex tonReal-Imag"
- Ports [1, 2]
- Position [80, 58, 110, 87]
- ShowName off
- Output "Real and imag"
- }
- Block {
- BlockType SubSystem
- Name "Fourier1"
- Ports [1, 2]
- Position [155, 26, 220, 59]
- ShowName off
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Fourier analyser"
- MaskDescription "The Fourier block performs a Fourier an"
- "alysis of the input signal over a running window of one cycle of the fundamen"
- "tal frequency. First and second outputs return respectively the magnitude and"
- " phase (degrees) of the harmonic component specified."
- MaskHelp "web(psbhelp)"
- MaskPromptString "Fundamental frequency f1 (Hz):|Harmonic"
- " n (0=DC; 1=fundamental; 2=2nd harm; ...) :"
- MaskStyleString "edit,edit"
- MaskTunableValueString "on,on"
- MaskCallbackString "|"
- MaskEnableString "on,on"
- MaskVisibilityString "on,on"
- MaskToolTipString "on,on"
- MaskVarAliasString ","
- MaskVariables "f1=@1;n=@2;"
- MaskInitialization " k=2-(n==0);n"
- MaskIconFrame on
- MaskIconOpaque off
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "60|0"
- MaskTabNameString ","
- System {
- Name "Fourier1"
- Location [52, 538, 953, 977]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "signal"
- Position [15, 105, 35, 125]
- IconDisplay "Port number"
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [160, 100, 190, 130]
- Value "0"
- }
- Block {
- BlockType Fcn
- Name "Fcn"
- Position [475, 45, 515, 65]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn1"
- Position [475, 135, 515, 155]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn2"
- Position [595, 94, 665, 116]
- Expr "sqrt(u)"
- }
- Block {
- BlockType Fcn
- Name "Fcn3"
- Position [550, 180, 685, 210]
- Expr "180/pi*atan2(u[2],u[1])"
- }
- Block {
- BlockType Gain
- Name "Gain1"
- Position [55, 97, 105, 133]
- Gain "k*f1"
- }
- Block {
- BlockType Integrator
- Name "Integ2"
- Ports [2, 1]
- Position [220, 174, 260, 216]
- InitialConditionSource "external"
- IgnoreLimit off
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [475, 176, 505, 209]
- Inputs "2"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [165, 21, 190, 59]
- RndMeth "Floor"
- }
- Block {
- BlockType Product
- Name "Product1"
- Ports [2, 1]
- Position [160, 166, 185, 204]
- RndMeth "Floor"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [550, 79, 570, 126]
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [2, 1]
- Position [365, 29, 385, 76]
- Inputs "+-"
- }
- Block {
- BlockType Sum
- Name "Sum2"
- Ports [2, 1]
- Position [380, 174, 400, 221]
- Inputs "+-"
- }
- Block {
- BlockType TransportDelay
- Name "T"
- Position [300, 50, 340, 80]
- DelayTime "1/f1"
- BufferSize "2048"
- }
- Block {
- BlockType TransportDelay
- Name "T1"
- Position [305, 195, 345, 225]
- DelayTime "1/f1"
- BufferSize "2048"
- }
- Block {
- BlockType Sin
- Name "cos(nwt)"
- Ports [0, 1]
- Position [65, 180, 90, 210]
- SineType "Time based"
- Frequency "2*pi*n*f1"
- Phase "pi/2"
- SampleTime "0"
- }
- Block {
- BlockType Integrator
- Name "integ1"
- Ports [2, 1]
- Position [230, 29, 260, 71]
- InitialConditionSource "external"
- IgnoreLimit off
- }
- Block {
- BlockType Sin
- Name "sin(nwt)"
- Ports [0, 1]
- Position [65, 15, 90, 45]
- SineType "Time based"
- Frequency "2*pi*n*f1"
- SampleTime "0"
- }
- Block {
- BlockType Outport
- Name "magnitude"
- Position [710, 95, 730, 115]
- IconDisplay "Port number"
- BusOutputAsStruct off
- InitialOutput "0"
- }
- Block {
- BlockType Outport
- Name "angle"
- Position [710, 185, 730, 205]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- InitialOutput "0"
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- Points [10, 0]
- Branch {
- Points [0, -55]
- DstBlock "integ1"
- DstPort 2
- }
- Branch {
- DstBlock "Integ2"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Fcn2"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn"
- SrcPort 1
- Points [15, 0]
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn1"
- SrcPort 1
- Points [15, 0]
- DstBlock "Sum"
- DstPort 2
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Fcn3"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn3"
- SrcPort 1
- DstBlock "angle"
- DstPort 1
- }
- Line {
- SrcBlock "sin(nwt)"
- SrcPort 1
- DstBlock "Product"
- DstPort 1
- }
- Line {
- SrcBlock "cos(nwt)"
- SrcPort 1
- DstBlock "Product1"
- DstPort 2
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- DstBlock "integ1"
- DstPort 1
- }
- Line {
- SrcBlock "Product1"
- SrcPort 1
- DstBlock "Integ2"
- DstPort 1
- }
- Line {
- SrcBlock "T"
- SrcPort 1
- DstBlock "Sum1"
- DstPort 2
- }
- Line {
- SrcBlock "T1"
- SrcPort 1
- DstBlock "Sum2"
- DstPort 2
- }
- Line {
- SrcBlock "integ1"
- SrcPort 1
- Points [0, -10; 20, 0]
- Branch {
- DstBlock "Sum1"
- DstPort 1
- }
- Branch {
- DstBlock "T"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Integ2"
- SrcPort 1
- Points [0, -10; 20, 0]
- Branch {
- Points [0, 25]
- DstBlock "T1"
- DstPort 1
- }
- Branch {
- DstBlock "Sum2"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Sum2"
- SrcPort 1
- Points [20, 0]
- Branch {
- Points [0, -55]
- DstBlock "Fcn1"
- DstPort 1
- }
- Branch {
- DstBlock "Mux"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Sum1"
- SrcPort 1
- Points [55, 0]
- Branch {
- DstBlock "Fcn"
- DstPort 1
- }
- Branch {
- Points [0, 130]
- DstBlock "Mux"
- DstPort 1
- }
- }
- Line {
- SrcBlock "signal"
- SrcPort 1
- DstBlock "Gain1"
- DstPort 1
- }
- Line {
- SrcBlock "Gain1"
- SrcPort 1
- Points [0, 0; 10, 0]
- Branch {
- Points [0, -65]
- DstBlock "Product"
- DstPort 2
- }
- Branch {
- Points [0, 60]
- DstBlock "Product1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Fcn2"
- SrcPort 1
- DstBlock "magnitude"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Fourier2"
- Ports [1, 2]
- Position [155, 81, 220, 114]
- ShowName off
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Fourier analyser"
- MaskDescription "The Fourier block performs a Fourier an"
- "alysis of the input signal over a running window of one cycle of the fundamen"
- "tal frequency. First and second outputs return respectively the magnitude and"
- " phase (degrees) of the harmonic component specified."
- MaskHelp "web(psbhelp)"
- MaskPromptString "Fundamental frequency f1 (Hz):|Harmonic"
- " n (0=DC; 1=fundamental; 2=2nd harm; ...) :"
- MaskStyleString "edit,edit"
- MaskTunableValueString "on,on"
- MaskCallbackString "|"
- MaskEnableString "on,on"
- MaskVisibilityString "on,on"
- MaskToolTipString "on,on"
- MaskVarAliasString ","
- MaskVariables "f1=@1;n=@2;"
- MaskInitialization " k=2-(n==0);n"
- MaskIconFrame on
- MaskIconOpaque off
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "60|0"
- MaskTabNameString ","
- System {
- Name "Fourier2"
- Location [52, 538, 953, 977]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "signal"
- Position [15, 105, 35, 125]
- IconDisplay "Port number"
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [160, 100, 190, 130]
- Value "0"
- }
- Block {
- BlockType Fcn
- Name "Fcn"
- Position [475, 45, 515, 65]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn1"
- Position [475, 135, 515, 155]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn2"
- Position [595, 94, 665, 116]
- Expr "sqrt(u)"
- }
- Block {
- BlockType Fcn
- Name "Fcn3"
- Position [550, 180, 685, 210]
- Expr "180/pi*atan2(u[2],u[1])"
- }
- Block {
- BlockType Gain
- Name "Gain1"
- Position [55, 97, 105, 133]
- Gain "k*f1"
- }
- Block {
- BlockType Integrator
- Name "Integ2"
- Ports [2, 1]
- Position [220, 174, 260, 216]
- InitialConditionSource "external"
- IgnoreLimit off
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [475, 176, 505, 209]
- Inputs "2"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [165, 21, 190, 59]
- RndMeth "Floor"
- }
- Block {
- BlockType Product
- Name "Product1"
- Ports [2, 1]
- Position [160, 166, 185, 204]
- RndMeth "Floor"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [550, 79, 570, 126]
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [2, 1]
- Position [365, 29, 385, 76]
- Inputs "+-"
- }
- Block {
- BlockType Sum
- Name "Sum2"
- Ports [2, 1]
- Position [380, 174, 400, 221]
- Inputs "+-"
- }
- Block {
- BlockType TransportDelay
- Name "T"
- Position [300, 50, 340, 80]
- DelayTime "1/f1"
- BufferSize "2048"
- }
- Block {
- BlockType TransportDelay
- Name "T1"
- Position [305, 195, 345, 225]
- DelayTime "1/f1"
- BufferSize "2048"
- }
- Block {
- BlockType Sin
- Name "cos(nwt)"
- Ports [0, 1]
- Position [65, 180, 90, 210]
- SineType "Time based"
- Frequency "2*pi*n*f1"
- Phase "pi/2"
- SampleTime "0"
- }
- Block {
- BlockType Integrator
- Name "integ1"
- Ports [2, 1]
- Position [230, 19, 260, 61]
- InitialConditionSource "external"
- IgnoreLimit off
- }
- Block {
- BlockType Sin
- Name "sin(nwt)"
- Ports [0, 1]
- Position [65, 15, 90, 45]
- SineType "Time based"
- Frequency "2*pi*n*f1"
- SampleTime "0"
- }
- Block {
- BlockType Outport
- Name "magnitude"
- Position [710, 95, 730, 115]
- IconDisplay "Port number"
- BusOutputAsStruct off
- InitialOutput "0"
- }
- Block {
- BlockType Outport
- Name "angle"
- Position [710, 185, 730, 205]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- InitialOutput "0"
- }
- Line {
- SrcBlock "Fcn2"
- SrcPort 1
- DstBlock "magnitude"
- DstPort 1
- }
- Line {
- SrcBlock "Gain1"
- SrcPort 1
- Points [0, 0; 10, 0]
- Branch {
- Points [0, 60]
- DstBlock "Product1"
- DstPort 1
- }
- Branch {
- Points [0, -65]
- DstBlock "Product"
- DstPort 2
- }
- }
- Line {
- SrcBlock "signal"
- SrcPort 1
- DstBlock "Gain1"
- DstPort 1
- }
- Line {
- SrcBlock "Sum1"
- SrcPort 1
- Points [55, 0]
- Branch {
- Points [0, 130]
- DstBlock "Mux"
- DstPort 1
- }
- Branch {
- DstBlock "Fcn"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Sum2"
- SrcPort 1
- Points [20, 0]
- Branch {
- DstBlock "Mux"
- DstPort 2
- }
- Branch {
- Points [0, -55]
- DstBlock "Fcn1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Integ2"
- SrcPort 1
- Points [0, -10; 20, 0]
- Branch {
- DstBlock "Sum2"
- DstPort 1
- }
- Branch {
- Points [0, 25]
- DstBlock "T1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "integ1"
- SrcPort 1
- Points [20, 0]
- Branch {
- DstBlock "T"
- DstPort 1
- }
- Branch {
- DstBlock "Sum1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "T1"
- SrcPort 1
- DstBlock "Sum2"
- DstPort 2
- }
- Line {
- SrcBlock "T"
- SrcPort 1
- DstBlock "Sum1"
- DstPort 2
- }
- Line {
- SrcBlock "Product1"
- SrcPort 1
- DstBlock "Integ2"
- DstPort 1
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- Points [20, 0]
- DstBlock "integ1"
- DstPort 1
- }
- Line {
- SrcBlock "cos(nwt)"
- SrcPort 1
- DstBlock "Product1"
- DstPort 2
- }
- Line {
- SrcBlock "sin(nwt)"
- SrcPort 1
- DstBlock "Product"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn3"
- SrcPort 1
- DstBlock "angle"
- DstPort 1
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Fcn3"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn1"
- SrcPort 1
- Points [15, 0]
- DstBlock "Sum"
- DstPort 2
- }
- Line {
- SrcBlock "Fcn"
- SrcPort 1
- Points [15, 0]
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Fcn2"
- DstPort 1
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- Points [10, 0]
- Branch {
- DstBlock "Integ2"
- DstPort 2
- }
- Branch {
- Points [0, -65]
- DstBlock "integ1"
- DstPort 2
- }
- }
- }
- }
- Block {
- BlockType Math
- Name "MathnFunction"
- Ports [2, 1]
- Position [295, 45, 325, 85]
- Operator "hypot"
- }
- Block {
- BlockType Terminator
- Name "Terminator"
- Position [240, 43, 250, 57]
- ShowName off
- }
- Block {
- BlockType Terminator
- Name "Terminator1"
- Position [240, 98, 250, 112]
- ShowName off
- }
- Block {
- BlockType Outport
- Name "Out1"
- Position [350, 58, 380, 72]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "In1"
- SrcPort 1
- DstBlock "Complex tonReal-Imag"
- DstPort 1
- }
- Line {
- SrcBlock "MathnFunction"
- SrcPort 1
- DstBlock "Out1"
- DstPort 1
- }
- Line {
- SrcBlock "Fourier2"
- SrcPort 1
- Points [40, 0; 0, -15]
- DstBlock "MathnFunction"
- DstPort 2
- }
- Line {
- SrcBlock "Fourier1"
- SrcPort 1
- Points [40, 0; 0, 20]
- DstBlock "MathnFunction"
- DstPort 1
- }
- Line {
- SrcBlock "Fourier2"
- SrcPort 2
- DstBlock "Terminator1"
- DstPort 1
- }
- Line {
- SrcBlock "Fourier1"
- SrcPort 2
- DstBlock "Terminator"
- DstPort 1
- }
- Line {
- SrcBlock "Complex tonReal-Imag"
- SrcPort 2
- Points [15, 0; 0, 20]
- DstBlock "Fourier2"
- DstPort 1
- }
- Line {
- SrcBlock "Complex tonReal-Imag"
- SrcPort 1
- Points [15, 0; 0, -20]
- DstBlock "Fourier1"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "magnitudenpositivie seq"
- Ports [1, 1]
- Position [470, 29, 515, 51]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "magnitudenpositivie seq"
- Location [238, 376, 639, 546]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "In1"
- Position [25, 68, 55, 82]
- IconDisplay "Port number"
- }
- Block {
- BlockType ComplexToRealImag
- Name "Complex tonReal-Imag"
- Ports [1, 2]
- Position [80, 58, 110, 87]
- ShowName off
- Output "Real and imag"
- }
- Block {
- BlockType SubSystem
- Name "Fourier1"
- Ports [1, 2]
- Position [155, 26, 220, 59]
- ShowName off
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Fourier analyser"
- MaskDescription "The Fourier block performs a Fourier an"
- "alysis of the input signal over a running window of one cycle of the fundamen"
- "tal frequency. First and second outputs return respectively the magnitude and"
- " phase (degrees) of the harmonic component specified."
- MaskHelp "web(psbhelp)"
- MaskPromptString "Fundamental frequency f1 (Hz):|Harmonic"
- " n (0=DC; 1=fundamental; 2=2nd harm; ...) :"
- MaskStyleString "edit,edit"
- MaskTunableValueString "on,on"
- MaskCallbackString "|"
- MaskEnableString "on,on"
- MaskVisibilityString "on,on"
- MaskToolTipString "on,on"
- MaskVarAliasString ","
- MaskVariables "f1=@1;n=@2;"
- MaskInitialization " k=2-(n==0);n"
- MaskIconFrame on
- MaskIconOpaque off
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "60|0"
- MaskTabNameString ","
- System {
- Name "Fourier1"
- Location [52, 538, 953, 977]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "signal"
- Position [15, 105, 35, 125]
- IconDisplay "Port number"
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [160, 100, 190, 130]
- Value "0"
- }
- Block {
- BlockType Fcn
- Name "Fcn"
- Position [475, 45, 515, 65]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn1"
- Position [475, 135, 515, 155]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn2"
- Position [595, 94, 665, 116]
- Expr "sqrt(u)"
- }
- Block {
- BlockType Fcn
- Name "Fcn3"
- Position [550, 180, 685, 210]
- Expr "180/pi*atan2(u[2],u[1])"
- }
- Block {
- BlockType Gain
- Name "Gain1"
- Position [55, 97, 105, 133]
- Gain "k*f1"
- }
- Block {
- BlockType Integrator
- Name "Integ2"
- Ports [2, 1]
- Position [220, 174, 260, 216]
- InitialConditionSource "external"
- IgnoreLimit off
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [475, 176, 505, 209]
- Inputs "2"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [165, 21, 190, 59]
- RndMeth "Floor"
- }
- Block {
- BlockType Product
- Name "Product1"
- Ports [2, 1]
- Position [160, 166, 185, 204]
- RndMeth "Floor"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [550, 79, 570, 126]
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [2, 1]
- Position [365, 29, 385, 76]
- Inputs "+-"
- }
- Block {
- BlockType Sum
- Name "Sum2"
- Ports [2, 1]
- Position [380, 174, 400, 221]
- Inputs "+-"
- }
- Block {
- BlockType TransportDelay
- Name "T"
- Position [300, 50, 340, 80]
- DelayTime "1/f1"
- BufferSize "2048"
- }
- Block {
- BlockType TransportDelay
- Name "T1"
- Position [305, 195, 345, 225]
- DelayTime "1/f1"
- BufferSize "2048"
- }
- Block {
- BlockType Sin
- Name "cos(nwt)"
- Ports [0, 1]
- Position [65, 180, 90, 210]
- SineType "Time based"
- Frequency "2*pi*n*f1"
- Phase "pi/2"
- SampleTime "0"
- }
- Block {
- BlockType Integrator
- Name "integ1"
- Ports [2, 1]
- Position [230, 19, 260, 61]
- InitialConditionSource "external"
- IgnoreLimit off
- }
- Block {
- BlockType Sin
- Name "sin(nwt)"
- Ports [0, 1]
- Position [65, 15, 90, 45]
- SineType "Time based"
- Frequency "2*pi*n*f1"
- SampleTime "0"
- }
- Block {
- BlockType Outport
- Name "magnitude"
- Position [710, 95, 730, 115]
- IconDisplay "Port number"
- BusOutputAsStruct off
- InitialOutput "0"
- }
- Block {
- BlockType Outport
- Name "angle"
- Position [710, 185, 730, 205]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- InitialOutput "0"
- }
- Line {
- SrcBlock "Fcn2"
- SrcPort 1
- DstBlock "magnitude"
- DstPort 1
- }
- Line {
- SrcBlock "Gain1"
- SrcPort 1
- Points [0, 0; 10, 0]
- Branch {
- Points [0, 60]
- DstBlock "Product1"
- DstPort 1
- }
- Branch {
- Points [0, -65]
- DstBlock "Product"
- DstPort 2
- }
- }
- Line {
- SrcBlock "signal"
- SrcPort 1
- DstBlock "Gain1"
- DstPort 1
- }
- Line {
- SrcBlock "Sum1"
- SrcPort 1
- Points [55, 0]
- Branch {
- Points [0, 130]
- DstBlock "Mux"
- DstPort 1
- }
- Branch {
- DstBlock "Fcn"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Sum2"
- SrcPort 1
- Points [20, 0]
- Branch {
- DstBlock "Mux"
- DstPort 2
- }
- Branch {
- Points [0, -55]
- DstBlock "Fcn1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Integ2"
- SrcPort 1
- Points [0, -10; 20, 0]
- Branch {
- DstBlock "Sum2"
- DstPort 1
- }
- Branch {
- Points [0, 25]
- DstBlock "T1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "integ1"
- SrcPort 1
- Points [20, 0]
- Branch {
- DstBlock "T"
- DstPort 1
- }
- Branch {
- DstBlock "Sum1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "T1"
- SrcPort 1
- DstBlock "Sum2"
- DstPort 2
- }
- Line {
- SrcBlock "T"
- SrcPort 1
- DstBlock "Sum1"
- DstPort 2
- }
- Line {
- SrcBlock "Product1"
- SrcPort 1
- DstBlock "Integ2"
- DstPort 1
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- Points [20, 0]
- DstBlock "integ1"
- DstPort 1
- }
- Line {
- SrcBlock "cos(nwt)"
- SrcPort 1
- DstBlock "Product1"
- DstPort 2
- }
- Line {
- SrcBlock "sin(nwt)"
- SrcPort 1
- DstBlock "Product"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn3"
- SrcPort 1
- DstBlock "angle"
- DstPort 1
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Fcn3"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn1"
- SrcPort 1
- Points [15, 0]
- DstBlock "Sum"
- DstPort 2
- }
- Line {
- SrcBlock "Fcn"
- SrcPort 1
- Points [15, 0]
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Fcn2"
- DstPort 1
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- Points [10, 0]
- Branch {
- DstBlock "Integ2"
- DstPort 2
- }
- Branch {
- Points [0, -65]
- DstBlock "integ1"
- DstPort 2
- }
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Fourier2"
- Ports [1, 2]
- Position [155, 81, 220, 114]
- ShowName off
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Fourier analyser"
- MaskDescription "The Fourier block performs a Fourier an"
- "alysis of the input signal over a running window of one cycle of the fundamen"
- "tal frequency. First and second outputs return respectively the magnitude and"
- " phase (degrees) of the harmonic component specified."
- MaskHelp "web(psbhelp)"
- MaskPromptString "Fundamental frequency f1 (Hz):|Harmonic"
- " n (0=DC; 1=fundamental; 2=2nd harm; ...) :"
- MaskStyleString "edit,edit"
- MaskTunableValueString "on,on"
- MaskCallbackString "|"
- MaskEnableString "on,on"
- MaskVisibilityString "on,on"
- MaskToolTipString "on,on"
- MaskVarAliasString ","
- MaskVariables "f1=@1;n=@2;"
- MaskInitialization " k=2-(n==0);n"
- MaskIconFrame on
- MaskIconOpaque off
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "60|0"
- MaskTabNameString ","
- System {
- Name "Fourier2"
- Location [52, 538, 953, 977]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "signal"
- Position [15, 105, 35, 125]
- IconDisplay "Port number"
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [160, 100, 190, 130]
- Value "0"
- }
- Block {
- BlockType Fcn
- Name "Fcn"
- Position [475, 45, 515, 65]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn1"
- Position [475, 135, 515, 155]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn2"
- Position [595, 94, 665, 116]
- Expr "sqrt(u)"
- }
- Block {
- BlockType Fcn
- Name "Fcn3"
- Position [550, 180, 685, 210]
- Expr "180/pi*atan2(u[2],u[1])"
- }
- Block {
- BlockType Gain
- Name "Gain1"
- Position [55, 97, 105, 133]
- Gain "k*f1"
- }
- Block {
- BlockType Integrator
- Name "Integ2"
- Ports [2, 1]
- Position [220, 174, 260, 216]
- InitialConditionSource "external"
- IgnoreLimit off
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [475, 176, 505, 209]
- Inputs "2"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [165, 21, 190, 59]
- RndMeth "Floor"
- }
- Block {
- BlockType Product
- Name "Product1"
- Ports [2, 1]
- Position [160, 166, 185, 204]
- RndMeth "Floor"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [550, 79, 570, 126]
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [2, 1]
- Position [365, 29, 385, 76]
- Inputs "+-"
- }
- Block {
- BlockType Sum
- Name "Sum2"
- Ports [2, 1]
- Position [380, 174, 400, 221]
- Inputs "+-"
- }
- Block {
- BlockType TransportDelay
- Name "T"
- Position [300, 50, 340, 80]
- DelayTime "1/f1"
- BufferSize "2048"
- }
- Block {
- BlockType TransportDelay
- Name "T1"
- Position [305, 195, 345, 225]
- DelayTime "1/f1"
- BufferSize "2048"
- }
- Block {
- BlockType Sin
- Name "cos(nwt)"
- Ports [0, 1]
- Position [65, 180, 90, 210]
- SineType "Time based"
- Frequency "2*pi*n*f1"
- Phase "pi/2"
- SampleTime "0"
- }
- Block {
- BlockType Integrator
- Name "integ1"
- Ports [2, 1]
- Position [230, 19, 260, 61]
- InitialConditionSource "external"
- IgnoreLimit off
- }
- Block {
- BlockType Sin
- Name "sin(nwt)"
- Ports [0, 1]
- Position [65, 15, 90, 45]
- SineType "Time based"
- Frequency "2*pi*n*f1"
- SampleTime "0"
- }
- Block {
- BlockType Outport
- Name "magnitude"
- Position [710, 95, 730, 115]
- IconDisplay "Port number"
- BusOutputAsStruct off
- InitialOutput "0"
- }
- Block {
- BlockType Outport
- Name "angle"
- Position [710, 185, 730, 205]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- InitialOutput "0"
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- Points [10, 0]
- Branch {
- Points [0, -65]
- DstBlock "integ1"
- DstPort 2
- }
- Branch {
- DstBlock "Integ2"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Fcn2"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn"
- SrcPort 1
- Points [15, 0]
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn1"
- SrcPort 1
- Points [15, 0]
- DstBlock "Sum"
- DstPort 2
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Fcn3"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn3"
- SrcPort 1
- DstBlock "angle"
- DstPort 1
- }
- Line {
- SrcBlock "sin(nwt)"
- SrcPort 1
- DstBlock "Product"
- DstPort 1
- }
- Line {
- SrcBlock "cos(nwt)"
- SrcPort 1
- DstBlock "Product1"
- DstPort 2
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- Points [20, 0]
- DstBlock "integ1"
- DstPort 1
- }
- Line {
- SrcBlock "Product1"
- SrcPort 1
- DstBlock "Integ2"
- DstPort 1
- }
- Line {
- SrcBlock "T"
- SrcPort 1
- DstBlock "Sum1"
- DstPort 2
- }
- Line {
- SrcBlock "T1"
- SrcPort 1
- DstBlock "Sum2"
- DstPort 2
- }
- Line {
- SrcBlock "integ1"
- SrcPort 1
- Points [20, 0]
- Branch {
- DstBlock "Sum1"
- DstPort 1
- }
- Branch {
- DstBlock "T"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Integ2"
- SrcPort 1
- Points [0, -10; 20, 0]
- Branch {
- Points [0, 25]
- DstBlock "T1"
- DstPort 1
- }
- Branch {
- DstBlock "Sum2"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Sum2"
- SrcPort 1
- Points [20, 0]
- Branch {
- Points [0, -55]
- DstBlock "Fcn1"
- DstPort 1
- }
- Branch {
- DstBlock "Mux"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Sum1"
- SrcPort 1
- Points [55, 0]
- Branch {
- DstBlock "Fcn"
- DstPort 1
- }
- Branch {
- Points [0, 130]
- DstBlock "Mux"
- DstPort 1
- }
- }
- Line {
- SrcBlock "signal"
- SrcPort 1
- DstBlock "Gain1"
- DstPort 1
- }
- Line {
- SrcBlock "Gain1"
- SrcPort 1
- Points [0, 0; 10, 0]
- Branch {
- Points [0, -65]
- DstBlock "Product"
- DstPort 2
- }
- Branch {
- Points [0, 60]
- DstBlock "Product1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Fcn2"
- SrcPort 1
- DstBlock "magnitude"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Math
- Name "MathnFunction"
- Ports [2, 1]
- Position [295, 45, 325, 85]
- Operator "hypot"
- }
- Block {
- BlockType Terminator
- Name "Terminator"
- Position [240, 43, 250, 57]
- ShowName off
- }
- Block {
- BlockType Terminator
- Name "Terminator1"
- Position [240, 98, 250, 112]
- ShowName off
- }
- Block {
- BlockType Outport
- Name "Out1"
- Position [350, 58, 380, 72]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Complex tonReal-Imag"
- SrcPort 1
- Points [15, 0; 0, -20]
- DstBlock "Fourier1"
- DstPort 1
- }
- Line {
- SrcBlock "Complex tonReal-Imag"
- SrcPort 2
- Points [15, 0; 0, 20]
- DstBlock "Fourier2"
- DstPort 1
- }
- Line {
- SrcBlock "Fourier1"
- SrcPort 2
- DstBlock "Terminator"
- DstPort 1
- }
- Line {
- SrcBlock "Fourier2"
- SrcPort 2
- DstBlock "Terminator1"
- DstPort 1
- }
- Line {
- SrcBlock "Fourier1"
- SrcPort 1
- Points [40, 0; 0, 20]
- DstBlock "MathnFunction"
- DstPort 1
- }
- Line {
- SrcBlock "Fourier2"
- SrcPort 1
- Points [40, 0; 0, -15]
- DstBlock "MathnFunction"
- DstPort 2
- }
- Line {
- SrcBlock "MathnFunction"
- SrcPort 1
- DstBlock "Out1"
- DstPort 1
- }
- Line {
- SrcBlock "In1"
- SrcPort 1
- DstBlock "Complex tonReal-Imag"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Gain
- Name "pu->A"
- Position [240, 239, 260, 261]
- Gain "(6*1.5e6/0.9)/sqrt(3)/575*sqrt(2)"
- }
- Block {
- BlockType Gain
- Name "pu->V"
- Position [240, 209, 260, 231]
- NamePlacement "alternate"
- Gain "575*sqrt(2)/sqrt(3)"
- }
- Block {
- BlockType Outport
- Name "V1_B575"
- Position [550, 33, 580, 47]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "I1_B575"
- Position [550, 108, 580, 122]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "P_mean"
- Position [575, 223, 605, 237]
- Port "3"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "Q_mean"
- Position [575, 268, 605, 282]
- Port "4"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "From3"
- SrcPort 1
- Points [50, 0]
- Branch {
- Points [0, 135]
- DstBlock "pu->A"
- DstPort 1
- }
- Branch {
- DstBlock "abc_to_pos1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "From1"
- SrcPort 1
- Points [20, 0]
- Branch {
- Points [0, 180]
- DstBlock "pu->V"
- DstPort 1
- }
- Branch {
- DstBlock "abc_to_pos"
- DstPort 1
- }
- }
- Line {
- SrcBlock "pu->A"
- SrcPort 1
- DstBlock "3-PhasenActive & Reactive Powern(Phasor T"
- "ype)"
- DstPort 2
- }
- Line {
- SrcBlock "pu->V"
- SrcPort 1
- DstBlock "3-PhasenActive & Reactive Powern(Phasor T"
- "ype)"
- DstPort 1
- }
- Line {
- SrcBlock "MW"
- SrcPort 1
- DstBlock "Demux"
- DstPort 1
- }
- Line {
- SrcBlock "3-PhasenActive & Reactive Powern(Phasor T"
- "ype)"
- SrcPort 1
- DstBlock "MW"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 1
- DstBlock "Mean Value1"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 2
- Points [15, 0; 0, 15]
- DstBlock "Mean Value2"
- DstPort 1
- }
- Line {
- SrcBlock "magnitudenpositive seq. "
- SrcPort 1
- DstBlock "I1_B575"
- DstPort 1
- }
- Line {
- SrcBlock "magnitudenpositivie seq"
- SrcPort 1
- DstBlock "V1_B575"
- DstPort 1
- }
- Line {
- SrcBlock "abc_to_pos"
- SrcPort 1
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Gain3"
- DstPort 1
- }
- Line {
- SrcBlock "Sum1"
- SrcPort 1
- DstBlock "Gain4"
- DstPort 1
- }
- Line {
- SrcBlock "Gain3"
- SrcPort 1
- DstBlock "magnitudenpositivie seq"
- DstPort 1
- }
- Line {
- SrcBlock "abc_to_pos1"
- SrcPort 1
- DstBlock "Sum1"
- DstPort 1
- }
- Line {
- SrcBlock "Gain4"
- SrcPort 1
- DstBlock "magnitudenpositive seq. "
- DstPort 1
- }
- Line {
- SrcBlock "Mean Value1"
- SrcPort 1
- DstBlock "P_mean"
- DstPort 1
- }
- Line {
- SrcBlock "Mean Value2"
- SrcPort 1
- DstBlock "Q_mean"
- DstPort 1
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- Points [10, 0; 0, -30]
- Branch {
- Points [0, -45]
- DstBlock "Mean Value1"
- DstPort 2
- }
- Branch {
- DstBlock "Mean Value2"
- DstPort 2
- }
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "powergui"
- Ports []
- Position [30, 570, 110, 615]
- Priority "2"
- AncestorBlock "powerlib/powergui"
- CopyFcn "powergui('Copy_Callback',gcb,0,[]);"
- DeleteFcn "powergui('Copy_Callback',gcb,1,[]);powergui('Cl"
- "ose_Callback',gcb,[],[]);n "
- " "
- ModelCloseFcn "powergui('Close_Callback',gcb,[],[]);"
- PreSaveFcn "try nclose(get_pa"
- "ram(gcbh,'userdata'))nend "
- OpenFcn "if (power_openblockproxy ('secondary'))npowerg"
- "ui(gcb,'PM')nend;"
- FontSize 11
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "PSB option menu block"
- MaskHelp "web(psbhelp)"
- MaskPromptString "General parameter: Simulation Mode |General par"
- "ameter: Sample Time|General parameter: Echo Messages|Initial electrical stat"
- "es status|Impedance tool: Frequency Range|Impedance tool: Log impedance|Imped"
- "ance tool: log Frequency|Impedance tool: grid|Impedance tool: Save Data To Wo"
- "rkspace|Impedance tool: Variable Name|Structure Name (PSBFFTSCOPE)|ZoomFFT (P"
- "SBFFTSCOPE)|Start Time (PSBFFTSCOPE)|Cycles (PSBFFTSCOPE)|Display style (PSBF"
- "FTSCOPE)|Fundamental (PSBFFTSCOPE)|Frequency Axis (PSBFFTSCOPE)|Max Frequency"
- " (PSBFFTSCOPE)|Frequency indice (PSBLOADFLOW)|Frequency indice (STEADYSTATE)"
- "|RMS display (STEADYSTATE)|Display Results|Sample time (s): |General paramet"
- "er: phasor frequency|Phasor simulation"
- MaskStyleString "popup(Continuous|Discrete|Phasor),edit,checkbox"
- ",popup(blocks|steady|zero),edit,checkbox,checkbox,checkbox,checkbox,edit,edit"
- ",checkbox,edit,edit,edit,edit,checkbox,edit,edit,edit,edit,checkbox,edit,edit"
- ",checkbox"
- MaskTunableValueString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
- ",on,on,on,on,on,on,on,on,on"
- MaskCallbackString "||||||||||||||||||||||||"
- MaskEnableString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
- ",on,on,on,on,on,on,on,on,on"
- MaskVisibilityString "on,on,on,on,off,off,off,off,off,off,off,off,off"
- ",off,off,off,off,off,off,off,off,on,on,on,on"
- MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
- ",on,on,on,on,on,on,on,on,on"
- MaskVarAliasString ",,,,,,,,,,,,,,,,,,,,,,,,"
- MaskVariables "SimulationMode=@1;SampleTime=@2;echomessages=@3"
- ";x0status=@4;Frange=@5;Ylog=@6;Xlog=@7;ShowGrid=@8;save=@9;variable=&10;struc"
- "ture=&11;ZoomFFT=@12;StartTime=@13;cycles=@14;DisplayStyle=&15;fundamental=@1"
- "6;FreqAxis=@17;MaxFrequency=@18;frequencyindice=@19;frequencyindicesteady=@20"
- ";RmsSteady=@21;display=@22;Ts=@23;frequency=@24;methode=@25;"
- MaskInitialization "powerlibroot = which('powersysdomain');nPSBroo"
- "t = powerlibroot(1:end-16);n%nswitch SimulationModen case 1n"
- " message=sprintf('Continuous');n case 2n messa"
- "ge=sprintf('Discrete,\nTs = %.4g s.',SampleTime);n case 3n "
- " message=sprintf('Phasors');nendnif strcmp(bdroot,'powerlib')n mes"
- "sage='powergui';nendnpower_initmask();"
- MaskDisplay "disp(message)"
- MaskSelfModifiable on
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "Phasor|0|off|blocks|[0:2:500]|off|off|off|off|Z"
- "Data||on|0.0|1|1|60|off|1000|60|1|1|off|0|60|off"
- MaskTabNameString ",,,,,,,,,,,,,,,,,,,,,,,,"
- System {
- Name "powergui"
- Location [137, 405, 682, 583]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType SubSystem
- Name "EquivalentModel1"
- Ports []
- Position [15, 70, 143, 105]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskInitialization "SPS = get_param(gcbh,'UserData');nif isemp"
- "ty(SPS)n H=0;n Rswitch=1;n InputsNonZero=1;nelsen"
- " H=SPS.Hswo;n Rswitch=SPS.Rswitch;n InputsNonZero=SPS."
- "InputsNonZero;nend"
- MaskDisplay "color('magenta')ndisp('EQUIVALENT CIRCUIT'"
- ")"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- System {
- Name "EquivalentModel1"
- Location [757, 702, 1302, 849]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "A4"
- PaperUnits "centimeters"
- ZoomFactor "100"
- Block {
- BlockType SubSystem
- Name "Gates"
- Ports [0, 1]
- Position [110, 87, 175, 113]
- FontName "Arial"
- FontSize 14
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "Gates"
- Location [20, 127, 741, 886]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "A4"
- PaperUnits "centimeters"
- ZoomFactor "100"
- Block {
- BlockType From
- Name "From1"
- Position [15, 21, 85, 49]
- GotoTag "tp435610"
- }
- Block {
- BlockType From
- Name "From2"
- Position [15, 66, 85, 94]
- GotoTag "tp435614"
- }
- Block {
- BlockType From
- Name "From3"
- Position [15, 111, 85, 139]
- GotoTag "tp435625"
- }
- Block {
- BlockType From
- Name "From4"
- Position [15, 156, 85, 184]
- GotoTag "tp435628"
- }
- Block {
- BlockType From
- Name "From5"
- Position [15, 201, 85, 229]
- GotoTag "tp435631"
- }
- Block {
- BlockType From
- Name "From6"
- Position [15, 246, 85, 274]
- GotoTag "tp435606"
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [6, 1]
- Position [325, 272, 330, 613]
- ShowName off
- Inputs "[1 1 1 1 1 1]"
- DisplayOption "bar"
- }
- Block {
- BlockType Outport
- Name "gates"
- Position [390, 433, 420, 447]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- Points [0, -5]
- DstBlock "gates"
- DstPort 1
- }
- Line {
- SrcBlock "From1"
- SrcPort 1
- DstBlock "Mux"
- DstPort 1
- }
- Line {
- SrcBlock "From2"
- SrcPort 1
- DstBlock "Mux"
- DstPort 2
- }
- Line {
- SrcBlock "From3"
- SrcPort 1
- DstBlock "Mux"
- DstPort 3
- }
- Line {
- SrcBlock "From4"
- SrcPort 1
- DstBlock "Mux"
- DstPort 4
- }
- Line {
- SrcBlock "From5"
- SrcPort 1
- DstBlock "Mux"
- DstPort 5
- }
- Line {
- SrcBlock "From6"
- SrcPort 1
- DstBlock "Mux"
- DstPort 6
- }
- }
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [210, 30, 215, 125]
- NamePlacement "alternate"
- Inputs "2"
- DisplayOption "bar"
- }
- Block {
- BlockType SubSystem
- Name "Sources"
- Ports [0, 1]
- Position [20, 42, 85, 68]
- FontName "Arial"
- FontSize 14
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "Sources"
- Location [16, 100, 737, 762]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "A4"
- PaperUnits "centimeters"
- ZoomFactor "100"
- Block {
- BlockType From
- Name "From1"
- Position [15, 21, 85, 49]
- GotoTag "tp283457"
- }
- Block {
- BlockType From
- Name "From2"
- Position [15, 66, 85, 94]
- GotoTag "tp283534"
- }
- Block {
- BlockType From
- Name "From3"
- Position [15, 111, 85, 139]
- GotoTag "tp283535"
- }
- Block {
- BlockType From
- Name "From4"
- Position [15, 156, 85, 184]
- GotoTag "tp283393"
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [4, 1]
- Position [325, 272, 330, 613]
- Inputs "[2 1 1 3]"
- DisplayOption "bar"
- }
- Block {
- BlockType Mux
- Name "Mux_u"
- Ports [2, 1]
- Position [465, 374, 470, 461]
- Inputs "[6 7]"
- DisplayOption "bar"
- }
- Block {
- BlockType Constant
- Name "SwitchCurrents"
- Position [350, 379, 430, 411]
- NamePlacement "alternate"
- Value "complex(zeros(6,1),zeros(6,1))"
- }
- Block {
- BlockType Outport
- Name "u"
- Position [505, 413, 535, 427]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Mux_u"
- SrcPort 1
- DstBlock "u"
- DstPort 1
- }
- Line {
- SrcBlock "SwitchCurrents"
- SrcPort 1
- DstBlock "Mux_u"
- DstPort 1
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- Points [0, -5]
- DstBlock "Mux_u"
- DstPort 2
- }
- Line {
- SrcBlock "From1"
- SrcPort 1
- DstBlock "Mux"
- DstPort 1
- }
- Line {
- SrcBlock "From2"
- SrcPort 1
- DstBlock "Mux"
- DstPort 2
- }
- Line {
- SrcBlock "From3"
- SrcPort 1
- DstBlock "Mux"
- DstPort 3
- }
- Line {
- SrcBlock "From4"
- SrcPort 1
- DstBlock "Mux"
- DstPort 4
- }
- }
- }
- Block {
- BlockType "S-Function"
- Name "State-Space"
- Ports [1, 1]
- Position [240, 58, 320, 102]
- FunctionName "sfun_psbdqc"
- Parameters "H, Rswitch,InputsNonZero"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- }
- Block {
- BlockType SubSystem
- Name "Yout"
- Ports [1]
- Position [455, 68, 520, 92]
- FontName "Arial"
- FontSize 14
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "Yout"
- Location [124, 85, 631, 971]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "A4"
- PaperUnits "centimeters"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "v,i"
- Position [15, 373, 45, 387]
- IconDisplay "Port number"
- }
- Block {
- BlockType Demux
- Name "Demux"
- Ports [1, 37]
- Position [120, 191, 125, 569]
- BackgroundColor "black"
- ShowName off
- Outputs "[1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 "
- "1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]"
- DisplayOption "bar"
- }
- Block {
- BlockType Goto
- Name "Goto1"
- Position [325, 21, 395, 49]
- GotoTag "tp435609"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto10"
- Position [325, 426, 395, 454]
- GotoTag "tp283417"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto11"
- Position [325, 471, 395, 499]
- GotoTag "tp283426"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto12"
- Position [325, 516, 395, 544]
- GotoTag "tp283428"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto13"
- Position [325, 561, 395, 589]
- GotoTag "tp283429"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto14"
- Position [325, 606, 395, 634]
- GotoTag "tp283435"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto15"
- Position [325, 651, 395, 679]
- GotoTag "tp283437"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto16"
- Position [325, 696, 395, 724]
- GotoTag "tp283439"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto17"
- Position [325, 741, 395, 769]
- GotoTag "tp283479"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto18"
- Position [325, 786, 395, 814]
- GotoTag "tp283481"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto19"
- Position [325, 831, 395, 859]
- GotoTag "tp283482"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto2"
- Position [325, 66, 395, 94]
- GotoTag "tp435612"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto20"
- Position [325, 876, 395, 904]
- GotoTag "tp283517"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto21"
- Position [325, 921, 395, 949]
- GotoTag "tp283518"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto22"
- Position [325, 966, 395, 994]
- GotoTag "tp283520"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto23"
- Position [325, 1011, 395, 1039]
- GotoTag "tp283418"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto24"
- Position [325, 1056, 395, 1084]
- GotoTag "tp283420"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto25"
- Position [325, 1101, 395, 1129]
- GotoTag "tp283421"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto26"
- Position [325, 1146, 395, 1174]
- GotoTag "tp283431"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto27"
- Position [325, 1191, 395, 1219]
- GotoTag "tp283432"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto28"
- Position [325, 1236, 395, 1264]
- GotoTag "tp283434"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto29"
- Position [325, 1281, 395, 1309]
- GotoTag "tp283440"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto3"
- Position [325, 111, 395, 139]
- GotoTag "tp435623"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto30"
- Position [325, 1326, 395, 1354]
- GotoTag "tp283442"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto31"
- Position [325, 1371, 395, 1399]
- GotoTag "tp283443"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto32"
- Position [325, 1416, 395, 1444]
- GotoTag "tp283484"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto33"
- Position [325, 1461, 395, 1489]
- GotoTag "tp283485"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto34"
- Position [325, 1506, 395, 1534]
- GotoTag "tp283487"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto35"
- Position [325, 1551, 395, 1579]
- GotoTag "tp283521"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto36"
- Position [325, 1596, 395, 1624]
- GotoTag "tp283523"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto37"
- Position [325, 1641, 395, 1669]
- GotoTag "tp283525"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto4"
- Position [325, 156, 395, 184]
- GotoTag "tp435626"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto5"
- Position [325, 201, 395, 229]
- GotoTag "tp435629"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto6"
- Position [325, 246, 395, 274]
- GotoTag "tp435604"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto7"
- Position [325, 291, 395, 319]
- GotoTag "tp283459"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto8"
- Position [325, 336, 395, 364]
- GotoTag "tp283414"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto9"
- Position [325, 381, 395, 409]
- GotoTag "tp283415"
- TagVisibility "global"
- }
- Line {
- SrcBlock "v,i"
- SrcPort 1
- DstBlock "Demux"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 1
- DstBlock "Goto1"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 2
- DstBlock "Goto2"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 3
- DstBlock "Goto3"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 4
- DstBlock "Goto4"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 5
- DstBlock "Goto5"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 6
- DstBlock "Goto6"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 7
- DstBlock "Goto7"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 8
- DstBlock "Goto8"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 9
- DstBlock "Goto9"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 10
- DstBlock "Goto10"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 11
- DstBlock "Goto11"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 12
- DstBlock "Goto12"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 13
- DstBlock "Goto13"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 14
- DstBlock "Goto14"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 15
- DstBlock "Goto15"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 16
- DstBlock "Goto16"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 17
- DstBlock "Goto17"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 18
- DstBlock "Goto18"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 19
- DstBlock "Goto19"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 20
- DstBlock "Goto20"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 21
- DstBlock "Goto21"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 22
- DstBlock "Goto22"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 23
- DstBlock "Goto23"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 24
- DstBlock "Goto24"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 25
- DstBlock "Goto25"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 26
- DstBlock "Goto26"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 27
- DstBlock "Goto27"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 28
- DstBlock "Goto28"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 29
- DstBlock "Goto29"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 30
- DstBlock "Goto30"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 31
- DstBlock "Goto31"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 32
- DstBlock "Goto32"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 33
- DstBlock "Goto33"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 34
- DstBlock "Goto34"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 35
- DstBlock "Goto35"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 36
- DstBlock "Goto36"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 37
- DstBlock "Goto37"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "conversion"
- Ports [1, 1]
- Position [345, 59, 430, 101]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "conversion"
- Location [484, 549, 719, 639]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "A4"
- PaperUnits "centimeters"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Yout"
- Position [25, 38, 55, 52]
- IconDisplay "Port number"
- }
- Block {
- BlockType Demux
- Name "Demux1"
- Ports [1, 2]
- Position [80, 26, 85, 64]
- BackgroundColor "black"
- ShowName off
- Outputs "2"
- }
- Block {
- BlockType RealImagToComplex
- Name "Real-Imag tonComplex"
- Ports [2, 1]
- Position [135, 26, 155, 64]
- ShowName off
- }
- Block {
- BlockType Outport
- Name "Complex"
- Position [180, 38, 210, 52]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Yout"
- SrcPort 1
- DstBlock "Demux1"
- DstPort 1
- }
- Line {
- SrcBlock "Real-Imag tonComplex"
- SrcPort 1
- DstBlock "Complex"
- DstPort 1
- }
- Line {
- SrcBlock "Demux1"
- SrcPort 2
- DstBlock "Real-Imag tonComplex"
- DstPort 2
- }
- Line {
- SrcBlock "Demux1"
- SrcPort 1
- DstBlock "Real-Imag tonComplex"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "conversion "
- Ports [1, 1]
- Position [110, 38, 185, 72]
- NamePlacement "alternate"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "conversion "
- Location [708, 736, 963, 843]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "A4"
- PaperUnits "centimeters"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Complex"
- Position [25, 53, 55, 67]
- IconDisplay "Port number"
- }
- Block {
- BlockType ComplexToRealImag
- Name "Complex tonReal-Imag"
- Ports [1, 2]
- Position [80, 34, 140, 81]
- ShowName off
- Output "Real and imag"
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [170, 30, 175, 85]
- NamePlacement "alternate"
- Inputs "2"
- DisplayOption "bar"
- }
- Block {
- BlockType Outport
- Name "u"
- Position [200, 53, 230, 67]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "u"
- DstPort 1
- }
- Line {
- SrcBlock "Complex"
- SrcPort 1
- DstBlock "Complex tonReal-Imag"
- DstPort 1
- }
- Line {
- SrcBlock "Complex tonReal-Imag"
- SrcPort 2
- DstBlock "Mux"
- DstPort 2
- }
- Line {
- SrcBlock "Complex tonReal-Imag"
- SrcPort 1
- DstBlock "Mux"
- DstPort 1
- }
- }
- }
- Line {
- SrcBlock "Sources"
- SrcPort 1
- DstBlock "conversion "
- DstPort 1
- }
- Line {
- SrcBlock "conversion "
- SrcPort 1
- DstBlock "Mux"
- DstPort 1
- }
- Line {
- SrcBlock "Gates"
- SrcPort 1
- DstBlock "Mux"
- DstPort 2
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "State-Space"
- DstPort 1
- }
- Line {
- SrcBlock "conversion"
- SrcPort 1
- DstBlock "Yout"
- DstPort 1
- }
- Line {
- SrcBlock "State-Space"
- SrcPort 1
- DstBlock "conversion"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Ground
- Name "Ground"
- Position [315, 40, 335, 60]
- ShowName off
- }
- Block {
- BlockType Terminator
- Name "Terminator"
- Position [355, 40, 375, 60]
- ShowName off
- }
- Line {
- SrcBlock "Ground"
- SrcPort 1
- DstBlock "Terminator"
- DstPort 1
- }
- Annotation {
- Name "Graphical user interface for the analysis o"
- "f SimPowerSystems circuits. nPlace the Powergui block in the top-level of y"
- "our model and double-clicknon it to open the GUI."
- Position [14, 29]
- HorizontalAlignment "left"
- ForegroundColor "blue"
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- }
- }
- Line {
- LineType "Connection"
- SrcBlock "Ground1"
- SrcPort LConn1
- Points [0, -5]
- DstBlock "120 kV"
- DstPort LConn1
- }
- Line {
- LineType "Connection"
- SrcBlock "120 kV"
- SrcPort RConn1
- DstBlock "2500 MVAnX0/X1=3"
- DstPort LConn1
- }
- Line {
- LineType "Connection"
- SrcBlock "120 kV"
- SrcPort RConn2
- DstBlock "2500 MVAnX0/X1=3"
- DstPort LConn2
- }
- Line {
- LineType "Connection"
- SrcBlock "120 kV"
- SrcPort RConn3
- DstBlock "2500 MVAnX0/X1=3"
- DstPort LConn3
- }
- Line {
- LineType "Connection"
- SrcBlock "3.3ohms "
- SrcPort RConn1
- DstBlock "Ground3"
- DstPort LConn1
- }
- Line {
- LineType "Connection"
- SrcBlock "GroundingnTransformernX0=4.7 Ohms"
- SrcPort LConn4
- DstBlock "3.3ohms "
- DstPort LConn1
- }
- Line {
- LineType "Connection"
- SrcBlock "B120n(120 kV)"
- SrcPort LConn1
- Points [20, 0]
- DstBlock "2500 MVAnX0/X1=3"
- DstPort RConn1
- }
- Line {
- LineType "Connection"
- SrcBlock "B120n(120 kV)"
- SrcPort LConn2
- Points [20, 0]
- DstBlock "2500 MVAnX0/X1=3"
- DstPort RConn2
- }
- Line {
- LineType "Connection"
- SrcBlock "B120n(120 kV)"
- SrcPort LConn3
- DstBlock "2500 MVAnX0/X1=3"
- DstPort RConn3
- }
- Line {
- LineType "Connection"
- SrcBlock "120 kV/25 kVn47 MVA"
- SrcPort RConn2
- Points [0, 0; 10, 0]
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "20 km line"
- DstPort LConn2
- }
- Branch {
- ConnectType "DEST_SRC"
- Points [0, 85]
- DstBlock "GroundingnTransformernX0=4.7 Ohms"
- DstPort LConn2
- }
- }
- Line {
- LineType "Connection"
- SrcBlock "120 kV/25 kVn47 MVA"
- SrcPort RConn3
- Points [0, 0; 20, 0]
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "20 km line"
- DstPort LConn3
- }
- Branch {
- ConnectType "DEST_SRC"
- Points [0, 80]
- DstBlock "GroundingnTransformernX0=4.7 Ohms"
- DstPort LConn3
- }
- }
- Line {
- LineType "Connection"
- SrcBlock "120 kV/25 kVn47 MVA"
- SrcPort RConn1
- Points [0, 0]
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "20 km line"
- DstPort LConn1
- }
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "GroundingnTransformernX0=4.7 Ohms"
- DstPort LConn1
- }
- }
- Line {
- LineType "Connection"
- SrcBlock "20 km line"
- SrcPort RConn2
- DstBlock "B25n(25 kV)"
- DstPort LConn2
- }
- Line {
- LineType "Connection"
- SrcBlock "20 km line"
- SrcPort RConn3
- DstBlock "B25n(25 kV)"
- DstPort LConn3
- }
- Line {
- LineType "Connection"
- Points [490, 115; 0, -85; -20, 0]
- DstBlock "Fault"
- DstPort LConn1
- Branch {
- ConnectType "SRC_DEST"
- SrcBlock "B25n(25 kV)"
- SrcPort RConn1
- Points [25, 0]
- }
- Branch {
- ConnectType "SRC_SRC"
- Points [0, 70]
- DstBlock "Plantn2 MVA"
- DstPort LConn1
- }
- Branch {
- ConnectType "SRC_SRC"
- DstBlock "10 km line"
- DstPort LConn1
- }
- }
- Line {
- LineType "Connection"
- Points [480, 130; 0, -85; -10, 0]
- DstBlock "Fault"
- DstPort LConn2
- Branch {
- ConnectType "SRC_DEST"
- SrcBlock "B25n(25 kV)"
- SrcPort RConn2
- Points [0, 0; 15, 0]
- }
- Branch {
- ConnectType "SRC_SRC"
- Points [0, 75]
- DstBlock "Plantn2 MVA"
- DstPort LConn2
- }
- Branch {
- ConnectType "SRC_SRC"
- DstBlock "10 km line"
- DstPort LConn2
- }
- }
- Line {
- LineType "Connection"
- Points [470, 145; 0, -85]
- DstBlock "Fault"
- DstPort LConn3
- Branch {
- ConnectType "SRC_SRC"
- DstBlock "B25n(25 kV)"
- DstPort RConn3
- }
- Branch {
- ConnectType "SRC_SRC"
- Points [0, 80]
- DstBlock "Plantn2 MVA"
- DstPort LConn3
- }
- Branch {
- ConnectType "SRC_SRC"
- DstBlock "10 km line"
- DstPort LConn3
- }
- }
- Line {
- Name "Generated P(MW)"
- Labels [1, 0]
- SrcBlock "Wind turbinenData acquisition"
- SrcPort 3
- DstBlock "Wind Turbine"
- DstPort 3
- }
- Line {
- LineType "Connection"
- SrcBlock "Loadn500 kW"
- SrcPort LConn2
- Points [0, 0; 0, -50]
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "25 kV/ 575 Vn6*2 MVA"
- DstPort RConn2
- }
- Branch {
- ConnectType "DEST_SRC"
- Points [40, 0]
- DstBlock "B575n(575 V)"
- DstPort LConn2
- }
- }
- Line {
- LineType "Connection"
- SrcBlock "Loadn500 kW"
- SrcPort LConn1
- Points [0, 0; 0, -65]
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "25 kV/ 575 Vn6*2 MVA"
- DstPort RConn1
- }
- Branch {
- ConnectType "DEST_SRC"
- Points [50, 0]
- DstBlock "B575n(575 V)"
- DstPort LConn1
- }
- }
- Line {
- LineType "Connection"
- SrcBlock "Loadn500 kW"
- SrcPort LConn3
- Points [0, 0; 0, -35]
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "25 kV/ 575 Vn6*2 MVA"
- DstPort RConn3
- }
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "B575n(575 V)"
- DstPort LConn3
- }
- }
- Line {
- Name "<Vdc (V)>"
- Labels [0, 0]
- SrcBlock "BusnSelector1"
- SrcPort 1
- DstBlock "Goto2"
- DstPort 1
- }
- Line {
- Name "<wr (pu)>"
- Labels [0, 0]
- SrcBlock "BusnSelector1"
- SrcPort 2
- DstBlock "Goto3"
- DstPort 1
- }
- Line {
- SrcBlock "Wind TurbinenDoubly-Fed Induction Generatorn("
- "Phasor Type)1"
- SrcPort 1
- DstBlock "BusnSelector1"
- DstPort 1
- }
- Line {
- Name "Vabc_B120 (pu)"
- Labels [1, 0]
- SrcBlock "GridnData acquisition"
- SrcPort 1
- DstBlock "Grid"
- DstPort 1
- }
- Line {
- Name "Vabc_B25 (pu)"
- Labels [1, 0]
- SrcBlock "GridnData acquisition"
- SrcPort 2
- DstBlock "Grid"
- DstPort 2
- }
- Line {
- Name "Vabc_B575 (pu)"
- Labels [1, 0]
- SrcBlock "GridnData acquisition"
- SrcPort 3
- DstBlock "Grid"
- DstPort 3
- }
- Line {
- Name "P_B25 (MW)"
- Labels [1, 0]
- SrcBlock "GridnData acquisition"
- SrcPort 4
- DstBlock "Grid"
- DstPort 4
- }
- Line {
- Name "Q_B25 (Mvar)"
- Labels [1, 0]
- SrcBlock "GridnData acquisition"
- SrcPort 5
- DstBlock "Grid"
- DstPort 5
- }
- Line {
- Name "Vdc (V)"
- Labels [1, 0]
- SrcBlock "From3"
- SrcPort 1
- DstBlock "Wind Turbine"
- DstPort 5
- }
- Line {
- Name "Speed (pu)"
- Labels [1, 0]
- SrcBlock "From4"
- SrcPort 1
- DstBlock "Wind Turbine"
- DstPort 6
- }
- Line {
- Name "Pos. seq. V1_B575 (pu)"
- Labels [0, 1]
- SrcBlock "Wind turbinenData acquisition"
- SrcPort 1
- DstBlock "Wind Turbine"
- DstPort 1
- }
- Line {
- Name "Pos. seq. I1_B575 (pu)"
- Labels [0, 1]
- SrcBlock "Wind turbinenData acquisition"
- SrcPort 2
- DstBlock "Wind Turbine"
- DstPort 2
- }
- Line {
- Name "Generated Q(Mvar)"
- Labels [1, 0]
- SrcBlock "Wind turbinenData acquisition"
- SrcPort 4
- DstBlock "Wind Turbine"
- DstPort 4
- }
- Line {
- LineType "Connection"
- SrcBlock "10 km line"
- SrcPort RConn1
- DstBlock "25 kV/ 575 Vn6*2 MVA"
- DstPort LConn1
- }
- Line {
- LineType "Connection"
- SrcBlock "10 km line"
- SrcPort RConn2
- DstBlock "25 kV/ 575 Vn6*2 MVA"
- DstPort LConn2
- }
- Line {
- LineType "Connection"
- SrcBlock "10 km line"
- SrcPort RConn3
- DstBlock "25 kV/ 575 Vn6*2 MVA"
- DstPort LConn3
- }
- Line {
- LineType "Connection"
- SrcBlock "B120n(120 kV)"
- SrcPort RConn1
- DstBlock "120 kV/25 kVn47 MVA"
- DstPort LConn1
- }
- Line {
- LineType "Connection"
- SrcBlock "B120n(120 kV)"
- SrcPort RConn2
- DstBlock "120 kV/25 kVn47 MVA"
- DstPort LConn2
- }
- Line {
- LineType "Connection"
- SrcBlock "B120n(120 kV)"
- SrcPort RConn3
- DstBlock "120 kV/25 kVn47 MVA"
- DstPort LConn3
- }
- Line {
- LineType "Connection"
- SrcBlock "B25n(25 kV)"
- SrcPort LConn1
- DstBlock "20 km line"
- DstPort RConn1
- }
- Line {
- SrcBlock "Wind TurbinenProtection"
- SrcPort 1
- Points [0, 0; 15, 0]
- Branch {
- DstBlock "Goto6"
- DstPort 1
- }
- Branch {
- Points [0, -30]
- DstBlock "Trip1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Wind TurbinenProtection"
- SrcPort 2
- DstBlock "Trip2"
- DstPort 1
- }
- Line {
- Name "Motor Speed (pu)"
- Labels [0, 1]
- SrcBlock "GridnData acquisition"
- SrcPort 8
- DstBlock "Grid"
- DstPort 8
- }
- Line {
- Name "I Plant pos. seq. (pu/2 MVA) "
- Labels [0, 1]
- SrcBlock "GridnData acquisition"
- SrcPort 7
- DstBlock "Grid"
- DstPort 7
- }
- Line {
- Name "V_Plant 2.3kV pos. seq. (pu)"
- Labels [0, 1]
- SrcBlock "GridnData acquisition"
- SrcPort 6
- DstBlock "Grid"
- DstPort 6
- }
- Line {
- SrcBlock "Wind Speedn(m/s)"
- SrcPort 1
- Points [5, 0]
- DstBlock "Rate Limiter"
- DstPort 1
- }
- Line {
- Name "Wind speed (m/s)"
- Labels [0, 1]
- SrcBlock "From1"
- SrcPort 1
- DstBlock "Wind Turbine"
- DstPort 7
- }
- Line {
- SrcBlock "Rate Limiter"
- SrcPort 1
- Points [5, 0; 0, 15]
- Branch {
- DstBlock "Goto1"
- DstPort 1
- }
- Branch {
- Points [0, 30]
- DstBlock "Wind TurbinenDoubly-Fed Induction Generator"
- "n(Phasor Type)1"
- DstPort 1
- }
- }
- Line {
- LineType "Connection"
- SrcBlock "B575n(575 V)"
- SrcPort RConn1
- DstBlock "Wind TurbinenDoubly-Fed Induction Generatorn("
- "Phasor Type)1"
- DstPort LConn1
- }
- Line {
- LineType "Connection"
- SrcBlock "B575n(575 V)"
- SrcPort RConn2
- Points [0, 5]
- DstBlock "Wind TurbinenDoubly-Fed Induction Generatorn("
- "Phasor Type)1"
- DstPort LConn2
- }
- Line {
- LineType "Connection"
- SrcBlock "B575n(575 V)"
- SrcPort RConn3
- Points [0, 10]
- DstBlock "Wind TurbinenDoubly-Fed Induction Generatorn("
- "Phasor Type)1"
- DstPort LConn3
- }
- Line {
- Name "<Pitch_angle (deg)>"
- Labels [1, 0]
- SrcBlock "BusnSelector1"
- SrcPort 3
- DstBlock "Goto4"
- DstPort 1
- }
- Line {
- Name "pitch angle (deg)"
- Labels [0, 1]
- SrcBlock "From2"
- SrcPort 1
- DstBlock "Wind Turbine"
- DstPort 8
- }
- Line {
- SrcBlock "From12"
- SrcPort 1
- Points [15, 0; 0, 10]
- DstBlock "Wind TurbinenDoubly-Fed Induction Generatorn("
- "Phasor Type)1"
- DstPort 2
- }
- Annotation {
- Name "9 MW Wind Farmn(6 x 1.5 MW)"
- Position [843, 244]
- ForegroundColor "red"
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- FontWeight "bold"
- }
- Annotation {
- Name "Phasor Simulation of a Wind Farm Using Doubly-F"
- "ed Induction Generator Wind Turbines"
- Position [502, 599]
- ForegroundColor "blue"
- UseDisplayTextAsClickCallback off
- FontSize 14
- FontWeight "bold"
- }
- }
- }