Re: Weird behaviour of the analog signal source (was: Re: How ensure consistency with timing signals)

2020-03-03 Thread Sylvain Munaut
Hi, > I am by no means an expert on this but just for my understanding I would be > curious: > > 1.) I still do not understand why for 1 Hz at 5MSps I can get a period that's > "500578.5" on average. The frequency error is a whopping 0.1158%! > ((5005789.5-500)/500*100). Huge. That's b

Re: Weird behaviour of the analog signal source (was: Re: How ensure consistency with timing signals)

2020-03-03 Thread Lukas Haase
Hi Sylvain, Thank you very much for your answer. Much appreciated! > Von: "Sylvain Munaut" <246...@gmail.com> > > Hi, > > > How can (or better: *should*) a fully digital signal source have phase > > noise? > > Limited precision arithmetic > > > > Also, for 1Hz at 5MSps I always get either 500578

Re: Weird behaviour of the analog signal source (was: Re: How ensure consistency with timing signals)

2020-03-03 Thread Sylvain Munaut
Hi, > How can (or better: *should*) a fully digital signal source have phase noise? Limited precision arithmetic > Also, for 1Hz at 5MSps I always get either 5005789 or 5005790 samples > (instead of 500) ... this is fairly deterministic. That's because the signal source works with phase i

Weird behaviour of the analog signal source (was: Re: How ensure consistency with timing signals)

2020-03-02 Thread Lukas Haase
appreciated. Thanks, Lukas > Gesendet: Mittwoch, 26. Februar 2020 um 16:39 Uhr > Von: "Marcus D. Leech" > An: "Lukas Haase" > Cc: "discuss-gnuradio@gnu.org" > Betreff: Re: How ensure consistency with timing signals > > On 02/26/2020 04:11 PM, Lukas Haa

Re: How ensure consistency with timing signals

2020-02-26 Thread Marcus D. Leech
On 02/26/2020 04:11 PM, Lukas Haase wrote: Hi Marcus, Good point; but this is just for demonstration purposes here. I can tie it to USRP Source/Sink. The delta (measured in samples) should still be consistent, no matter what. Best, Lukas Looking at the siggen code, this is probably equivale

Re: How ensure consistency with timing signals

2020-02-26 Thread Lukas Haase
t; An: "Lukas Haase" > Cc: "discuss-gnuradio@gnu.org" > Betreff: Re: How ensure consistency with timing signals > > Something to understand about the throttle block is that it doesn’t guarantee > a precise sample rate. Just that the long term average rate is what

Re: How ensure consistency with timing signals

2020-02-26 Thread Marcus D Leech
Something to understand about the throttle block is that it doesn’t guarantee a precise sample rate. Just that the long term average rate is what you expect. Sent from my iPhone > On Feb 26, 2020, at 12:09 PM, Lukas Haase wrote: > > Hello, > > I use a square wave to generate control/clockin

How ensure consistency with timing signals

2020-02-26 Thread Lukas Haase
Hello, I use a square wave to generate control/clocking signal for some control logic: https://snipboard.io/WQ8p6d.jpg The work function of the "Controller" block looks like: def work(self, input_items, output_items): d = np.diff(input_items[0]) inds = np.where(d == 1)