ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RT FIFO and 1D array data

Solved!
Go to solution

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

Download All
0 Kudos
Message 1 of 3
(4,717 Views)
Solution
Accepted by DavidT

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. 

Message 2 of 3
(4,710 Views)

Too easy, thanks Paul!

0 Kudos
Message 3 of 3
(4,659 Views)