I am working on ZC706 and AD9371 platform.
I wish to stream data inout from matlab for above platform.
I am using following Tools and source versions:
and matlab adi toolbox version AnalogDevicesBSP_v18.2.mltbx.
Also I am using https://github.com/analogdevicesinc/MathWorks_tools/tree/master/hil_models/legacy/adrv9371
And when I am running ad9371_matlab.m from matlab I am getting following ERROR:
Error using unloadlibraryCannot unload a library that has outstanding objects.
Error in libiio_if/releaseContext (line 111) unloadlibrary(obj.libname);
Error in libiio_if/init (line 431) releaseContext(obj);
Error in iio_sys_obj_matlab/setupImpl (line 216) [ret, err_msg, msg_log] = init(obj.libiio_data_in_dev, obj.ip_address, ...
Error in ad9371_matlab (line 12)s = s.setupImpl();
Please suggest a solution to this problem.
The legacy examples use the old deprecated API. If you want to use it make sure you have a compiler installed with the necessary bindings found here: https://github.com/analogdevicesinc/libiio-matlab
When running the ad9371.m code, The output FFT shows a shifted sine wave. Can you explain the shift from 20MHz?
For a different frequency the outputs are not correlated to the input. Can you please explain?
Transmit and receive use different sample rates by default, this is likely the issue.
I cannot open links from google drive. You can post pictures directly into the forum if you need to.