08-01-2022 06:43 PM
Hi,
I am new to LabVIEW FPGA and inherited an FPGA VI. It currently reads data from 16 channels and creates an array of 16 elements of fixed data type and then feeds it into a FIFO (FPGA to Host) that has an element which is an array of 16 fixed point values. I am trying to add a 17th channel and am trying to change the size of the array to 17 elements but when I go into the FIFO properties, the max "Number of Elements per Write" is 16. Anyone know how to deal with this? thanks
08-03-2022 02:29 PM
Hi boba,
Set the property "Number of Elements per Write" to 1, then write as many elements as you want in your FIFO with a for loop.
The elements will be written one by one:
When you create a new FIFO, this property is set to 1 by default.
You only need to change it in case you have timing constraints and you want to write several elements in a single clock cycle.
In this case, your number of elements must be a multiple of 2, 4, 8, 16, or whatever you configure.
Don't forget to dequeue multiples of 17 from the host side:
See the example project attached.