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 & HelpElectronics,  Serial Library › Processing portname variable?
Page Index Toggle Pages: 1
Processing portname variable?? (Read 1674 times)
Processing portname variable??
Jul 10th, 2007, 9:16pm
 
Hey, I,m trying out this beginners tutorial on how to get processing working with arduino.

http://webzone.k3.mah.se/projects/arduino-workshop/projects/arduino_meets_processing/instructions/poti.html

So far I have the LED working and it lights up when i go over a certain current using a potentimeter in arduino. However when i open processing and run it, i get the graph picture shown but doesn,t show any bar activity when i turn the potentimeter. I dont know what he means when he suggests adjusting the portname variable as i,ve left it the way the code file was...eg. "string portname = "/dev/cu.usbserial-1B1";

Any suggestions as i,m a complete processing newbie???
Re: Processing portname variable??
Reply #1 - Jul 11th, 2007, 9:04pm
 
anybody???? =(
Re: Processing portname variable??
Reply #2 - Jul 12th, 2007, 6:16pm
 
try using

println(Serial.list());

to see what the available serial ports are. presumably your tutorial means that you should take one of the names from that list, and use it in the code instead of the original setting for the portname variable.
Re: Processing portname variable??
Reply #3 - Jul 15th, 2007, 5:01pm
 
Well, i tried that just now and to no luck, i didnt see the graph change = (..i got this info back in processing

Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
COM1
COM3
COM4
processing.serial.Serial@6025e7

changed the portname to "String portname = "Serial@6025e7";" and still no luck..why wont this work for me??? i so badly need processing to work coz i have alot of work to do in it to run .mov and i can,t even get it working with the basics! anybody have any other good tutorials????
Re: Processing portname variable??
Reply #4 - Jul 15th, 2007, 6:08pm
 
and none of "COM1", "COM2", or "COM3" worked? i would imagine that it would be one of those. the "processing.serial.Serial@6025e7" text is not a port, that's some other println() in your code.
Re: Processing portname variable??
Reply #5 - Jul 15th, 2007, 7:01pm
 
ok so i,ve hunted around the sites to make sure i have eveything even installed and i came across this on the arduino site that i must have not installed hence why processing doesn,t respond to arduino?? "Open the firmware in Arduino and upload it to the Arduino board." which i did and now i,m in processing and opened up the example "arduino output" that comes with the Arduino-processing library." but whats supposed to happen? i,m clicking the buttons but nothing is going on?

i used the code given in the example here http://www.arduino.cc/playground/Interfacing/Processing and when i ran it, the led in pin 13 flashed once and outputed a "y" with a slanted line over it? what does that mean?
Page Index Toggle Pages: 1