Hey guys. I'm developing a system that will sound an alarm if the wire of the encoder is broken. I am talking about sin/cos encoder, and i haven't done it yet but i made a test sin and 90 degrees shifted cos signal so i can test my idea. I want to ask about the condition in which i should sound the alarm of broken wire. Here's my code, and my condition is SINUS = COSINUS. Is that right or i should make sinus+cosinus=sinus or sinus+cosinus=cosinus or sinus+cosinus=0 THEN break wire, and why? Thank you