Hello everybody,
my code inside the sctl aquires a digital sensor signal and also the current position.
The time between falling edges is measured and written into the fifo.
If the code recognize a trigger sequenze from the digital sensor signal,I write the current position,Voltage and also current into the fifo.
I read the FIFO elements on a RT system, most of the time the read date is perfect.
But sometimes there are a lot of zeros elements and i dont know where are the zeros come from.
I never write the value zero.
So does anybody have an idea where the zeros come from and why?
Normal
6701 |
2393 |
100000000 |
5000 |
24 |
1556 |
2512 |
2512 |
2153 |
1675 |
3111 |
2273 |
10289 |
With the zeros:
6702 |
2872 |
100000000 |
5000 |
24 |
1556 |
2512 |
2512 |
2632 |
1674 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
3111 |
1795 |
9332 |