AnsweredAssumed Answered

AD-FMCOMMS2/3 data streaming program

Question asked by andy_f on Sep 16, 2016
Latest reply on Oct 12, 2016 by marcinsztajn

What do you guys recommend for streaming data to a file for the AD-FMCOMMS2/3?
I have tried the iio_readdev program, but this doesn't scale with my sample rate.

Like when I have the sample rate set to 10 MSPS and I run it for 10 seconds I get a file ~ 177 MB instead of the 800 MB file I expect (10e6 sample rate * 4 bytes I/Q * 2 channels * 10 s ). What is also confusing is when I adjust the sample rate down to 5 MSPS and run it I get the file the size of 165 MB (as opposed to the 400 MB I expect). I also have tried adjusting the buffer size, but that doesn't seem to help.

 

This is some more info about iio on my device:

analog@analog:~$ iio_info
Library version: 0.6 (git tag: 1856316)
IIO context created with local backend.
Backend version: 0.6 (git tag: 1856316)
Backend description string: Linux analog 4.0.0-g5e6cec4 #35 SMP PREEMPT Tue Mar 15 15:27:20 GMT 2016 armv7l
IIO context has 5 devices:

...

 

Is there a different program used to stream data directly from the hardware to a file?

 

I'm running the zynq-zed analog devices image (I believe I'm running the March 2016 image?)

 

Thanks for any help!

Andy

Outcomes