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

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

 Risposta accettata

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:

Più risposte (0)

Prodotti

Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by