I have a weird problem. When my screen initializes, i get the error "Select list item: Attempt to get item number 1 of a list of length 0: []". Now I understand that this error means that the list is empty, but I actually have indeed put something in the list before calling Select list item. On the other hand, if I use the "Do It" function in the blocks editor, it works as expected. I believe if I upload the .aia file here, it will be easier to figure out the problem.
I wonder if the DataFile component needs to be hidden under the Charts component hierarchy, like a data source, instead of the Storage component pallette.
@Susan_Lane , is this component truly synchronous?
Okay ... my .csv file of dimensions 23 row by 12 col. I just checked that even a timer.interval = 10 works for the current dimensions. Eventually there will be about 2000 rows and same number of columns.
So would timer.interval = 1000 be a safe bet, or should I provide more time?
Why I ask this is because I am testing on a Redmi Note 10 which is decently fast. But users of my app may have a much slower phone. So in this case, what kind of interval should I give for 2000 rows of data?
also you can try like this (may be, so untill App reads the whole csv file clock will trigger with as much as short milli, and once got values clock stop triggers and generates the list what you designed)
I would abandon the DataFile component, and switch to the File component, which has an event that will fire only when all data has arrived. The CSV conversion is easy, using the proper list blocks and a loop over the rows and columns to flip the table around its diagonal.
If you are really committed to this component, I remember an archaic technique where an extra record would be added to the end of a file to signal end of file and provide a summary or checksum.