How to Know Remote Mode

Hi,

I’m trying to know how can I assign to a digital output the information of, if the Polyscope is at Remote Control or Local Mode. If anyone have information is welcome. Thank you so much!

Best regards.