power_wind_dfig.mdl
资源名称:DFIGFarm.rar [点击查看]
上传用户:sdgangguan
上传日期:2017-10-18
资源大小:179k
文件大小:487k
源码类别:
能源行业(电力石油煤炭)
开发平台:
Matlab
- Block {
- BlockType Gain
- Name "Gain5"
- Position [405, 202, 455, 238]
- ShowName off
- Gain "1/3"
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [3, 1]
- Position [200, 69, 205, 121]
- ShowName off
- Inputs "3"
- DisplayOption "bar"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [675, 121, 710, 174]
- ShowName off
- Inputs "/*"
- InputSameDT off
- RndMeth "Floor"
- }
- Block {
- BlockType Product
- Name "Product1"
- Ports [2, 1]
- Position [675, 181, 710, 234]
- ShowName off
- Inputs "/*"
- InputSameDT off
- RndMeth "Floor"
- }
- Block {
- BlockType Saturate
- Name "Saturation"
- Position [605, 82, 630, 108]
- ShowName off
- UpperLimit "1e6"
- LowerLimit "1e-6"
- }
- Block {
- BlockType Selector
- Name "Selector"
- Ports [1, 1]
- Position [120, 74, 155, 86]
- ShowName off
- InputPortWidth "3"
- }
- Block {
- BlockType Selector
- Name "Selector1"
- Ports [1, 1]
- Position [120, 89, 155, 101]
- ShowName off
- Elements "2"
- InputPortWidth "3"
- }
- Block {
- BlockType Selector
- Name "Selector2"
- Ports [1, 1]
- Position [120, 104, 155, 116]
- ShowName off
- Elements "3"
- InputPortWidth "3"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [1, 1]
- Position [360, 85, 380, 105]
- ShowName off
- IconShape "round"
- Inputs "1"
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [1, 1]
- Position [360, 150, 380, 170]
- ShowName off
- IconShape "round"
- Inputs "1"
- }
- Block {
- BlockType Sum
- Name "Sum2"
- Ports [1, 1]
- Position [360, 210, 380, 230]
- ShowName off
- IconShape "round"
- Inputs "1"
- }
- Block {
- BlockType SubSystem
- Name "magnitude"
- Ports [1, 1]
- Position [490, 84, 535, 106]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "magnitude"
- 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 Four"
- "ier analysis of the input signal over a running window of one cycle of the fu"
- "ndamental frequency. First and second outputs return respectively the magnitu"
- "de and phase (degrees) of the harmonic component specified."
- MaskHelp "web(psbhelp)"
- MaskPromptString "Fundamental frequency f1 (Hz):|Ha"
- "rmonic 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 "Freq|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 "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 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 Four"
- "ier analysis of the input signal over a running window of one cycle of the fu"
- "ndamental frequency. First and second outputs return respectively the magnitu"
- "de and phase (degrees) of the harmonic component specified."
- MaskHelp "web(psbhelp)"
- MaskPromptString "Fundamental frequency f1 (Hz):|Ha"
- "rmonic 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 "Freq|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 "magnitude1"
- Ports [1, 1]
- Position [490, 149, 535, 171]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "magnitude1"
- 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 Four"
- "ier analysis of the input signal over a running window of one cycle of the fu"
- "ndamental frequency. First and second outputs return respectively the magnitu"
- "de and phase (degrees) of the harmonic component specified."
- MaskHelp "web(psbhelp)"
- MaskPromptString "Fundamental frequency f1 (Hz):|Ha"
- "rmonic 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 "Freq|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 Four"
- "ier analysis of the input signal over a running window of one cycle of the fu"
- "ndamental frequency. First and second outputs return respectively the magnitu"
- "de and phase (degrees) of the harmonic component specified."
- MaskHelp "web(psbhelp)"
- MaskPromptString "Fundamental frequency f1 (Hz):|Ha"
- "rmonic 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 "Freq|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 SubSystem
- Name "magnitude2"
- Ports [1, 1]
- Position [490, 209, 535, 231]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "magnitude2"
- 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 Four"
- "ier analysis of the input signal over a running window of one cycle of the fu"
- "ndamental frequency. First and second outputs return respectively the magnitu"
- "de and phase (degrees) of the harmonic component specified."
- MaskHelp "web(psbhelp)"
- MaskPromptString "Fundamental frequency f1 (Hz):|Ha"
- "rmonic 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 "Freq|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 "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 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 Four"
- "ier analysis of the input signal over a running window of one cycle of the fu"
- "ndamental frequency. First and second outputs return respectively the magnitu"
- "de and phase (degrees) of the harmonic component specified."
- MaskHelp "web(psbhelp)"
- MaskPromptString "Fundamental frequency f1 (Hz):|Ha"
- "rmonic 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 "Freq|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 Outport
- Name "V1"
- Position [730, 58, 760, 72]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "V2/V1"
- Position [745, 143, 775, 157]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "V0/V1"
- Position [745, 203, 775, 217]
- Port "3"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "magnitude2"
- SrcPort 1
- DstBlock "Product1"
- DstPort 2
- }
- Line {
- SrcBlock "magnitude1"
- SrcPort 1
- DstBlock "Product"
- DstPort 2
- }
- Line {
- SrcBlock "magnitude"
- SrcPort 1
- Points [50, 0]
- Branch {
- DstBlock "Saturation"
- DstPort 1
- }
- Branch {
- Points [0, -30]
- DstBlock "V1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Gain3"
- DstPort 1
- }
- Line {
- SrcBlock "Gain1"
- SrcPort 1
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "Sum1"
- SrcPort 1
- DstBlock "Gain4"
- DstPort 1
- }
- Line {
- SrcBlock "Gain2"
- SrcPort 1
- DstBlock "Sum1"
- DstPort 1
- }
- Line {
- SrcBlock "Sum2"
- SrcPort 1
- DstBlock "Gain5"
- DstPort 1
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- Points [0, 0; 20, 0]
- Branch {
- DstBlock "Gain1"
- DstPort 1
- }
- Branch {
- Points [0, 65]
- Branch {
- DstBlock "Gain2"
- DstPort 1
- }
- Branch {
- Points [0, 60]
- DstBlock "Sum2"
- DstPort 1
- }
- }
- }
- Line {
- SrcBlock "Gain3"
- SrcPort 1
- DstBlock "magnitude"
- DstPort 1
- }
- Line {
- SrcBlock "Gain4"
- SrcPort 1
- DstBlock "magnitude1"
- DstPort 1
- }
- Line {
- SrcBlock "Saturation"
- SrcPort 1
- Points [10, 0; 0, 40]
- Branch {
- DstBlock "Product"
- DstPort 1
- }
- Branch {
- Points [0, 60]
- DstBlock "Product1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Gain5"
- SrcPort 1
- DstBlock "magnitude2"
- DstPort 1
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- DstBlock "V2/V1"
- DstPort 1
- }
- Line {
- SrcBlock "Product1"
- SrcPort 1
- DstBlock "V0/V1"
- DstPort 1
- }
- Line {
- SrcBlock "abc"
- SrcPort 1
- Points [0, 0; 30, 0]
- Branch {
- DstBlock "Selector"
- DstPort 1
- }
- Branch {
- Points [0, 15]
- Branch {
- DstBlock "Selector1"
- DstPort 1
- }
- Branch {
- Points [0, 15]
- DstBlock "Selector2"
- DstPort 1
- }
- }
- }
- Line {
- SrcBlock "Selector"
- SrcPort 1
- DstBlock "Mux"
- DstPort 1
- }
- Line {
- SrcBlock "Selector1"
- SrcPort 1
- DstBlock "Mux"
- DstPort 2
- }
- Line {
- SrcBlock "Selector2"
- SrcPort 1
- DstBlock "Mux"
- DstPort 3
- }
- }
- }
- Block {
- BlockType Outport
- Name "MinV1"
- Position [590, 88, 620, 102]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "MaxV1"
- Position [585, 158, 615, 172]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "MaxV2V1"
- Position [585, 233, 615, 247]
- Port "3"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "MaxV0V1"
- Position [585, 323, 615, 337]
- Port "4"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "abc"
- SrcPort 1
- DstBlock "VoltagenMeasurement"
- DstPort 1
- }
- Line {
- SrcBlock "VoltagenMeasurement"
- SrcPort 1
- Points [65, 0]
- Branch {
- Points [0, 70]
- DstBlock "RelationalnOperator6"
- DstPort 1
- }
- Branch {
- DstBlock "RelationalnOperator7"
- DstPort 1
- }
- }
- Line {
- SrcBlock "V0/V1 max3"
- SrcPort 1
- DstBlock "RelationalnOperator6"
- DstPort 2
- }
- Line {
- SrcBlock "V0/V1 max4"
- SrcPort 1
- DstBlock "RelationalnOperator7"
- DstPort 2
- }
- Line {
- SrcBlock "V1 max"
- SrcPort 1
- DstBlock "RelationalnOperator8"
- DstPort 2
- }
- Line {
- SrcBlock "VoltagenMeasurement"
- SrcPort 2
- Points [55, 0; 0, 110]
- DstBlock "RelationalnOperator8"
- DstPort 1
- }
- Line {
- SrcBlock "V1 max1"
- SrcPort 1
- DstBlock "RelationalnOperator9"
- DstPort 2
- }
- Line {
- SrcBlock "VoltagenMeasurement"
- SrcPort 3
- Points [45, 0; 0, 165]
- DstBlock "RelationalnOperator9"
- DstPort 1
- }
- Line {
- SrcBlock "RelationalnOperator6"
- SrcPort 1
- DstBlock "On/Off Delay3"
- DstPort 1
- }
- Line {
- SrcBlock "RelationalnOperator7"
- SrcPort 1
- DstBlock "On/Off Delay2"
- DstPort 1
- }
- Line {
- SrcBlock "RelationalnOperator8"
- SrcPort 1
- DstBlock "On/Off Delay1"
- DstPort 1
- }
- Line {
- SrcBlock "RelationalnOperator9"
- SrcPort 1
- DstBlock "On/Off Delay4"
- DstPort 1
- }
- Line {
- SrcBlock "On/Off Delay3"
- SrcPort 1
- DstBlock "MaxV1"
- DstPort 1
- }
- Line {
- SrcBlock "On/Off Delay2"
- SrcPort 1
- DstBlock "MinV1"
- DstPort 1
- }
- Line {
- SrcBlock "On/Off Delay1"
- SrcPort 1
- DstBlock "MaxV2V1"
- DstPort 1
- }
- Line {
- SrcBlock "On/Off Delay4"
- SrcPort 1
- DstBlock "MaxV0V1"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Reference
- Name "Bistable"
- Ports [2, 2]
- Position [775, 173, 815, 237]
- Priority "19685924"
- SourceBlock "powerlib_extras/Control nBlocks/Bistab"
- "le"
- SourceType "Bistable Flip-Flop (Priority to Set or "
- "Reset)"
- ShowPortLabels on
- priority "Set"
- ic "0"
- }
- Block {
- BlockType Clock
- Name "Clock"
- Position [390, 565, 410, 585]
- Decimation "10"
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [375, 605, 470, 625]
- ForegroundColor "magenta"
- ShowName off
- Value "Delay_Protection"
- }
- Block {
- BlockType SubSystem
- Name "DC VoltagenProtection"
- Ports [1, 1]
- Position [165, 325, 240, 365]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "DC VoltagenProtection"
- Location [258, 405, 663, 545]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Vdc"
- Position [25, 28, 55, 42]
- IconDisplay "Port number"
- }
- Block {
- BlockType Reference
- Name "On/Off Delay4"
- Ports [1, 1]
- Position [230, 29, 270, 61]
- ShowName off
- SourceBlock "powerlib_extras/Control nBlocks/On"
- "//Off Delay"
- SourceType "On/Off Delay "
- ShowPortLabels off
- type_delay "On delay"
- delay "Delay_Vdc"
- ic "0"
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator1"
- Position [160, 23, 190, 67]
- ShowName off
- Operator ">"
- InputSameDT off
- }
- Block {
- BlockType Constant
- Name "V1 max3"
- Position [70, 45, 130, 65]
- ForegroundColor "magenta"
- ShowName off
- Value "Max_Vdc"
- }
- Block {
- BlockType Outport
- Name "MaxVdc"
- Position [305, 38, 335, 52]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "On/Off Delay4"
- SrcPort 1
- DstBlock "MaxVdc"
- DstPort 1
- }
- Line {
- SrcBlock "RelationalnOperator1"
- SrcPort 1
- DstBlock "On/Off Delay4"
- DstPort 1
- }
- Line {
- SrcBlock "V1 max3"
- SrcPort 1
- DstBlock "RelationalnOperator1"
- DstPort 2
- }
- Line {
- SrcBlock "Vdc"
- SrcPort 1
- DstBlock "RelationalnOperator1"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Decoding"
- Ports [1, 1]
- Position [705, 453, 760, 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 "MathnFunction"
- SrcPort 1
- DstBlock "Out"
- DstPort 1
- }
- Line {
- SrcBlock "RoundingnFunction"
- SrcPort 1
- DstBlock "MathnFunction"
- DstPort 1
- }
- Line {
- SrcBlock "Constant6"
- SrcPort 1
- DstBlock "MathnFunction"
- DstPort 2
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- DstBlock "RoundingnFunction"
- DstPort 1
- }
- Line {
- SrcBlock "Code"
- SrcPort 1
- DstBlock "Product"
- DstPort 1
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- DstBlock "Product"
- DstPort 2
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Encoding"
- Ports [10, 1]
- Position [440, 412, 495, 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 "Sum"
- SrcPort 1
- DstBlock "Code"
- DstPort 1
- }
- Line {
- SrcBlock "Constant12"
- SrcPort 1
- DstBlock "Product"
- DstPort 2
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "In1"
- SrcPort 1
- DstBlock "Mux"
- DstPort 1
- }
- Line {
- SrcBlock "In10"
- SrcPort 1
- DstBlock "Mux"
- DstPort 10
- }
- Line {
- SrcBlock "In9"
- SrcPort 1
- DstBlock "Mux"
- DstPort 9
- }
- Line {
- SrcBlock "In8"
- SrcPort 1
- DstBlock "Mux"
- DstPort 8
- }
- Line {
- SrcBlock "In7"
- SrcPort 1
- DstBlock "Mux"
- DstPort 7
- }
- Line {
- SrcBlock "In6"
- SrcPort 1
- DstBlock "Mux"
- DstPort 6
- }
- Line {
- SrcBlock "In5"
- SrcPort 1
- DstBlock "Mux"
- DstPort 5
- }
- Line {
- SrcBlock "In4"
- SrcPort 1
- DstBlock "Mux"
- DstPort 4
- }
- Line {
- SrcBlock "In3"
- SrcPort 1
- DstBlock "Mux"
- DstPort 3
- }
- Line {
- SrcBlock "In2"
- SrcPort 1
- DstBlock "Mux"
- DstPort 2
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Data Type Conversion"
- DstPort 1
- }
- Line {
- SrcBlock "Data Type Conversion"
- SrcPort 1
- DstBlock "Product"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Logic
- Name "LogicalnOperator"
- Ports [10, 1]
- Position [435, 26, 475, 334]
- ShowName off
- Operator "OR"
- Inputs "10"
- AllPortsSameDT off
- }
- Block {
- BlockType Logic
- Name "LogicalnOperator1"
- Ports [2, 1]
- Position [580, 169, 615, 211]
- ShowName off
- AllPortsSameDT off
- }
- Block {
- BlockType Logic
- Name "LogicalnOperator2"
- Ports [1, 1]
- Position [660, 199, 690, 221]
- ShowName off
- Operator "NOT"
- AllPortsSameDT off
- }
- Block {
- BlockType Logic
- Name "LogicalnOperator3"
- Ports [2, 1]
- Position [710, 199, 745, 241]
- ShowName off
- AllPortsSameDT off
- }
- Block {
- BlockType Memory
- Name "Memory"
- Position [870, 180, 885, 200]
- ShowName off
- InheritSampleTime on
- }
- Block {
- BlockType Memory
- Name "Memory1"
- Position [930, 180, 945, 200]
- ShowName off
- InheritSampleTime on
- }
- Block {
- BlockType Reference
- Name "Monostable"
- Ports [1, 1]
- Position [710, 344, 750, 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 [490, 576, 525, 629]
- ShowName off
- InputSameDT off
- }
- Block {
- BlockType Reference
- Name "Sample & Hold"
- Ports [2, 1]
- Position [630, 460, 670, 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 [630, 540, 670, 580]
- SourceBlock "powerlib_extras/Control nBlocks/Sample"
- " & Hold"
- SourceType "Sample & Hold "
- ShowPortLabels on
- ic "0"
- }
- Block {
- BlockType Terminator
- Name "Terminator"
- Position [830, 214, 840, 226]
- ShowName off
- }
- Block {
- BlockType SubSystem
- Name "Under/Over SpeednProtection"
- Ports [1, 2]
- Position [165, 431, 240, 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 "On/Off Delay1"
- SrcPort 1
- DstBlock "MaxSpeed"
- DstPort 1
- }
- Line {
- SrcBlock "On/Off Delay4"
- SrcPort 1
- DstBlock "MinSpeed"
- DstPort 1
- }
- Line {
- SrcBlock "Speed"
- SrcPort 1
- Points [0, 0; 10, 0]
- Branch {
- DstBlock "RelationalnOperator1"
- DstPort 1
- }
- Branch {
- Points [0, -75]
- DstBlock "RelationalnOperator3"
- DstPort 1
- }
- }
- Line {
- SrcBlock "V1 max3"
- SrcPort 1
- DstBlock "RelationalnOperator1"
- DstPort 2
- }
- Line {
- SrcBlock "V1 max1"
- SrcPort 1
- DstBlock "RelationalnOperator3"
- DstPort 2
- }
- Line {
- SrcBlock "RelationalnOperator1"
- SrcPort 1
- DstBlock "On/Off Delay1"
- DstPort 1
- }
- Line {
- SrcBlock "RelationalnOperator3"
- SrcPort 1
- DstBlock "On/Off Delay4"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Outport
- Name "Trip"
- Position [980, 183, 1010, 197]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "TripTime"
- Position [870, 553, 900, 567]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "TripStatus"
- Position [870, 473, 900, 487]
- Port "3"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Memory1"
- SrcPort 1
- DstBlock "Trip"
- DstPort 1
- }
- Line {
- SrcBlock "Vdc (V)"
- SrcPort 1
- DstBlock "DC VoltagenProtection"
- DstPort 1
- }
- Line {
- SrcBlock "DC VoltagenProtection"
- SrcPort 1
- Points [45, 0; 0, -90; 75, 0]
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 8
- }
- Branch {
- Points [0, 240]
- DstBlock "Encoding"
- DstPort 8
- }
- }
- Line {
- SrcBlock "LogicalnOperator2"
- SrcPort 1
- DstBlock "LogicalnOperator3"
- DstPort 1
- }
- Line {
- SrcBlock "Reset"
- SrcPort 1
- DstBlock "LogicalnOperator3"
- DstPort 2
- }
- Line {
- SrcBlock "LogicalnOperator3"
- SrcPort 1
- DstBlock "Bistable"
- DstPort 2
- }
- Line {
- SrcBlock "LogicalnOperator1"
- SrcPort 1
- Points [-5, 0; 25, 0]
- Branch {
- DstBlock "Bistable"
- DstPort 1
- }
- Branch {
- Points [0, 20]
- DstBlock "LogicalnOperator2"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Encoding"
- SrcPort 1
- DstBlock "Sample & Hold"
- DstPort 1
- }
- Line {
- SrcBlock "Bistable"
- SrcPort 1
- DstBlock "Memory"
- DstPort 1
- }
- Line {
- SrcBlock "Memory"
- SrcPort 1
- Points [15, 0]
- Branch {
- Points [0, 175]
- DstBlock "Monostable"
- DstPort 1
- }
- Branch {
- DstBlock "Memory1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Bistable"
- SrcPort 2
- DstBlock "Terminator"
- DstPort 1
- }
- Line {
- SrcBlock "Sample & Hold"
- SrcPort 1
- DstBlock "Decoding"
- DstPort 1
- }
- Line {
- SrcBlock "Decoding"
- SrcPort 1
- DstBlock "TripStatus"
- DstPort 1
- }
- Line {
- SrcBlock "Iabc (pu)"
- SrcPort 1
- DstBlock "AC CurrentnProtection"
- DstPort 1
- }
- Line {
- SrcBlock "Vabc (pu)"
- SrcPort 1
- DstBlock "AC VoltagenProtection"
- DstPort 1
- }
- Line {
- SrcBlock "AC CurrentnProtection"
- SrcPort 1
- Points [160, 0]
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 1
- }
- Branch {
- Points [0, 380]
- DstBlock "Encoding"
- DstPort 1
- }
- }
- Line {
- SrcBlock "AC CurrentnProtection"
- SrcPort 2
- Points [155, 0]
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 2
- }
- Branch {
- Points [0, 360]
- DstBlock "Encoding"
- DstPort 2
- }
- }
- Line {
- SrcBlock "AC CurrentnProtection"
- SrcPort 3
- Points [150, 0]
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 3
- }
- Branch {
- Points [0, 340]
- DstBlock "Encoding"
- DstPort 3
- }
- }
- Line {
- SrcBlock "AC VoltagenProtection"
- SrcPort 1
- Points [10, 0; 0, -40; 135, 0]
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 4
- }
- Branch {
- Points [0, 320]
- DstBlock "Encoding"
- DstPort 4
- }
- }
- Line {
- SrcBlock "AC VoltagenProtection"
- SrcPort 2
- Points [15, 0; 0, -35; 120, 0]
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 5
- }
- Branch {
- Points [0, 300]
- DstBlock "Encoding"
- DstPort 5
- }
- }
- Line {
- SrcBlock "AC VoltagenProtection"
- SrcPort 3
- Points [25, 0; 0, -30; 105, 0]
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 6
- }
- Branch {
- Points [0, 280]
- DstBlock "Encoding"
- DstPort 6
- }
- }
- Line {
- SrcBlock "AC VoltagenProtection"
- SrcPort 4
- Points [30, 0; 0, -25; 95, 0]
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 7
- }
- Branch {
- Points [0, 260]
- DstBlock "Encoding"
- DstPort 7
- }
- }
- Line {
- SrcBlock "Sample & Hold1"
- SrcPort 1
- DstBlock "TripTime"
- DstPort 1
- }
- Line {
- SrcBlock "Monostable"
- SrcPort 1
- Points [-105, 0; 0, 125]
- Branch {
- DstBlock "Sample & Hold"
- DstPort 2
- }
- Branch {
- Points [0, 80]
- DstBlock "Sample & Hold1"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- DstBlock "RelationalnOperator10"
- DstPort 2
- }
- Line {
- SrcBlock "Clock"
- SrcPort 1
- Points [0, 15; 50, 0]
- Branch {
- DstBlock "RelationalnOperator10"
- DstPort 1
- }
- Branch {
- Points [0, -40]
- DstBlock "Sample & Hold1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "LogicalnOperator"
- SrcPort 1
- DstBlock "LogicalnOperator1"
- DstPort 1
- }
- Line {
- SrcBlock "RelationalnOperator10"
- SrcPort 1
- Points [20, 0; 0, -405]
- DstBlock "LogicalnOperator1"
- DstPort 2
- }
- Line {
- SrcBlock "Under/Over SpeednProtection"
- SrcPort 1
- Points [70, 0; 0, -165; 45, 0]
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 9
- }
- Branch {
- Points [0, 220]
- DstBlock "Encoding"
- DstPort 9
- }
- }
- Line {
- SrcBlock "Under/Over SpeednProtection"
- SrcPort 2
- Points [80, 0; 0, -175; 30, 0]
- Branch {
- DstBlock "LogicalnOperator"
- DstPort 10
- }
- Branch {
- Points [0, 200]
- DstBlock "Encoding"
- DstPort 10
- }
- }
- Line {
- SrcBlock "Speed (pu)"
- SrcPort 1
- DstBlock "Under/Over SpeednProtection"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Reference
- Name "Three-Phase Breaker"
- Ports [1, 0, 0, 0, 0, 3, 3]
- Position [345, 101, 390, 154]
- BackgroundColor "yellow"
- SourceBlock "powerlib/Elements/Three-Phase Breaker"
- SourceType "Three-Phase Breaker"
- ShowPortLabels on
- InitialState "closed"
- SwitchA on
- SwitchB on
- SwitchC on
- SwitchTimes "[4/60 10/60]"
- External on
- BreakerResistance "0.001"
- SnubberResistance "inf"
- SnubberCapacitance "inf"
- Measurements "None"
- }
- Block {
- BlockType Display
- Name "Trip1"
- Ports [1]
- Position [310, 387, 370, 413]
- ShowName off
- FontName "Arial"
- FontSize 12
- Decimation "1"
- Lockdown off
- }
- Block {
- BlockType Display
- Name "TripData"
- Ports [1]
- Position [400, 387, 440, 613]
- FontName "Arial"
- FontSize 12
- Decimation "1"
- Lockdown off
- }
- Block {
- BlockType Fcn
- Name "wm^2"
- Position [595, 41, 640, 59]
- Orientation "left"
- Expr "u(1)^2"
- }
- Block {
- BlockType PMIOPort
- Name "A"
- Position [40, 88, 70, 102]
- Port "1"
- Side "Left"
- }
- Block {
- BlockType PMIOPort
- Name "B"
- Position [40, 138, 70, 152]
- Port "2"
- Side "Left"
- }
- Block {
- BlockType PMIOPort
- Name "C"
- Position [40, 188, 70, 202]
- Port "3"
- Side "Left"
- }
- Line {
- LineType "Connection"
- SrcBlock "265 ohms"
- SrcPort LConn1
- Points [0, -35]
- DstBlock "25/2.3 kVn2.5 MVA"
- DstPort RConn4
- }
- Line {
- LineType "Connection"
- SrcBlock "Ground"
- SrcPort LConn1
- DstBlock "265 ohms"
- DstPort RConn1
- }
- Line {
- LineType "Connection"
- SrcBlock "A"
- SrcPort RConn1
- DstBlock "25/2.3 kVn2.5 MVA"
- DstPort LConn1
- }
- Line {
- LineType "Connection"
- SrcBlock "B"
- SrcPort RConn1
- DstBlock "25/2.3 kVn2.5 MVA"
- DstPort LConn2
- }
- Line {
- LineType "Connection"
- SrcBlock "C"
- SrcPort RConn1
- DstBlock "25/2.3 kVn2.5 MVA"
- DstPort LConn3
- }
- Line {
- SrcBlock "1.68 MW 0.93 PFn 2300 V"
- SrcPort 1
- DstBlock "BusnSelector"
- DstPort 1
- }
- Line {
- Name "<Rotor speed (wm)>"
- Labels [0, 0]
- SrcBlock "BusnSelector"
- SrcPort 1
- Points [45, 0]
- Branch {
- Points [0, -75]
- DstBlock "wm^2"
- DstPort 1
- }
- Branch {
- DstBlock "Goto6"
- DstPort 1
- }
- }
- Line {
- SrcBlock "wm^2"
- SrcPort 1
- DstBlock "Gain"
- DstPort 1
- }
- Line {
- SrcBlock "From9"
- SrcPort 1
- DstBlock "Plant & Motor nProtection"
- DstPort 1
- }
- Line {
- SrcBlock "From7"
- SrcPort 1
- DstBlock "Plant & Motor nProtection"
- DstPort 2
- }
- Line {
- SrcBlock "Ground1"
- SrcPort 1
- DstBlock "Plant & Motor nProtection"
- DstPort 3
- }
- Line {
- SrcBlock "Ground2"
- SrcPort 1
- DstBlock "Plant & Motor nProtection"
- DstPort 4
- }
- Line {
- SrcBlock "From1"
- SrcPort 1
- DstBlock "Plant & Motor nProtection"
- DstPort 5
- }
- Line {
- SrcBlock "Plant & Motor nProtection"
- SrcPort 1
- DstBlock "LogicalnOperator"
- DstPort 1
- }
- Line {
- SrcBlock "From2"
- SrcPort 1
- Points [0, 30]
- DstBlock "Three-Phase Breaker"
- DstPort 1
- }
- Line {
- SrcBlock "Plant & Motor nProtection"
- SrcPort 2
- DstBlock "Trip1"
- DstPort 1
- }
- Line {
- SrcBlock "Plant & Motor nProtection"
- SrcPort 3
- Points [30, 0; 0, 55]
- DstBlock "TripData"
- DstPort 1
- }
- Line {
- SrcBlock "Data Type Conversion"
- SrcPort 1
- DstBlock "Goto1"
- DstPort 1
- }
- Line {
- SrcBlock "LogicalnOperator"
- SrcPort 1
- DstBlock "Data Type Conversion"
- DstPort 1
- }
- Line {
- LineType "Connection"
- SrcBlock "25/2.3 kVn2.5 MVA"
- SrcPort RConn1
- Points [0, 0; 45, 0]
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "B2300"
- DstPort LConn1
- }
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "PF CorrectionnCapacitorn800 kvar"
- DstPort LConn1
- }
- }
- Line {
- LineType "Connection"
- SrcBlock "25/2.3 kVn2.5 MVA"
- SrcPort RConn2
- Points [0, 0; 60, 0]
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "B2300"
- DstPort LConn2
- }
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "PF CorrectionnCapacitorn800 kvar"
- DstPort LConn2
- }
- }
- Line {
- LineType "Connection"
- Labels [0, 0]
- SrcBlock "B2300"
- SrcPort LConn3
- Points [35, 0; -40, 0]
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "25/2.3 kVn2.5 MVA"
- DstPort RConn3
- }
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "PF CorrectionnCapacitorn800 kvar"
- DstPort LConn3
- }
- }
- Line {
- LineType "Connection"
- SrcBlock "B2300"
- SrcPort RConn1
- DstBlock "Three-Phase Breaker"
- DstPort LConn1
- }
- Line {
- LineType "Connection"
- SrcBlock "B2300"
- SrcPort RConn2
- DstBlock "Three-Phase Breaker"
- DstPort LConn2
- }
- Line {
- LineType "Connection"
- SrcBlock "B2300"
- SrcPort RConn3
- DstBlock "Three-Phase Breaker"
- DstPort LConn3
- }
- Line {
- SrcBlock "Gain"
- SrcPort 1
- Points [-15, 0; 0, 50]
- DstBlock "1.68 MW 0.93 PFn 2300 V"
- DstPort 1
- }
- Line {
- LineType "Connection"
- SrcBlock "Three-Phase Breaker"
- SrcPort RConn1
- Points [5, 0; 25, 0]
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "1.68 MW 0.93 PFn 2300 V"
- DstPort LConn1
- }
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "200 kW"
- DstPort LConn1
- }
- }
- Line {
- LineType "Connection"
- SrcBlock "Three-Phase Breaker"
- SrcPort RConn2
- Points [5, 0; 40, 0]
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "1.68 MW 0.93 PFn 2300 V"
- DstPort LConn2
- }
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "200 kW"
- DstPort LConn2
- }
- }
- Line {
- LineType "Connection"
- SrcBlock "Three-Phase Breaker"
- SrcPort RConn3
- Points [5, 0; 55, 0]
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "1.68 MW 0.93 PFn 2300 V"
- DstPort LConn3
- }
- Branch {
- ConnectType "DEST_SRC"
- DstBlock "200 kW"
- DstPort LConn3
- }
- }
- Annotation {
- Name "Instantaneous AC Overcurrent"
- Position [532, 400]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "AC Overcurrent (positive-sequence)"
- Position [544, 423]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "AC Current Unbalance"
- Position [509, 443]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "AC Undervoltage (positive-sequence)"
- Position [549, 464]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "AC Overvoltage (positive-sequence)"
- Position [545, 483]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "AC Voltage Unbalance (Negative-sequence)"
- Position [567, 506]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "AC Voltage Unbalance (Zero-sequence)"
- Position [558, 526]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "DC Overvoltage"
- Position [493, 546]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "Under Speed"
- Position [486, 568]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- Annotation {
- Name "Over Speed"
- Position [481, 588]
- UseDisplayTextAsClickCallback off
- FontName "Arial"
- FontSize 12
- }
- }
- }
- Block {
- BlockType RateLimiter
- Name "Rate Limiter"
- Position [740, 20, 760, 40]
- ShowName off
- }
- Block {
- BlockType Display
- Name "Trip1"
- Ports [1]
- Position [910, 317, 1005, 343]
- ShowName off
- FontName "Arial"
- FontSize 12
- Decimation "1"
- Lockdown off
- }
- Block {
- BlockType Display
- Name "Trip2"
- Ports [1]
- Position [910, 407, 1010, 433]
- ShowName off
- FontName "Arial"
- FontSize 12
- Decimation "1"
- Lockdown off
- }
- Block {
- BlockType Step
- Name "Wind Speedn(m/s)"
- Position [680, 15, 710, 45]
- BackgroundColor "lightBlue"
- Time "5"
- Before "8"
- After "14"
- SampleTime "0"
- }
- Block {
- BlockType Scope
- Name "Wind Turbine"
- Ports [8]
- Position [620, 325, 680, 540]
- BackgroundColor "green"
- Floating off
- Location [-3, 48, 1277, 765]
- Open off
- NumInputPorts "8"
- ZoomMode "yonly"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- axes2 "%<SignalLabel>"
- axes3 "%<SignalLabel>"
- axes4 "%<SignalLabel>"
- axes5 "%<SignalLabel>"
- axes6 "%<SignalLabel>"
- axes7 "%<SignalLabel>"
- axes8 "%<SignalLabel>"
- }
- TimeRange "50"
- YMin "0~0~0~-5~1100~0.5~5~0"
- YMax "1.2~1.3~10~5~1300~1.5~20~2"
- DataFormat "StructureWithTime"
- LimitDataPoints off
- SampleTime "0"
- }
- Block {
- BlockType Reference
- Name "Wind TurbinenDoubly-Fed Induction Generatorn("
- "Phasor Type)1"
- Ports [2, 1, 0, 0, 0, 3]
- Position [800, 61, 865, 169]
- BackgroundColor "lightBlue"
- SourceBlock "DRlib/Wind Generation/Wind TurbinenDoubly-Fed "
- "Induction Generatorn(Phasor Type)"
- SourceType "Wind Turbine Doubly-Fed Induction Generator (Ph"
- "asor Type)"
- ShowPortLabels on
- ShowParameters "Generator data"
- nom "[6*1.5e6/0.9 575 60]"
- sta "[ 0.00706 0.171]"
- rot "[ 0.005 0.156]"
- Lm "2.9"
- mec "[5.04 0.01 3]"
- init "[0.2 0 0 0 0 0]"
- Pmax "0.5"
- Lchoke "[0.15 0.15/100]"
- init_inductor "[0 90]"
- Vdc_nom "1200"
- capacitor "6*10000e-6"
- ExternalTm off
- DisplayTurbChar off
- speed_power "[0 0; 0.24 0.007; 0.36 0.024; 0.6 0.112; 0.96 0"
- ".46; 1.2 0.898; 1.5 0.898]"
- Pmec "6*1.5e6"
- speed_ABCD "[0.7 0.71 1.2 1.21]"
- power_C "0.73"
- wind_point_C "12"
- pitch_gain "500"
- pitch_max "45"
- pitch_rate "2"
- ControlVQ "Voltage regulation"
- ExternalVref off
- Vref "1.0"
- ExternalQref off
- Qref "0"
- ExternalIqref off
- Iq_ref "0"
- Kpi_volt_reg "[1.25 300]"
- Xs "0.02"
- Kpi_Q "[0.05 5]"
- Kpi_power_reg "[1 100]"
- Kpi_dc_reg "[0.002 0.05]"
- Kpi_grid_side_cur_reg "[1 100]"
- Kpi_rotor_side_cur_reg "[0.3 8]"
- V_slew_rate "100"
- Q_slew_rate "100"
- power_slew_rate "1"
- current_slew_rate "200"
- }
- Block {
- BlockType SubSystem
- Name "Wind TurbinenProtection"
- Ports [0, 2]
- Position [780, 331, 865, 449]
- ForegroundColor "blue"
- DropShadow on
- ShowName off
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskDisplay "disp('Wind\nTurbine\nProtection')"
- MaskIconFrame on
- MaskIconOpaque off
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- System {
- Name "Wind TurbinenProtection"
- Location [425, 136, 1071, 529]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType From
- Name "From10"
- Position [20, 92, 80, 108]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Vdc"
- }
- Block {
- BlockType From
- Name "From11"
- Position [20, 152, 80, 168]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "wr"
- }
- Block {
- BlockType From
- Name "From7"
- Position [20, 61, 90, 79]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Iabc_B575"
- }
- Block {
- BlockType From
- Name "From9"
- Position [20, 31, 90, 49]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Vabc_B575"
- }
- Block {
- BlockType Ground
- Name "Ground2"
- Position [75, 123, 85, 137]
- ShowName off
- }
- Block {
- BlockType SubSystem
- Name "ProtectionnSystem"
- Ports [5, 3]
- Position [115, 29, 215, 171]
- BackgroundColor "cyan"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Protection System"
- MaskDescription "Protection type:n1. Instantaneous AC Ov"
- "ercurrentn2. AC Overcurrent (positive-sequence)n3. AC Current Unbalan"
- "cen4. AC Undervoltage (positive-sequence)n5. AC Overvoltage (positive"
- "-sequence)n6. AC Voltage Unbalance (Negative-sequence)n7. AC Voltage "
- "Unbalance (Zero-sequence)n8. DC Overvoltage n9. Under Speedn10. Ove"
- "r Speedn"
- MaskPromptString "Fundamental frequency f1 (Hz):|Instantaneou"
- "s AC Overcurrent (pu):|Maximum AC Current [ I1max(pu), Delay(s) ]:|Maximum AC"
- " Current Unbalance [ I2/I1max(pu), Delay(s) ]|AC Under/Over Voltage [ V1min(p"
- "u), V1max(pu), Delay(s) ]:|Maximum Voltage Unbalance [ V2/V1max(pu), V0/V1max"
- "(pu), Delay(s)]:|Maximum DC Voltage [ Vmax(V), Delay(s) ]:|Under/Over Speed "
- "[ Speedmin (pu), Speedmax (pu), Delay(s)]:|Start time for protection system ("
- "s):"
- MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit,edi"
- "t"
- MaskTunableValueString "on,on,on,on,on,on,on,on,on"
- MaskCallbackString "||||||||"
- MaskEnableString "on,on,on,on,on,on,on,on,on"
- MaskVisibilityString "on,on,on,on,on,on,on,on,on"
- MaskToolTipString "on,on,on,on,on,on,on,on,on"
- MaskVarAliasString ",,,,,,,,"
- MaskVariables "Freq=@1;Max_Iinst=@2;MaxI1=@3;MaxI2I1=@4;Mi"
- "nMaxV1=@5;MaxV2V1=@6;MaxVdc=@7;MaxSpeed=@8;Delay_Protection=@9;"
- MaskInitialization "a=exp(2*pi*j/3);na2=a^2;nMax_I1=MaxI1(1);"
- "nDelay_I1=MaxI1(2);nMax_I2_I1=MaxI2I1(1);nDelay_I2_I1=MaxI2I1(2);nMin_V1="
- "MinMaxV1(1);nMax_V1=MinMaxV1(2);nDelay_V1=MinMaxV1(3);nMax_V2_V1=MaxV2V1(1"
- ");nMax_V0_V1=MaxV2V1(2);nDelay_V2_V1=MaxV2V1(3);nMax_Vdc=MaxVdc(1);nDelay"
- "_Vdc=MaxVdc(2);nMin_Speed=MaxSpeed(1);nMax_Speed=MaxSpeed(2);nDelay_Speed="
- "MaxSpeed(3);n"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "60|10|[ 1.1, 5 ]|[ 0.4, 0.2]|[ 0.75, 1.1, 0"
- ".1 ]|[ 0.05, 0.05, 0.2 ]|[ 1900, 0.001 ]|[ 0.3, 1.5, 5 ]|5"
- MaskTabNameString ",,,,,,,,"
- System {
- Name "ProtectionnSystem"
- Location [22, 179, 1013, 854]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Vabc (pu)"
- Position [30, 208, 60, 222]
- IconDisplay "Port number"
- PortDimensions "3"
- }
- Block {
- BlockType Inport
- Name "Iabc (pu)"
- Position [30, 68, 60, 82]
- Port "2"
- IconDisplay "Port number"
- PortDimensions "3"
- }
- Block {
- BlockType Inport
- Name "Vdc (V)"
- Position [30, 338, 60, 352]
- Port "3"
- IconDisplay "Port number"
- PortDimensions "1"
- }
- Block {
- BlockType Inport
- Name "Reset"
- Position [545, 223, 575, 237]
- Port "4"
- IconDisplay "Port number"
- PortDimensions "1"
- }
- Block {
- BlockType Inport
- Name "Speed (pu)"
- Position [30, 463, 60, 477]
- Port "5"
- IconDisplay "Port number"
- PortDimensions "1"
- }
- Block {
- BlockType SubSystem
- Name "AC CurrentnProtection"
- Ports [1, 3]
- Position [100, 27, 175, 123]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "AC CurrentnProtection"
- Location [366, 109, 1176, 404]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "abc"
- Position [40, 193, 70, 207]
- IconDisplay "Port number"
- PortDimensions "3"
- }
- Block {
- BlockType ComplexToMagnitudeAngle
- Name "Complex tonMagnitude-Angle1"
- Ports [1, 1]
- Position [240, 68, 265, 92]
- ShowName off
- Output "Magnitude"
- }
- Block {
- BlockType SubSystem
- Name "CurrentnMeasurement"
- Ports [1, 2]
- Position [150, 181, 210, 214]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "CurrentnMeasurement"
- Location [278, 268, 1122, 478]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "abc"
- Position [15, 43, 45, 57]
- IconDisplay "Port number"
- PortDimensions "3"
- }
- Block {
- BlockType Gain
- Name "Gain1"
- Position [275, 45, 345, 85]
- Gain "[1 a a2]"
- }
- Block {
- BlockType Gain
- Name "Gain2"
- Position [275, 110, 345, 150]
- Gain "[1 a2 a]"
- }
- Block {
- BlockType Gain
- Name "Gain3"
- Position [430, 47, 480, 83]
- ShowName off
- Gain "1/3"
- }
- Block {
- BlockType Gain
- Name "Gain4"
- Position [430, 112, 480, 148]
- ShowName off
- Gain "1/3"
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [3, 1]
- Position [170, 39, 175, 91]
- ShowName off
- Inputs "3"
- DisplayOption "bar"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [670, 91, 705, 144]
- ShowName off
- Inputs "/*"
- InputSameDT off
- RndMeth "Floor"
- }
- Block {
- BlockType Saturate
- Name "Saturation"
- Position [600, 52, 625, 78]
- ShowName off
- UpperLimit "1e6"
- LowerLimit "1e-6"
- }
- Block {
- BlockType Selector
- Name "Selector"
- Ports [1, 1]
- Position [100, 44, 135, 56]
- ShowName off
- InputPortWidth "3"
- }
- Block {
- BlockType Selector
- Name "Selector1"
- Ports [1, 1]
- Position [100, 59, 135, 71]
- ShowName off
- Elements "2"
- InputPortWidth "3"
- }
- Block {
- BlockType Selector
- Name "Selector2"
- Ports [1, 1]
- Position [100, 74, 135, 86]
- ShowName off
- Elements "3"
- InputPortWidth "3"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [1, 1]
- Position [375, 55, 395, 75]
- ShowName off
- IconShape "round"
- Inputs "1"
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [1, 1]
- Position [375, 120, 395, 140]
- ShowName off
- IconShape "round"
- Inputs "1"
- }
- Block {
- BlockType SubSystem
- Name "magnitude"
- Ports [1, 1]
- Position [520, 54, 565, 76]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "magnitude"
- 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 Four"
- "ier analysis of the input signal over a running window of one cycle of the fu"
- "ndamental frequency. First and second outputs return respectively the magnitu"
- "de and phase (degrees) of the harmonic component specified."
- MaskHelp "web(psbhelp)"
- MaskPromptString "Fundamental frequency f1 (Hz):|Ha"
- "rmonic 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 "Freq|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"