AnsweredAssumed Answered

AD9361-iiostream.c inside C extension to use in Python

Question asked by VANSMILE on Jul 5, 2017
Latest reply on Sep 29, 2017 by mhennerich

Hello everyone!

I have succesfully used Libiio and AD9361-iiostream.c example in order to recieve data from PicoZed SDR. Now I would like to get the data vector to python in order to proceed it. What is the best way to do that ? As far as I see there are some python bindings provided in Libiio, but they are not as functional as ad9361-iiostream.c example. So my idea was to use ad9361-iiostream.c example in order to write C extension which can be installed and used in Python 3 via distutils. But still can't force it to work. During setup.py procedure compilers can't resolve symbols for "iio_channel_enable" and other iio routines so I can't install the extension. I found that someone made the analog of AD9361-iiostream in Python here Please add sample size function to libiio API and C# binding code  . Can you share it ? Or give the advise if the Idea I am talking about is realistic! 

Thank you very much! 

Outcomes