power_wind_dfig.mdl
资源名称:DFIGFarm.rar [点击查看]
上传用户:sdgangguan
上传日期:2017-10-18
资源大小:179k
文件大小:487k
源码类别:
能源行业(电力石油煤炭)
开发平台:
Matlab
- 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 "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]
- 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 "I1"
- Position [750, 38, 780, 52]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "I2/I1"
- Position [750, 113, 780, 127]
- Port "2"
- 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 "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 "abc"
- SrcPort 1
- Points [0, 0; 25, 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 "Mux"
- SrcPort 1
- Points [45, 0; 20, 0]
- Branch {
- DstBlock "Gain1"
- DstPort 1
- }
- Branch {
- Points [0, 65]
- DstBlock "Gain2"
- 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]
- DstBlock "Product"
- DstPort 1
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- DstBlock "I2/I1"
- DstPort 1
- }
- Line {
- SrcBlock "magnitude1"
- SrcPort 1
- DstBlock "Product"
- DstPort 2
- }
- Line {
- SrcBlock "magnitude"
- SrcPort 1
- Points [10, 0]
- Branch {
- DstBlock "Saturation"
- DstPort 1
- }
- Branch {
- Points [0, -20]
- DstBlock "I1"
- DstPort 1
- }
- }
- }
- }
- Block {
- BlockType MinMax
- Name "MinMax"
- Ports [1, 1]
- Position [305, 65, 335, 95]
- Function "max"
- ZeroCross off
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [3, 1]
- Position [200, 35, 205, 125]
- ShowName off
- Inputs "3"
- DisplayOption "bar"
- }
- Block {
- BlockType Reference
- Name "On/Off Delay"
- Ports [1, 1]
- Position [490, 159, 530, 191]
- ShowName off
- SourceBlock "powerlib_extras/Control nBlocks/On"
- "//Off Delay"
- SourceType "On/Off Delay "
- ShowPortLabels off
- type_delay "On delay"
- delay "Delay_I1"
- ic "0"
- }
- Block {
- BlockType Reference
- Name "On/Off Delay2"
- Ports [1, 1]
- Position [490, 224, 530, 256]
- ShowName off
- SourceBlock "powerlib_extras/Control nBlocks/On"
- "//Off Delay"
- SourceType "On/Off Delay "
- ShowPortLabels off
- type_delay "On delay"
- delay "Delay_I2_I1"
- ic "0"
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator10"
- Position [475, 68, 505, 112]
- ShowName off
- Operator ">"
- InputSameDT off
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator6"
- Position [410, 153, 440, 197]
- ShowName off
- Operator ">"
- InputSameDT off
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator8"
- Position [410, 218, 440, 262]
- ShowName off
- Operator ">"
- InputSameDT off
- }
- Block {
- BlockType Selector
- Name "Selector"
- Ports [1, 1]
- Position [130, 44, 165, 56]
- ShowName off
- InputPortWidth "3"
- }
- Block {
- BlockType Selector
- Name "Selector1"
- Ports [1, 1]
- Position [130, 74, 165, 86]
- ShowName off
- Elements "2"
- InputPortWidth "3"
- }
- Block {
- BlockType Selector
- Name "Selector2"
- Ports [1, 1]
- Position [130, 104, 165, 116]
- ShowName off
- Elements "3"
- InputPortWidth "3"
- }
- Block {
- BlockType Constant
- Name "V0/V1 max3"
- Position [315, 175, 380, 195]
- ForegroundColor "magenta"
- ShowName off
- Value "Max_I1"
- }
- Block {
- BlockType Constant
- Name "V1 max"
- Position [320, 240, 380, 260]
- ForegroundColor "magenta"
- ShowName off
- Value "Max_I2_I1"
- }
- Block {
- BlockType Constant
- Name "V1 max2"
- Position [390, 90, 450, 110]
- ForegroundColor "magenta"
- ShowName off
- Value "Max_Iinst"
- }
- Block {
- BlockType Outport
- Name "MaxIinst"
- Position [580, 83, 610, 97]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "MaxI1"
- Position [580, 168, 610, 182]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "MaxI2I1"
- Position [580, 233, 610, 247]
- Port "3"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "abc"
- SrcPort 1
- Points [25, 0]
- Branch {
- DstBlock "CurrentnMeasurement"
- DstPort 1
- }
- Branch {
- Points [0, -90]
- Branch {
- Points [0, -30]
- Branch {
- Points [0, -30]
- DstBlock "Selector"
- DstPort 1
- }
- Branch {
- DstBlock "Selector1"
- DstPort 1
- }
- }
- Branch {
- DstBlock "Selector2"
- DstPort 1
- }
- }
- }
- Line {
- SrcBlock "CurrentnMeasurement"
- SrcPort 1
- Points [20, 0; 0, -25]
- DstBlock "RelationalnOperator6"
- DstPort 1
- }
- Line {
- SrcBlock "V0/V1 max3"
- SrcPort 1
- DstBlock "RelationalnOperator6"
- DstPort 2
- }
- Line {
- SrcBlock "V1 max"
- SrcPort 1
- DstBlock "RelationalnOperator8"
- DstPort 2
- }
- Line {
- SrcBlock "CurrentnMeasurement"
- SrcPort 2
- Points [20, 0; 0, 25]
- DstBlock "RelationalnOperator8"
- DstPort 1
- }
- Line {
- SrcBlock "RelationalnOperator6"
- SrcPort 1
- DstBlock "On/Off Delay"
- DstPort 1
- }
- Line {
- SrcBlock "RelationalnOperator8"
- SrcPort 1
- DstBlock "On/Off Delay2"
- DstPort 1
- }
- Line {
- SrcBlock "On/Off Delay"
- SrcPort 1
- DstBlock "MaxI1"
- DstPort 1
- }
- Line {
- SrcBlock "On/Off Delay2"
- SrcPort 1
- DstBlock "MaxI2I1"
- DstPort 1
- }
- Line {
- SrcBlock "RelationalnOperator10"
- SrcPort 1
- DstBlock "MaxIinst"
- DstPort 1
- }
- Line {
- SrcBlock "V1 max2"
- SrcPort 1
- DstBlock "RelationalnOperator10"
- DstPort 2
- }
- Line {
- SrcBlock "Selector"
- SrcPort 1
- DstBlock "Mux"
- DstPort 1
- }
- Line {
- SrcBlock "Selector2"
- SrcPort 1
- DstBlock "Mux"
- DstPort 3
- }
- Line {
- SrcBlock "Selector1"
- SrcPort 1
- DstBlock "Mux"
- DstPort 2
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Complex tonMagnitude-Angle1"
- DstPort 1
- }
- Line {
- SrcBlock "Complex tonMagnitude-Angle1"
- SrcPort 1
- DstBlock "MinMax"
- DstPort 1
- }
- Line {
- SrcBlock "MinMax"
- SrcPort 1
- DstBlock "RelationalnOperator10"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "AC VoltagenProtection"
- Ports [1, 4]
- Position [95, 166, 175, 259]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "AC VoltagenProtection"
- Location [318, 304, 1016, 710]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "abc"
- Position [45, 113, 75, 127]
- IconDisplay "Port number"
- PortDimensions "3"
- }
- Block {
- BlockType Reference
- Name "On/Off Delay1"
- Ports [1, 1]
- Position [495, 224, 535, 256]
- ShowName off
- SourceBlock "powerlib_extras/Control nBlocks/On"
- "//Off Delay"
- SourceType "On/Off Delay "
- ShowPortLabels off
- type_delay "On delay"
- delay "Delay_V2_V1"
- ic "0"
- }
- Block {
- BlockType Reference
- Name "On/Off Delay2"
- Ports [1, 1]
- Position [495, 79, 535, 111]
- ShowName off
- SourceBlock "powerlib_extras/Control nBlocks/On"
- "//Off Delay"
- SourceType "On/Off Delay "
- ShowPortLabels off
- type_delay "On delay"
- delay "Delay_V1"
- ic "0"
- }
- Block {
- BlockType Reference
- Name "On/Off Delay3"
- Ports [1, 1]
- Position [495, 149, 535, 181]
- ShowName off
- SourceBlock "powerlib_extras/Control nBlocks/On"
- "//Off Delay"
- SourceType "On/Off Delay "
- ShowPortLabels off
- type_delay "On delay"
- delay "Delay_V1"
- ic "0"
- }
- Block {
- BlockType Reference
- Name "On/Off Delay4"
- Ports [1, 1]
- Position [495, 314, 535, 346]
- ShowName off
- SourceBlock "powerlib_extras/Control nBlocks/On"
- "//Off Delay"
- SourceType "On/Off Delay "
- ShowPortLabels off
- type_delay "On delay"
- delay "Delay_V2_V1"
- ic "0"
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator6"
- Position [410, 143, 440, 187]
- ShowName off
- Operator ">"
- InputSameDT off
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator7"
- Position [410, 73, 440, 117]
- ShowName off
- Operator "<"
- InputSameDT off
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator8"
- Position [410, 218, 440, 262]
- ShowName off
- Operator ">"
- InputSameDT off
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator9"
- Position [410, 308, 440, 352]
- ShowName off
- Operator ">"
- InputSameDT off
- }
- Block {
- BlockType Constant
- Name "V0/V1 max3"
- Position [315, 165, 380, 185]
- ForegroundColor "magenta"
- ShowName off
- Value "Max_V1"
- }
- Block {
- BlockType Constant
- Name "V0/V1 max4"
- Position [315, 95, 380, 115]
- ForegroundColor "magenta"
- ShowName off
- Value "Min_V1"
- }
- Block {
- BlockType Constant
- Name "V1 max"
- Position [320, 240, 380, 260]
- ForegroundColor "magenta"
- ShowName off
- Value "Max_V2_V1"
- }
- Block {
- BlockType Constant
- Name "V1 max1"
- Position [320, 330, 380, 350]
- ForegroundColor "magenta"
- ShowName off
- Value "Max_V0_V1"
- }
- Block {
- BlockType SubSystem
- Name "VoltagenMeasurement"
- Ports [1, 3]
- Position [120, 66, 205, 174]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "VoltagenMeasurement"
- Location [341, 194, 1175, 496]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "abc"
- Position [30, 73, 60, 87]
- IconDisplay "Port number"
- PortDimensions "3"
- }
- Block {
- BlockType Gain
- Name "Gain1"
- Position [260, 75, 330, 115]
- Gain "[1 a a2]"
- }
- Block {
- BlockType Gain
- Name "Gain2"
- Position [260, 140, 330, 180]
- Gain "[1 a2 a]"
- }
- Block {
- BlockType Gain
- Name "Gain3"
- Position [400, 77, 450, 113]
- ShowName off
- Gain "1/3"
- }
- Block {
- BlockType Gain
- Name "Gain4"
- Position [400, 142, 450, 178]
- ShowName off
- Gain "1/3"
- }
- 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 "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 "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 "19696640"
- 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 [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
- }