info
USRP radio information
Description
returns a structure array containing the current radio settings for the USRP™ radio hardware associated with the SDRu System object™
radioSettings
= info(radio
)radio
.
Examples
Get B210 Radio Information
Use the info
object function to get information from a connected B210 radio. The function shows the actual values for the radio. These values can vary slightly from the values specified in the object.
radio = comm.SDRuTransmitter(Platform ="B210",SerialNum ="31B92DD"); radio.CenterFrequency = 912.3456e6; radio.LocalOscillatorOffset = 1000; radio.Gain = 8.3; radio.MasterClockRate = 10.56789e6; radio.InterpolationFactor = 510; info(radio)
ans = struct with fields:
Mboard: 'B210'
RXSubdev: 'FE-RX2'
TXSubdev: 'FE-TX2'
MinimumCenterFrequency: 4.4716e+07
MaximumCenterFrequency: 6.0053e+09
MinimumGain: 0
MaximumGain: 89.7500
GainStep: 0.2500
CenterFrequency: 9.1235e+08
LocalOscillatorOffset: -999.7189
Gain: 8.2500
MasterClockRate: 1.0568e+07
InterpolationFactor: 512
BasebandSampleRate: 2.0640e+04
Get Radio Information for Multichannel Radio
Create an SDRu receiver System object for a multichannel radio configuration.
radio = comm.SDRuReceiver(Platform ="X300",IPAddress ='192.168.60.2'); radio.ChannelMapping = [1 2]; radio.CenterFrequency = [1.2 1.3]*1e9; radio.Gain = [5 6];
Get the radio information by calling the info
function.
info(radio)
ans = struct with fields:
Mboard: 'X300'
RXSubdev: {'UBX RX' 'UBX RX'}
TXSubdev: {'UBX TX' 'UBX TX'}
MinimumCenterFrequency: [-70000000 -70000000]
MaximumCenterFrequency: [6.0800e+09 6.0800e+09]
MinimumGain: [0 0]
MaximumGain: [37.5000 37.5000]
GainStep: [0.5000 0.5000]
CenterFrequency: [1.2000e+09 1.3000e+09]
LocalOscillatorOffset: 0
Gain: [5 6]
MasterClockRate: 200000000
DecimationFactor: 512
BasebandSampleRate: 390625
Input Arguments
radio
— USRP radio
comm.SDRuTransmitter
System object | comm.SDRuReceiver
System object
USRP radio, specified as a comm.SDRuTransmitter
or comm.SDRuReceiver
System object. This radio must be connected to the host
computer.
Output Arguments
radioSettings
— Synchronized radio settings information
structure array
Synchronized radio settings information between the System object and the associated USRP radio hardware, returned as a structure array.
If radioSettings
has settings information, the returned radio
information varies depending on the type of the USRP device.
If radioSettings
has no settings information or it is not
associated with a USRP radio attached to the host, the structure returned is empty or
has its Status
field set to 'No device found'
in
findsdru
function.
Tips
The actual radio computed value and your specified setting can differ. To confirm that the actual radio computed value is close enough to your specified setting, use this
info
function with the System object at the inputradio
.
Version History
Introduced in R2011b
Open Example
You have a modified version of this example. Do you want to open this example with your edits?
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)