2 Replies - 456 Views - Last Post: 09 July 2013 - 05:59 AMRate Topic:

Using Processing to Open Program

Posted 06 July 2013 - 07:10 PM

I am very new to using Processing (and Arduino's for that matter), so I'm not sure what I'm doing wrong; I'm hoping someone here can help.

I have an Arduino scripted to output a "1" to a serial port when a push-button is pressed (and I have confirmed that this works by using a terminal to read traffic on the port). I wrote a Processing script to listen for traffic on the port, and I want it to open and run a Perl script if it finds anything other than a 0.

I know the Processing script is reading the traffic; but when I press the button on the Arduino the script print's "49" (why 49 and not 1 I don't know) and it doesn't open my perl script. It also seems to slow my computer down until I stop the script. Any ideas?