MATLAB shows B200 USRP as transmitting but device is not physically transmitting.
Show older comments
I am attempting to transmit on a B200 USRP using matlab. The below code is what I am using to attempt to transmit a 100KHz sine wave at 433MHz center frequency. I have a seperate SDR monitoring 433MHz nearby (using independent software). I have verified the USRP platform, serial number, and have the more recent UHD driver installed on the USRP. I am running the latest version of MATLAB 2024b. Matlab finds the sdr when executing "findsdru" and "probesdru". When attempting to transmit I receive a "0" indicating no underruns. Everything performs in matlab as if nothing is wrong, however, the red transmit light doesn't illuminate on the USRP and I dont see the 100KHz signal on my independent device. These two indicators lead me to believe that the USRP isn't transmitting. I saw the red light illuminate when setting up the USRP with matlab so I know it works. I have used Matlab with other SDR's and I have the USRP communications toolbox downloaded too. Any help is much appreciated?
Code:
sinewave = dsp.SineWave(1,100e3); %generates a 100Khz sine wave
sinewave.SampleRate = 2e6;
sinewave.SamplesPerFrame = 5e3;
sinewave.OutputDataType = 'double';
sinewave.ComplexOutput = true;
data = sinewave();
tx = comm.SDRuTransmitter(...
Platform = "B200", ...
SerialNum = "F5EA7B", ...
Gain=70, ...
CenterFrequency = 433e6, ...
InterpolationFactor = 128, ...
TransportDataType="int16");
tx(data)
%release(tx)
Accepted Answer
More Answers (0)
Categories
Find more on Communications Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!