Hello everyone
I m trying to detect sag,swell and interruption using the user defined function block.
I am able to detect sag ,swell but the only problem i am facing is with the interruption.
As you can see from the figure, the first subplot is a filtered sine wave (Lowpass filter Fn=8) when there is an interruption my script doesnt understand it is an interruption so when filtered sinewave starts to gradually decrease , my sag detector interprets this decline as a sag. How can i modify it so it would only read interruption?
Ts=1e-6