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);

Contributors