Hello all,
I am capturing samples on an E320 with cpu_format 'sc8' and otw_format
'sc8'.
When calling `uhd::rx_streamer::recv()`, I'm comparing the time_spec
given by 'uhd::rx_metadata_t' and the timestamp calculated by
integrating the sample rate with the received samples.
So I have something like this:
... uint64_t total_samples =0; bool is_first_timestamp =true; uhd::time_spec_t
first_timestamp; while (total_samples < requested_samples))
{
uhd::rx_metadata_t md;const size_t nsamples = rx_stream->recv(ptrs, 1024,
md, 3, false); if (is_first_timestamp)
{
is_first_timestamp =false; first_timestamp = md.time_spec; }
printf("Timestamp %.8lf expected %.8lf\n",
(md.time_spec - first_timestamp).get_real_secs(), total_samples /
rate); total_samples +=nsamples;}
...
Now when both otw format and cpu format are 'sc8' I get an output like:
Timestamp 0.00000000 expected 0.00000000
Timestamp 0.00047396 expected 0.00094792
Timestamp 0.00094792 expected 0.00189583
Timestamp 0.00142188 expected 0.00284375
Timestamp 0.00189583 expected 0.00379167
Timestamp 0.00236979 expected 0.00473958
Timestamp 0.00284375 expected 0.00568750
Timestamp 0.00331771 expected 0.00663542
Timestamp 0.00379167 expected 0.00758333
Timestamp 0.00426563 expected 0.00853125
Timestamp 0.00473958 expected 0.00947917
Timestamp 0.00521354 expected 0.01042708
Timestamp 0.00568750 expected 0.01137500
...
Can anybody tell me what is going on?
Thanks,
Peter Featherstone
_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com