Status of USRP radios connected to host computer
returns a structure that contains
the model number, IP address, serial number, and status of each USRP™ radio that is connected to the host computer.
A = findsdru
Report Status for All USRP Radios Connected to Host Computer
Before running this example, verify that your USRP radio is configured for host-radio communication by following the steps in Guided USRP Radio Support Package Hardware Setup.
Get the model number, IP address, serial number, and status of each USRP radio that is connected to the host computer.
A = findsdru
Checking radio connections...
A = struct with fields: Platform: 'B210' IPAddress: '' SerialNum: '31B92DD' Status: 'Success'
IPAddress — IP address of USRP radio
dotted-quad character vector
IP address of the USRP radio that is connected to the host computer, specified as a dotted-quad character vector.
serialNum — Serial number of USRP radio
Serial number of the USRP radio that is connected to the host computer, specified as a character vector.
Specify optional pairs of arguments as
the argument name and
Value is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name in quotes.
StatusOnly — Option to get status of connected radios faster
true (default) |
Option to enable or disable the ability of
to find the connected radios and get their availability status faster, specified as a
false. Specify this argument as
true to get the radio status faster. Specify this argument as
false to get the detailed status regarding firmware
compatibility, no response from the device, and other UHD errors. For more information
about the execution times, see Reduced execution time for findsdru
A — Information about connected USRP devices
Information about connected USRP devices, returned as a structure containing these fields.
|Model number of the USRP device|
|IP address of the USRP device|
|Serial number of the USRP device|
|Status information of the USRP device|
Status field of this
structure displays one of the messages described in this table.
|USRP device is available.|
|No USRP devices found.|
|Device with incompatible firmware. To communicate with this device, you
must update the firmware to the version returned by the function |
Device is not responding because of any of these reasons.
|Device is in use. The device is already owned by a block, a block dialog, or a System object™.|
Version HistoryIntroduced in R2012b
R2022b: Reduced execution time for
The approximate execution time for the
findsdru function with
StatusOnly argument specified as
true to find a
single radio and get its availability status is:
R2022a: 15.283560 s
R2022b: 2.240098 s
The code execution was timed on a Windows® 10, Intel® Xeon® W-2133 CPU @ 3.60 GHz installed RAM 64.0 GB test system.
However, to check for the detailed status regarding firmware compatibility, no response
from the device, and other UHD errors, set the value of
false. In this case,
findsdru takes same time to
execute as compared to the R2022a release.