Create list of integer out of constant stream of data


(Michal Shalom) #1

Hello,
Suppose that i get constant data from Arduino (series of 1 and 0).
Is there a way to populate a list with this data that i get ‘on the go’?

And suppose that i added 20 items to this list. is there a way to initialize/empty the list and repopulate it with new 20 items?


#2

Sounds like you and @alex.goft are working on the same problem? Similar, anyway.


#3

Hi.
Why don’t you just record your series of data(0 & 1) and partition them with the number 20?

RecordData_re.gh (7.7 KB)


(Michal Shalom) #4

how can i choose the first chunk of items (the latest created chunk of 20 items?)
I tried list items, but it gives back a single item and not list


#5

You have several options – Use “Tree Branch” or “Split Tree” or “Explode Tree”…


(Michal Shalom) #6

thank you, with tree explode i get the first chunk created. but i need dinamically the last one (latest). I could figure out how the rest of the components help. could you please elaborate? choose the last 20 items in a list


#7

Get this as well…

RecordData_reV2.gh (9.1 KB)