MATLAB: How to simultaneously send and receive data using ‘SDRu’ objects

Communications Toolboxradiotransmit

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

Best Answer

The SDRu objects allow you to configure both the transmitter and receiver at the same time if we are configuring the SDRu objects from the same instance of MATLAB.
The code below produces 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', please refer to the following documentations: