Software Defined Radio

cancel
Showing results for 
Search instead for 
Did you mean: 

MATLAB to USRP connection

[10:24 PM, 4/20/2021] Eng Hadeel Dr Hekmet:
I want to use USRP N210 as a spectrum analyzer using MATLAB to capture UHF TV signal, but the rxSig of the following code (the output of (radio = comm.SDRuReceiver()) return a vector all its value is zero.

the code is:
[10:24 PM, 4/20/2021] Eng Hadeel Dr Hekmet: radio = comm.SDRuReceiver( 'Platform','N200/N210/USRP2','IPAddress','192.168.10.2', ...
'CenterFrequency',650e6,'DecimationFactor',4,'PPSSource','External','MasterClockRate',100e6);

spectrumAnalyzer = dsp.SpectrumAnalyzer('InputDomain','Frequency',....
'SpectrumType', 'Power density',...
'YLimits', [-130,20],...
'PlotAsTwoSidedSpectrum', false,...
'SpectralAverages', 50, ...
'FrequencySpan', 'Start and stop frequencies', ...
'StartFrequency', 500e6, ...
'StopFrequency', 800e6,...
'Position', figposition([50 30 30 40])) ;

[rxSig, len ] = radio();

% Display received frequency spectrum.

spectrumAnalyzer(rxSig);

Comments
fjmolinamu
Member
Member
on

Hi,

 

I would like to use Ettus B210 with Matlab, but I need to change the buffer size in the script but I don't know how do it. 

 

Could anyone help me?

 

Thanks

Contributors