Post Go back to editing

ZCU102+AD9082 Matlab Communication Toolbox Support - Hardware Setup Issue

I am trying to use Matlab to stream data for ZCU102+AD9082:  Matlab version 2020.b, zcu102 rev1.1, AD9082.

After installing the "Communications Toolbox Support Package for Xilinx Zynq-Based Radio", The hardware setup pops up to let me do some configurations, write the SD card, and boot the board. In the "Verify Radio Connection" section, the "Test data path between host and RF card" didn't pass with error msg: Error receiving data from the RF card. The Done LED and DS44 LED on zcu102 are on and normal, But the HMC_STATUS LED on the AD9082 board is on and RED. It is similar to last week when I was trying to set up the Linux image but the device tree/HDFs are from AD9081 instead of AD9082:

I guess there is a mismatch between the hardware data lanes and the device tree/HDF. 

Is there any working solution for using matlab with ZCU102+AD9082?



Top Replies

  • In the Matlab, I am trying to get a frame of data: (I am referring to this example code:

    uri = 'ip:';
    %% RX
    rx = adi.AD9081.Rx();
    rx.uri = uri;
    rx.EnabledChannels = 1;
    rx.SamplesPerFrame = 32768;
    data = rx();

    But got errors:

    Error using matlabshared.libiio.base/cstatus
    Channel: voltage2_i not found
    Error in adi.common.Attribute/setAttributeLongLong (line 13)
                cstatus(obj,status,['Channel: ' id ' not found']);
    Error in adi.AD9081.Base/CheckAndUpdateHW (line 75)
                        obj.setAttributeLongLong(id,attr,value(k),output, tol, phy);
    Error in adi.AD9081.Rx/setupInit (line 204)
    Error in adi.common.RxTx/configureChanBuffers (line 219)
    Error in matlabshared.libiio.base/setupImpl
    Error in adi.common.RxTx/setupImpl (line 117)
    Error in Untitled2 (line 7)
    data = rx();

    The sampling is NaN, and it doesn't have a set method:

    >> rx
    rx = 
      adi.AD9081.Rx with properties:
                 SamplingRate: NaN
        ChannelNCOFrequencies: [0 0 0 0]
           MainNCOFrequencies: [0 0 0 0]
             ChannelNCOPhases: [0 0 0 0]
                MainNCOPhases: [0 0 0 0]
                     TestMode: 'off'
                  EnablePFIRs: false
                PFIRFilenames: ''
              SamplesPerFrame: 32768
              EnabledChannels: 1
                          uri: 'ip:'
    >> rx.SamplingRate = 1000
    In class 'adi.AD9081.Rx', no set method is defined for Dependent property 'SamplingRate'.  A Dependent property needs a set method to assign its value.

    Do you know how to resolve it?

  • The sample rate is not a tunable property at runtime. It can only be done through the device tree and will be bound by the available clocks and references.

    This applies as well:

    What device tree are you currently using with AD9082?


Reply Children