Post Go back to editing

ADRV9002 MATLAB shared libiio issues

Category: Software
Product Number: ADRV9002

Hello All,

I tried to communicate with ADRV9002 through Matlab using linux-based analog device transciever toolbox.

ADI provided some example for data transfer with ADRV9002 here.

There are many errors in the example:

%% Configure device

tx = adi.adi.ADRV9002.Tx; >>>> tx = adi.ADRV9002.Tx;

tx.uri = "ip:analog.local";

tx.CenterFrequency = 1e9; >>>>tx.CenterFrequencyChannel0 = 1e9;

tx.DataSource = 'DMA';

tx.EnableCyclicBuffers = true;

tx.EnabledChannels = 1;

%% Generate tone

amplitude = 2^15; frequency = 0.12e6;

swv1 = dsp.SineWave(amplitude, frequency);

swv1.ComplexOutput = true;

swv1.SamplesPerFrame = 2^14;

swv1.SampleRate = tx.SamplingRate;

y = swv1();

% Send



Error using SineWave/SineWave.setParameters
The 'SampleRate' property must be finite valued.

Error in dsp.SineWave/setParameters

In mx tx object, the sample rate set to NaN, I check the documentation, it's a read only parameter so user can not set it.

On the RX side I tried data=rx() command and getting this error:
Error using calllib
Parameter can not be converted to a character vector

Error in matlabshared.libiio.context/iio_create_context_from_uri

Error in matlabshared.libiio.base/getContext

Error in matlabshared.libiio.base/setupImpl

Error in adi.common.RxTx/setupImpl (line 117)

Please help in this regard.

Kind Regards