LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Split and Join Numbers, with FIFO

Solved!
Go to solution

EX.JPG

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,

 

fifo.JPG

 

Thanks in advance..!!

0 Kudos
Message 1 of 4
(486 Views)

Hi Priyardarsini,

 

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

 

See this small test VI:

check.png(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! Smiley Very Happy

 

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 Smiley Wink

0 Kudos
Message 2 of 4
(468 Views)
Solution
Accepted by topic author PriyadarsiniS
01-08-2018 12:06 AM

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.




Certified LabVIEW Architect
0 Kudos
Message 3 of 4
(467 Views)

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..Smiley Happy

 

0 Kudos
Message 4 of 4
(454 Views)