# LabVIEW

cancel
Showing results for
Did you mean:

Solved!
Go to solution

## Split and Join Numbers, with FIFO

Above is the code, trial code on FPGA programming Where I have written some known data on the FIFO and

tried to retrieve it back. The split and join number are giving proper data as when done without FIFO and you can see the corresponding output in appended array.

With the same code executed with FIFO, executes but the result obtained is appended array 2.

Why is this change between these two methods?!!

Am not able to get this concept, where should the changes be done in order to get proper data.

This is the property of the particular FIFO node,

Message 1 of 4
(486 Views)

## Re: Split and Join Numbers, with FIFO

Hi Priyardarsini,

your code does EXACTLY what you have programmed it to do!

See this small test VI:

(both indicators set to hex display mode!)

I use an U16 constant of 1 (similar to your count input), do the very same operations like you do and get the very same result - like you do.

So I think: LabVIEW does all the calculations correctly!

What's the point of calculating an U64 value when you want to transfer just I16 values with your FIFO???

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome

Message 2 of 4
(468 Views)
Solution
01-08-2018 12:06 AM

## Re: Split and Join Numbers, with FIFO

You're squashing a U64 into an I16, so you're losing the top three U16 values before it's put into the FIFO. Change the FIFO datatype to a U64 and you should be good.

Message 3 of 4
(467 Views)

## Re: Split and Join Numbers, with FIFO

Hi Gerd,

Thank you !!

Am just checking the data transfer with the code, from target to host.

As an example to be tried out, i just split and joined the numbers so that, I can identify how exactly the CLIPS show data after connecting them through Data lanes. Hence, the need..

Message 4 of 4
(454 Views)