AnsweredAssumed Answered

AD9361 FMCOMMS2 libiio MATLAB

Question asked by ibrahim.farah on Mar 10, 2017
Latest reply on Mar 10, 2017 by rgetz

Hi, 

I am using the FMCOMMS2 development board along with the libiio library in order to stream data to and from MATLAB. I was able to get the ad9361_matlab.m script to work, communicating successfully with the device. My question is in regards to the following lines from the script:

input{s.in_ch_no+1} = 2.4e9;
input{s.in_ch_no+2} = 30.72e6;
input{s.in_ch_no+3} = 18.0e6;
input{s.in_ch_no+4} = 'slow_attack';
input{s.in_ch_no+5} = 0;
input{s.in_ch_no+6} = 'slow_attack';
input{s.in_ch_no+7} = 0;
input{s.in_ch_no+8} = 2.4e9;
input{s.in_ch_no+9} = 30.72e6;
input{s.in_ch_no+10} = 18.0e6;

 

(The full script can be found here: MathWorks_tools/ad9361_matlab.m at 2015b · analogdevicesinc/MathWorks_tools · GitHub )

Is there documentation somewhere which specifies the order to input variables to the FMCOMMS board? Or what the variables above correspond to? I am trying to write a script to programmatically change the center frequency, bandwidth, and sampling rate of the dev board, but am not sure which variable corresponds to what.

 

Thanks,

Ibrahim

Outcomes