LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FIFO data conversion issue on cRIO-9066

Solved!
Go to solution

I am having a problem with a multiple element SGL FIFO on  a cRIO-9066 where the data is not read correctly.  Here is the setup:

 

I have two Host-to-Target FIFOs, identical except for type: one is FXP the other SGL.  Both are 16-element.  The SGL data that is read appears to have a conversion error.  A minimal example project (2014 for the 9066) is included. 

 

The example works fine if the SGL FIFO is 1-element; anything larger fails.  Is this not supported on the 9066 even thought the project allows creation?

 

Thanks,

David

 

 

0 Kudos
Message 1 of 8
(3,375 Views)

SGL should be supported.  The general programming style is to work with SGL unless you run into a need for optimization.  Then you'd move to FXP.

 

I'm not by LV at the moment.  What conversion are you doing that you're worried might be the culprit?  The FIFO shouldn't process any conversions.  If you send the data without the conversion, does everything work as you think it should?

0 Kudos
Message 2 of 8
(3,343 Views)

Data send thru a multiple element SGL FIFO is incorrect when read on the other end  Screenshot is the data as read by the FPGA.  Shoud be the same.. Main - HOST.pngMain - FPGA.pngScreenshot.png

0 Kudos
Message 3 of 8
(3,333 Views)

Is the front panel you're showing from the top snippet?

 

If so, the problem is entirely independent of the FIFO and the FPGA.  It's entirely in your RT/Host code.

 

That's also the only place you're seeing a conversion. 

 

You mentioned one element works.  Does this mean the first only or does it work any time you only have one element in the FIFO?

0 Kudos
Message 4 of 8
(3,329 Views)

No.  It's from the bottom one, the reader on the FPGA.    The same screenshot from the top snippet (the PC) shows identical data.  Change the FIFO to a single element and loop the read and it works fine.

Main - HOST.pngFPGA.png

0 Kudos
Message 5 of 8
(3,317 Views)
Solution
Accepted by topic author davidc10

It looks like it may be a bug in the simulator.  Get out of simulated mode, run it on your target, and watch the interactive mode that way.  The results are what you expect.  It's strange they would be converted at any point. 

0 Kudos
Message 6 of 8
(3,268 Views)

OK thanks,  I'll be back with the hardware tomorrow.   Glad to hear it's only a simulation issue; still a bit of a time waster - thanks again for yours. 

 

Regards,

David

0 Kudos
Message 7 of 8
(3,251 Views)

Verified OK on the hardware; you are right it is Sim Mode bug only.  

0 Kudos
Message 8 of 8
(3,214 Views)