LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW FPGA Question: Change size of

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

 

boba206_2-1659397157970.png

 

 

boba206_1-1659397074738.png

 

 

0 Kudos
Message 1 of 2
(1,336 Views)

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:

raphschru_0-1659554281312.png

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:

raphschru_1-1659554869074.png

 

See the example project attached.

0 Kudos
Message 2 of 2
(1,289 Views)