You need to let that program communicate with the serial port first. Then look at the serial port for your message. When it arrives you do what is in your draw function.
You need to let that program communicate with the serial port first. Then look at the serial port for your message. When it arrives you do what is in your draw function.