power_wind_ig.mdl
资源名称:DFIGFarm.rar [点击查看]
上传用户:sdgangguan
上传日期:2017-10-18
资源大小:179k
文件大小:676k
源码类别:
能源行业(电力石油煤炭)
开发平台:
Matlab
- 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 "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 "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 "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 "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 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 "Selector2"
- SrcPort 1
- DstBlock "Mux"
- DstPort 3
- }
- Line {
- SrcBlock "Selector1"
- SrcPort 1
- DstBlock "Mux"
- DstPort 2
- }
- Line {
- SrcBlock "Selector"
- SrcPort 1
- DstBlock "Mux"
- DstPort 1
- }
- Line {
- SrcBlock "abc"
- SrcPort 1
- Points [0, 0; 30, 0]
- Branch {
- Points [0, 15]
- Branch {
- Points [0, 15]
- DstBlock "Selector2"
- DstPort 1
- }
- Branch {
- DstBlock "Selector1"
- DstPort 1
- }
- }
- Branch {
- DstBlock "Selector"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Product1"
- SrcPort 1
- DstBlock "V0/V1"
- DstPort 1
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- DstBlock "V2/V1"
- DstPort 1
- }
- Line {
- SrcBlock "Gain5"
- SrcPort 1
- DstBlock "magnitude2"
- DstPort 1
- }
- Line {
- SrcBlock "Saturation"
- SrcPort 1
- Points [10, 0; 0, 40]
- Branch {
- Points [0, 60]
- DstBlock "Product1"
- DstPort 1
- }
- Branch {
- DstBlock "Product"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Gain4"
- SrcPort 1
- DstBlock "magnitude1"
- DstPort 1
- }
- Line {
- SrcBlock "Gain3"
- SrcPort 1
- DstBlock "magnitude"
- DstPort 1
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- Points [0, 0; 20, 0]
- Branch {
- Points [0, 65]
- Branch {
- Points [0, 60]
- DstBlock "Sum2"
- DstPort 1
- }
- Branch {
- DstBlock "Gain2"
- DstPort 1
- }
- }
- Branch {
- DstBlock "Gain1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Sum2"
- SrcPort 1
- DstBlock "Gain5"
- DstPort 1
- }
- Line {
- SrcBlock "Gain2"
- SrcPort 1
- DstBlock "Sum1"
- DstPort 1
- }
- Line {
- SrcBlock "Sum1"
- SrcPort 1
- DstBlock "Gain4"
- DstPort 1
- }
- Line {
- SrcBlock "Gain1"
- SrcPort 1
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Gain3"
- DstPort 1
- }
- Line {
- SrcBlock "magnitude"
- SrcPort 1
- Points [50, 0]
- Branch {
- Points [0, -30]
- DstBlock "V1"
- DstPort 1
- }
- Branch {
- DstBlock "Saturation"
- DstPort 1
- }
- }
- Line {
- SrcBlock "magnitude1"
- SrcPort 1
- DstBlock "Product"
- DstPort 2
- }
- Line {
- SrcBlock "magnitude2"
- SrcPort 1
- DstBlock "Product1"
- DstPort 2
- }
- }
- }
- 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 "On/Off Delay4"
- SrcPort 1
- DstBlock "MaxV0V1"
- DstPort 1
- }
- Line {
- SrcBlock "On/Off Delay1"
- SrcPort 1
- DstBlock "MaxV2V1"
- DstPort 1
- }
- Line {
- SrcBlock "On/Off Delay2"
- SrcPort 1
- DstBlock "MinV1"
- DstPort 1
- }
- Line {
- SrcBlock "On/Off Delay3"
- SrcPort 1
- DstBlock "MaxV1"
- DstPort 1
- }
- Line {
- SrcBlock "RelationalnOperator9"
- SrcPort 1
- DstBlock "On/Off Delay4"
- DstPort 1
- }
- Line {
- SrcBlock "RelationalnOperator8"
- SrcPort 1
- DstBlock "On/Off Delay1"
- DstPort 1
- }
- Line {
- SrcBlock "RelationalnOperator7"
- SrcPort 1
- DstBlock "On/Off Delay2"
- DstPort 1
- }
- Line {
- SrcBlock "RelationalnOperator6"
- SrcPort 1
- DstBlock "On/Off Delay3"
- DstPort 1
- }
- Line {
- SrcBlock "VoltagenMeasurement"
- SrcPort 3
- Points [45, 0; 0, 165]
- DstBlock "RelationalnOperator9"
- DstPort 1
- }
- Line {
- SrcBlock "V1 max1"
- SrcPort 1
- DstBlock "RelationalnOperator9"
- DstPort 2
- }
- Line {
- SrcBlock "VoltagenMeasurement"
- SrcPort 2
- Points [55, 0; 0, 110]
- DstBlock "RelationalnOperator8"
- DstPort 1
- }
- Line {
- SrcBlock "V1 max"
- SrcPort 1
- DstBlock "RelationalnOperator8"
- DstPort 2
- }
- Line {
- SrcBlock "V0/V1 max4"
- SrcPort 1
- DstBlock "RelationalnOperator7"
- DstPort 2
- }
- Line {
- SrcBlock "V0/V1 max3"
- SrcPort 1
- DstBlock "RelationalnOperator6"
- DstPort 2
- }
- Line {
- SrcBlock "VoltagenMeasurement"
- SrcPort 1
- Points [65, 0]
- Branch {
- DstBlock "RelationalnOperator7"
- DstPort 1
- }
- Branch {
- Points [0, 70]
- DstBlock "RelationalnOperator6"
- DstPort 1
- }
- }
- Line {
- SrcBlock "abc"
- SrcPort 1
- DstBlock "VoltagenMeasurement"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Reference
- Name "Bistable"
- Ports [2, 2]
- Position [710, 173, 750, 237]
- Priority "0"
- SourceBlock "powerlib_extras/Control nBlocks/Bi"
- "stable"
- SourceType "Bistable Flip-Flop (Priority to Set"
- " or Reset)"
- ShowPortLabels on
- priority "Set"
- ic "0"
- }
- Block {
- BlockType Clock
- Name "Clock"
- Position [325, 565, 345, 585]
- Decimation "10"
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [310, 605, 405, 625]
- ForegroundColor "magenta"
- ShowName off
- Value "Delay_Protection"
- }
- Block {
- BlockType SubSystem
- Name "DC VoltagenProtection"
- Ports [1, 1]
- Position [100, 325, 175, 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 "Vdc"
- SrcPort 1
- DstBlock "RelationalnOperator1"
- DstPort 1
- }
- Line {
- SrcBlock "V1 max3"
- SrcPort 1
- DstBlock "RelationalnOperator1"
- DstPort 2
- }
- Line {
- SrcBlock "RelationalnOperator1"
- SrcPort 1
- DstBlock "On/Off Delay4"
- DstPort 1
- }
- Line {
- SrcBlock "On/Off Delay4"
- SrcPort 1
- DstBlock "MaxVdc"
- DstPort 1
- }
- }
- }
- 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/Mo"
- "nostable"
- 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/Sa"
- "mple & 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/Sa"
- "mple & 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 SubSystem
- Name "ProtectionnSystem3"
- Ports [5, 3]
- Position [125, 543, 215, 667]
- BackgroundColor "cyan"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Protection System"
- MaskDescription "Protection type:n1. Instantaneous A"
- "C Overcurrentn2. AC Overcurrent (positive-sequence)n3. AC Current Unb"
- "alancen4. AC Undervoltage (positive-sequence)n5. AC Overvoltage (posi"
- "tive-sequence)n6. AC Voltage Unbalance (Negative-sequence)n7. AC Volt"
- "age Unbalance (Zero-sequence)n8. DC Overvoltage n9. Under Speedn10. "
- " Over Speedn"
- MaskPromptString "Fundamental frequency f1 (Hz):|Instanta"
- "neous AC Overcurrent (pu):|Maximum AC Current [ I1max(pu), Delay(s) ]:|Maximu"
- "m AC Current Unbalance [ I2/I1max(pu), Delay(s) ]|AC Under/Over Voltage [ V1m"
- "in(pu), V1max(pu), Delay(s) ]:|Maximum Voltage Unbalance [ V2/V1max(pu), V0/V"
- "1max(pu), Delay(s)]:|Maximum DC Voltage [ Vmax(V), Delay(s) ]:|Under/Over Sp"
- "eed [ Speedmin (pu), Speedmax (pu), Delay(s)]:|Start time for protection syst"
- "em (s):"
- MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit"
- ",edit"
- 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;MinMaxV1=@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=MaxV2"
- "V1(1);nMax_V0_V1=MaxV2V1(2);nDelay_V2_V1=MaxV2V1(3);nMax_Vdc=MaxVdc(1);nD"
- "elay_Vdc=MaxVdc(2);nMin_Speed=MaxSpeed(1);nMax_Speed=MaxSpeed(2);nDelay_Sp"
- "eed=MaxSpeed(3);n"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "60|10|[ 1.1, 10 ]|[ 0.4, 0.2]|[ 0.75, 1"
- ".1, 0.1 ]|[ 0.05, 0.05, 0.2 ]|[ 1900, 0.001 ]|[ 1, 1.05, 5 ]|5"
- MaskTabNameString ",,,,,,,,"
- System {
- Name "ProtectionnSystem3"
- 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, 269, 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 "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 [520, 119, 565, 141]
- 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]