Hi, I know this is quite long, but I'm reaching the end of my rope.
I'm working on this project where I receive data from my ESP32 via BLE, save the data in a list, and then I plot that data directly from the list.
The app works like this: I click the button to start receiving the data, I receive the 500 numbers, and then I click "Plot" and I get the graph. So far, so good.
Problem is, if I click the button to start receiving data again, the list with old values won't empty, no matter what I do. Because of this, the graph gets increasingly elongated and takes longer, since, I assume, it has to sort through all the other values as well.
I attach the blocks. The list I can't empty is called "Data_List". I created a procedure called "empty_list" where I initialize the list as empty, but for some reason, I doesn't!
I tried with a for, removing item per item, but it empties half of it (250) and then it says I'm trying to empty from an index that's too large.
Same happened when the list was 200 items long, it only emptied until item 100.
Am I missing something? Thanks in advance.
