01-11-2016 12:32 PM - edited 01-11-2016 12:59 PM
I figured it out and no longer have a coersion dot
The FIFO is working! But I am still getting repeated values
Any other suggestions?
I've also tried to increase the timing, running 1 ms on the fpga and 1 ms, 1.5ms, 2ms and 3ms on the cRio
And I've tried to read other analog input devices/channels as well, even a different analog input card
- The problem still occurs
Thanks!
01-12-2016 02:17 AM
If you have implemented the code as the one you attached, it should work. Have you implemented the structure for checking if the FIFO contains at least one element?
If you did it and you are still getting repeated values maybe the problem stays in sampling time settings. Try to slow down the sampling, according to the analog signal you are acquiring.
Kind regards.
01-13-2016 01:36 PM
Hi again
Yes, I implemented the FIFO like that
I think the problem is solved now, turns out the values are supposed to be repeated
The noise on the signal is so low amplitude compared to what I am measuring, and with the A/D converter discretizing the entire measurement range with 8 or 16 bits, there is only a few values that can be taken for a noise with that small amplitude!
I experimented with changing the pressure manually and whenever the pressure is rising or falling- i don't get any repeated values!
Thanks again MichaelBalzer and pep91!