Quantcast
Channel: Processing Forum
Browsing all 1768 articles
Browse latest View live

Re : Maximum Number of Items in an Array

You can have a 32-bit Processing / Java stack on your 64-bit Windows.See https://forum.processing.org/topic/32-bit-or-64-bit-processingIf you really need lot of memory, I believe latest beta of...

View Article


how to save serial data received from arduino

hello everyone, i apologize for my bad english yet, hope you can understand what my problem is:i'm using arduino to take voltage values, then i send them to the serial port in this...

View Article


Re : Minim- "Unexpected token: \"

Maybe just download the latest stable release (1.5.1.) and check if the minim examples work there! 

View Article

Re : Question for a Newbie

Hello hawk_08,Try with this one. The upper case on Serial should be lower case. Be aware, Processing is CASE SENSITIVE. // Example by Tom Igoeimport processing.serial.*;// The serial port:Serial...

View Article

Re : Question for a Newbie

Thanks for your answer!I still get an error message tough...ArrayIndexOutOfBoundsException: 0WARNING:  RXTX Version mismatch    Jar version = RXTX-2.2pre1    native lib Version = RXTX-2.2pre2Exception...

View Article


Re : Question for a Newbie

Are you you have a Serial Port connected? 

View Article

2.x PGraphics thread crash

So I create a buffer to do some work in a separate thread so it does not delay the normal draw. This worked fine in 1.x.  Any thoughts on why this now crashes and how to get around it?import...

View Article

Re : 2.x PGraphics thread crash

A P2D/P3D buffer is OpenGL-backed now (the old software-based P3D is gone in 2.0). OpenGL cannot be used from a thread different from the main thread that created the GL context.

View Article


Re : 2.x PGraphics thread crash

Andres, any way to create another GL context separate from the one being used to draw?  I use this a lot for color picking.  Or perhaps, is their a suitable replacement that may not depend on the GL...

View Article


Re : how to save serial data received from arduino

It looks like if you only save values to the first index of your arrays, because "i" is set to "0" at the beginning of the serialEvent()-function. You are not describing what exactly is your problem,...

View Article

Re : 2.x PGraphics thread crash

I got this to work... not sure how safe it is though....import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;PGraphics buffer;boolean runthread = false;ExecutorService...

View Article

Strange XML structrue after Facebook call.

I am trying to access profile data via the Facebook Graph Api like described here:http://wiki.processing.org/w/Facebook,_REST_APII have to say. I am very unexperienced with XML. So this might be a real...

View Article

Re : Strange XML structrue after Facebook call.

How do you initialize the xml variable?Also, are you using 1.5.1 or 2.0b? The XML handling changes a lot between the two versions. The wiki probably refers to the old method.

View Article


Re : Strange XML structrue after Facebook call.

I am using 1.5.1 for now. Would you recon switching to the new one?I really just did a straight copy and paste from the wiki. So initialization goes like this: String xmlResponse = fbCallMethod( new...

View Article

Re : Strange XML structrue after Facebook call.

The page you link to uses: usersXml = xml.getChildren( "user" );So it skips the cruft and jumps straight at the useful data.

View Article


Re : Strange XML structrue after Facebook call.

yeah. but then i get null pointer. check out my first entry. there are no childs. just a big root!

View Article

Re : Strange XML structrue after Facebook call.

I see the last line:</Users_getInfo_response>/>If that's the real data and not a copy / paste error, then the XML is wrong and Processing is confused.

View Article


Re : Strange XML structrue after Facebook call.

aha.. he does that when parsing the String to the XMLElement. So the String is right:<Users_getInfo_response xmlns="http://api.facebook.com/1.0/"...

View Article

Re : how to save serial data received from arduino

i kinda solved it with this code:void serialEvent(Serial port) {    measure = commPort.readStringUntil('\n');  if (measure != null) {    String[] valori_misura = new String[5];    valori_misura =...

View Article

Re : Strange XML structrue after Facebook call.

Try replacingXMLElement xml = new XMLElement(xmlResponse);withXMLElement xml = XMLElement.parse(xmlResponse);

View Article
Browsing all 1768 articles
Browse latest View live