why do i get zero vector when using USRP N210 with MATLAB using comm.SDRuReceiver ?

조회 수: 15 (최근 30일)
i want to recived real TV signal and using the following functions:
radio = comm.SDRuReceiver( 'Platform','N200/N210/USRP2','IPAddress','192.168.10.2', ...
'CenterFrequency',650e6);
spectrumAnalyzer = dsp.SpectrumAnalyzer('InputDomain','Frequency',....
'SampleRate', 1e9,....
'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();
spectrumAnalyzer(rxSig);
why the {rxSig} is zeros and also the plot results is zero.

채택된 답변

Karunya Choppara
Karunya Choppara 2021년 4월 17일
When len = 0, the data from radio() call is not a valid data, and we see all zeros in the rxSig output.
When providing data to the spectrumAnalyzer, we need to check the condition that len output is greater then 0.
[rxSig, len ] = radio();
if (len>0)
spectrumAnalyzer(rxSig);
end
  댓글 수: 4
Sana Rehman
Sana Rehman 2022년 5월 10일
Hi when i am doing the communication betwee usrp n 2920 . the receiver is receiving the messy code rather than the message i sent . the clock is fixed i.e. both the devices are synchronized and also the gain has been changed too but its seems like the gain change in irrelevant. Could you please help how to get the successful communication

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by