# How to create data array?

**URL:** <https://discourse.processing.org/t/how-to-create-data-array/41094>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [February 28, 2023, 6:37pm UTC](https://discourse.processing.org/t/how-to-create-data-array/41094 "2023-02-28T18:37:54Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![RichardDL](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Post date:** [March 2, 2023, 11:20am UTC](https://discourse.processing.org/t/how-to-create-data-array/41094/3 "2023-03-02T11:20:13Z")

</div>

Collecting into an array, sending, reading (in the Arduino) provokes several questions or decisions about what to do. Send the whole set each time? Or Send one each time it changes (with the ident of which one that was.) Send as text or binary? How to identify the start and end of messages? The examples given with the Serial library don’t tell you how to send multi-values. To get quickly past all this I wrote an [example](https://discourse.processing.org/t/processing-and-arduino-serial-example/31650), which will almost certainly work first time. One way forward is to run that, then substitute your own data.

---

_[View the full topic](https://discourse.processing.org/t/how-to-create-data-array/41094)._
