Set Rx bandwidth on and off for USRP X310

6 次查看(过去 30 天)
How do I set the filter bandwidth on and off for USRP X310?
I am trying to implement somehting like this from uhd in MATLAB for a receive application
uhd::usrp::multi_usrp::set_rx_bandwidth (double bandwidth, size_t chan =0)

回答(1 个)

Nithin Kumar
Nithin Kumar 2023-9-5
编辑:Nithin Kumar 2023-9-5
Hi Benedict,
To set the filter bandwidth for a USRP X310, kindly use the “rxbandwidth” property of the “comm.SDRuReceiver” object from the Communications Toolbox of MATLAB as shown below:.
1. Create a “comm.SDRuReceiver” object and set its properties:
% Create an SDRuReceiver object
usrp = comm.SDRuReceiver('Platform', 'X310', 'IPAddress', '192.168.10.1'); % Replace with your device's IP address
% Set the center frequency and gain (if needed)
usrp.CenterFrequency = 900e6; % Set to your desired center frequency in Hz
usrp.Gain = 0; % Set to your desired gain value in dB
2. To set the filter bandwidth, use the "rxbandwidth" property:
% Set the bandwidth in Hz
bandwidth = 1e6;
usrp.RxBandwidth = bandwidth;
3. To turn off the filter bandwidth and use the full bandwidth of the USRP, set it to "Full" or a high value:
% Turn off filtering (use the full bandwidth)
usrp.RxBandwidth = 'Full'; % or set to a high value like 100e6
4. Finally, you can receive data from the USRP using the "usrp" object:
receivedData = usrp();
For more information regarding "comm.SDRuReceiver" object, kindly refer to the following documentation:
I hope this provides you with the required information regarding your query.
Regards,
Nithin Kumar.

类别

Help CenterFile Exchange 中查找有关 Communications Toolbox 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by