Serial Connection Optional

edited January 2014 in Arduino

Hallo, I have a Serial Connection to Arduino in my Processing Programm. The Problem is, if the Serial connection is not alive, the programm will not start.

In my draw function I call always: myPort.available()

and if itś not availibe because I have no aktiv serial then it exits with an error.

How can I do it that my programm starts also if no Serial connection is availibe, because I will implement a list in the Programm where I can then select this.

thx druckgott

Sign In or Register to comment.