How do I simultaneously send and receive data using 'SDRu' objects?

 採用された回答

MathWorks Support Team
MathWorks Support Team 2025 年 1 月 25 日
編集済み: MathWorks Support Team 2025 年 1 月 31 日

0 投票

The SDRu objects allow you to configure both the transmitter and receiver simultaneously if you are configuring the SDRu objects from the same instance of MATLAB. The code below demonstrates the desired workflow:
rx = comm.SDRuReceiver('Platform','B210','SerialNum','30F59A1'); tx = comm.SDRuTransmitter('Platform','B210','SerialNum','30F59A1'); for ctr=1:1000 % Transmitting data step(tx,ones(1000,1)); % Receiving data [data, len] = step(rx); if len>0 disp('Receiving data') end end release(rx); release(tx);
For more information on 'comm.SDRuTransmitter' and 'comm.SDRuReceiver', you can access the release-specific documentation by executing the following commands in the MATLAB R2020b command window:
For 'comm.SDRuTransmitter':
>> web(fullfile(docroot, 'supportpkg/usrpradio/ug/comm.sdrutransmitter-system-object.html'))
For 'comm.SDRuReceiver':
>> web(fullfile(docroot, 'supportpkg/usrpradio/ug/comm.sdrureceiver-system-object.html'))
Please follow the link below to search for the required information regarding the current release:

その他の回答 (0 件)

製品

リリース

R2018b

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by