Example Code

Passing 2D Arrays Using RT-FIFOs

Code and Documents

Attachment

2D arrays are not supported using the RT-FIFO VIs.  But it is possible to change data into a 1D array and pass that data using these VIs.  First the 2D data needs to be concatenated into a 1D array, then you will send it to the RT-FIFO write like normal.  After you read the data from the RT-FIFO read you will need to use the Reshape Array VI to turn the 1D array back into the original 2D data.

BlockDiagram.png

Justin Parker
National Instruments
Product Support Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors