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 › examples serial io does not work array index out o
Page Index Toggle Pages: 1
examples serial io does not work array index out o (Read 1483 times)
examples serial io does not work array index out o
Oct 29th, 2008, 3:30am
 
examples serial io does not work array index out of bounds exception 0

I am using ubuntu linux & the newest processing download.

Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7

Exception in thread "Animation Thread" java.lang.ArrayIndexOutOfBoundsException: 0
at SimpleRead.setup(SimpleRead.java:40)
at processing.core.PApplet.handleDraw(PApplet.java:1372)
at processing.core.PApplet.run(PApplet.java:1300)
at java.lang.Thread.run(Unknown Source)

/added note
Note: I left my arduino at home and started thinking about the error and since my laptop does not have a comm port and only uses the usb ftdi virtual com port could be why it gave that error code anyone know the error that happens when you have no com ports?
Re: examples serial io does not work array index o
Reply #1 - Nov 2nd, 2008, 1:54pm
 
it apears to be the comm port not being plugged in now that I have my cable. it does not throw that code but if i set the serial port array from 0 to 1 it shows it. that is the only comm on my linux ubuntu laptop.
Re: examples serial io does not work array index o
Reply #2 - Nov 3rd, 2008, 2:17pm
 
Do println(Serial.list()), is anything visible? My guess is that the serial ports aren't showing up properly on your machine.
Re: examples serial io does not work array index o
Reply #3 - Nov 3rd, 2008, 2:35pm
 
It seems to work now I went through the FAQ on the arduino webpage and processing FAQ.
I added permitions to the plain text files I found and tinkered with it in windows after doing that.
Then I noticed it was on com4 and had a com 3 in windows so I changed the string to 1 instead of 0. It worked in windows but I want to continue to use ubuntu linux 8.10 so when I came back it worked. I think the reset might not have been done until I went to windows.
Automatic reset on the boarduino is fidgety. 3.3V FTDI cables do not work well through the optocouplers I added. as a note for someone trying to use one with the monolith eeg design.
their is a 5v usb cable that works well.
Definitly go in as sudo su
tipe in nautilus so you have a sudo gui
go to the etc directory and 2 groups files and add permitions and save...
Page Index Toggle Pages: 1