Created script to send mag and phase to Arduino