Create receiver System object for USRP embedded series radio hardware
creates a receiver System object™ with default properties that receives data from the USRP™ embedded series radio hardware specified by
rx = sdrrx(
DeviceName. The object receives data over a gigabit
Ethernet network connection.
When you call the receiver System object, the object connects to the radio hardware. The object stays connected
until you call the
release function. For more information on
how to use the object, see the documentation of the corresponding System object.
Make sure your radio hardware is configured for host-radio communication by following the steps in Guided Host-Radio Hardware Setup.
Create a receiver System object for your radio hardware with the specified properties. Use a single channel.
rx = sdrrx('E3xx', ... 'IPAddress','192.168.3.2', ... 'CenterFrequency',2.2e9, ... 'BasebandSampleRate',800e3, ... 'ChannelMapping',1)
rx = comm.SDRRxE3xx with properties: Main DeviceName: 'E3xx' IPAddress: '192.168.3.2' CenterFrequency: 2.2000e+09 GainSource: 'AGC Slow Attack' ChannelMapping: 1 BasebandSampleRate: 800000 OutputDataType: 'int16' SamplesPerFrame: 20000 EnableBurstMode: false ShowAdvancedProperties: false Show all properties
Create a log for recording data.
Log = dsp.SignalSink;
Receive and validate data by using the receiver System object. Save valid data using the log.
for counter = 1:20 [data,validData,overflow] = rx(); if validData == 1 if overflow ~=1 % contiguous data Log(data); end else disp('Not valid data.'); end end
## Establishing connection to hardware. This process can take several seconds.
comma-separated pairs of
the argument name and
Value is the corresponding value.
Name must appear inside quotes. You can specify several name and value
pair arguments in any order as
For a full list of property names and values, see the properties of the returned
receiver System object,