02-08-2018 01:37 PM
Hi,
I'm trying to use a FIFO to store data for analysis and writing to file.
Currently I'm feeding a 1D array of 9 elements into the FIFO and would like to store 2000 of these 1D arrays in the FIFO to access when required.
When I read the FIFO I was expecting 2000 x 1D arrays to be read. I'm using a while loop to autoindex the data to create a 2D array of 2000x9 elements. I'm reading until empty but what I'm getting is a 1D array of 2000 elements.
Can anyone recommend a method to write and read from the FIFO to get produce a 2D array of 2000x9 elements? I've considered decimating the array but this would be messy, perhaps use a while/for loop to programmatically decimate the array?
Regards,
Dave
Solved! Go to Solution.
02-08-2018 02:01 PM - edited 02-08-2018 02:18 PM
You need to set the number of elements in the array when you call FIFO create - the default value is one, and if you don't set it it will only store one array element.
02-14-2018 06:21 AM
Too easy, thanks Paul!