# Parsing Data in Processing thru Serial Port from Arduino + Pixy Cam

**URL:** <https://discourse.processing.org/t/parsing-data-in-processing-thru-serial-port-from-arduino-pixy-cam/4067>\
**Category:** Electronics (Arduino, etc.)\
**Tags:** homework\
**Created:** [October 3, 2018, 2:31am UTC](https://discourse.processing.org/t/parsing-data-in-processing-thru-serial-port-from-arduino-pixy-cam/4067 "2018-10-03T02:31:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [October 3, 2018, 4:09pm UTC](https://discourse.processing.org/t/parsing-data-in-processing-thru-serial-port-from-arduino-pixy-cam/4067/2 "2018-10-03T16:09:43Z")

</div>

Hi mck.sanderson,

First can you please format your code?  
You can see how to do it here: [Guidelines—Tips on Asking Questions](https://discourse.processing.org/t/guidelines-tips-on-asking-questions/2147)

Also, try to avoid posting picture of data because we can’t copy/paste them to use them.

Now for your question, splitToken should work nice in your case. You can split using the space as the delimiter and just take the value 3, 5, 7, 9, 11, 13, 15

Try the code below:

```auto
void setup() {
  String myText = "block 0: sig: 1 x: 252 y: 134 width: 8 height: 3 index: 209 age: 8";
  String[] splitText = splitTokens(myText, " "); 
  println(splitText[3], splitText[5], splitText[7], splitText[9], splitText[11], splitText[13], splitText[15]);
}

```

---

_[View the full topic](https://discourse.processing.org/t/parsing-data-in-processing-thru-serial-port-from-arduino-pixy-cam/4067)._
