Set Rx bandwidth on and off for USRP X310

조회 수: 9 (최근 30일)
Benedict Isaac
Benedict Isaac 2022년 12월 4일
편집: Nithin Kumar 2023년 9월 5일
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