Detecting the polarity of the triode