Post Go back to editing

streaming data inout from Matlab for AD9371 + ZC706 not working?

Hi,

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:

  • HDL: hdl_2018_r1
  • MATLAB: R2018b
  • Vivado: 2017.4.1

and matlab adi toolbox version AnalogDevicesBSP_v18.2.mltbx.

Also I am using https://github.com/analogdevicesinc/MathWorks_tools/tree/master/hil_models/ad9371

And when I am running ad9371.m from matlab I am getting following ERROR:

>ad9371
Not enough input arguments.

Error in matlabshared.libiio.base/getChan

Error in adi.common.DDS/ToggleDDS (line 54)

Error in adi.AD9371.Tx/setupInit (line 106)
obj.ToggleDDS(strcmp(obj.DataSource,'DDS'));

Error in adi.common.RxTx/configureChanBuffers (line 100)
setupInit(obj);

Error in matlabshared.libiio.base/setupImpl

Error in adi.AD9371.Tx/setupImpl (line 74)
setupImpl@matlabshared.libiio.base(obj);

Error in ad9371 (line 20)
tx(y);

Kindly please suggest solution.

Regards

ARVIND

Parents Reply
  • Hi Travis,

    Still I am getting same Error message. After running ad9371.m file.

    >> clear all
    >> ad9371
    Not enough input arguments.

    Error in matlabshared.libiio.base/getChan

    Error in adi.common.DDS/ToggleDDS (line 54)

    Error in adi.AD9371.Tx/setupInit (line 106)
    obj.ToggleDDS(strcmp(obj.DataSource,'DDS'));

    Error in adi.common.RxTx/configureChanBuffers (line 100)
    setupInit(obj);

    Error in matlabshared.libiio.base/setupImpl

    Error in adi.AD9371.Tx/setupImpl (line 74)
    setupImpl@matlabshared.libiio.base(obj);

    Error in ad9371 (line 20)
    tx(y);

    But if use  ad9371_matlab.m file from   https://github.com/analogdevicesinc/MathWorks_tools/releases/tag/v18.2.0   then i am able to run demo. with following warning

    libiio_if: Connected to IP 192.168.34.100
    libiio_if: Remote libiio version: 0.15, (git-6ecff5d)
    libiio_if: Local libiio version: 0.17, (git-5bdc242)
    libiio_if: Found 7 devices in the system
    libiio_if: axi-ad9371-tx-hpc was found in the system
    libiio_if: Found 4 output channels for the device axi-ad9371-tx-hpc
    libiio_if: axi-ad9371-tx-hpc output data channels successfully initialized
    libiio_if: Connected to IP 192.168.34.100
    libiio_if: Remote libiio version: 0.15, (git-6ecff5d)
    libiio_if: Local libiio version: 0.17, (git-5bdc242)
    libiio_if: Found 7 devices in the system
    libiio_if: axi-ad9371-rx-hpc was found in the system
    libiio_if: Found 4 input channels for the device axi-ad9371-rx-hpc
    libiio_if: axi-ad9371-rx-hpc input data channels successfully initialized
    libiio_if: Connected to IP 192.168.34.100
    libiio_if: Remote libiio version: 0.15, (git-6ecff5d)
    libiio_if: Local libiio version: 0.17, (git-5bdc242)
    libiio_if: Found 7 devices in the system
    libiio_if: ad9371-phy was found in the system
    Warning: The following error was caught while executing 'libiio_if' class destructor:
    Error using unloadlibrary
    Cannot unload a library that has outstanding objects.

    Error in libiio_if/delete (line 376)
    unloadlibrary(obj.libname);

    Error in iio_sys_obj_matlab/releaseImpl (line 282)
    delete(obj.libiio_ctrl_dev);

    Error in ad9371_matlab (line 42)
    s.releaseImpl();
    > In iio_sys_obj_matlab/releaseImpl (line 282)
    In ad9371_matlab (line 42)
    >>

    Regards

    ARVIND

Children
No Data