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
  • This example worked fine for me on two machines.  Can you provide the output of "matlabshared.supportpkg.getInstalled" from MATLAB? What is your host OS?

    -Travis

  • Hi Travis,

    Matlab is install on WINDOWS based host PC.

    Following output for matlabshared.supportpkg.getInstalled

    >> matlabshared.supportpkg.getInstalled
    Name                                                                                                        Version                                     Base Product
    ------------------------------------------------------------------                                   -------                                    ---------------------


    MATLAB Support for MinGW-w64 C/C++ Compiler                                       19.1.0                                         MATLAB

    Communications Toolbox Support Package for Xilinx Zynq-Based Radio     19.1.1               Communications Toolbox
    >>

    Regards

    ARVIND

Reply
  • Hi Travis,

    Matlab is install on WINDOWS based host PC.

    Following output for matlabshared.supportpkg.getInstalled

    >> matlabshared.supportpkg.getInstalled
    Name                                                                                                        Version                                     Base Product
    ------------------------------------------------------------------                                   -------                                    ---------------------


    MATLAB Support for MinGW-w64 C/C++ Compiler                                       19.1.0                                         MATLAB

    Communications Toolbox Support Package for Xilinx Zynq-Based Radio     19.1.1               Communications Toolbox
    >>

    Regards

    ARVIND

Children