We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Simplewrite
Page Index Toggle Pages: 1
Simplewrite (Read 525 times)
Simplewrite
Sep 5th, 2008, 4:01pm
 
I'm trying to write to the Serial port on my Mac.

Here's a screengrab of the error I'm getting:

http://www.flickr.com/photos/fin5bjh/2830771050/sizes/o/

Any thoughts?
Re: Simplewrite
Reply #1 - Sep 5th, 2008, 5:47pm
 
The port name defaults to COM1, which is very likely to be wrong on a Mac!
The example uses

 new Serial(this, Serial.list()[0], 9600);

(the 9600 could be omitted since it is the default).
Re: Simplewrite
Reply #2 - Sep 9th, 2008, 11:09am
 
Thanks for the suggestion but it's still firing up the same error...

http://www.flickr.com/photos/fin5bjh/2842734838/sizes/l/
Re: Simplewrite
Reply #3 - Sep 9th, 2008, 1:06pm
 
You have a PortInUseException exception, which probably means the serial port is already owned by some other application on your Mac.
See CommPortIdentifier reference (open() method).

Note: that's not the same error...
Page Index Toggle Pages: 1