how do I read and store (for use) Serial data?

edited February 2016 in Library Questions

how do I read and store (for use) Serial datas that comes in finite sets of numbers; 113,222,1333,3344 ?
I don't know how to view their exact values with Processing. The Ardunio Serial monitor shows groups of 11 numbers being generated at a rate of one group approximately each second. I want to graph these values but I need to isolate and gain control first. Currently, my code gets me a group of binary 1's but I want Exact values and a way to control them. Any help is appreciated


import processing.serial.*;

Serial port;

int data;

 void setup(){
 String portName = Serial.list()[0];
port = new Serial (this, Serial.list()[0],9600);
int val =;

 for (int i = 0; i <10; i++) {


} }`

Sign In or Register to comment.