Main Content

findsdru

Status of USRP radios connected to host computer

Description

example

A = findsdru 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(IPAddress) returns information for only the USRP radio with the specified IP address.

A = findsdru(serialNum) returns information for only the USRP radio with the specified serial number.

A = findsdru(___,'StatusOnly'=logical) specifies the option to return the detailed status of the radio.

Examples

collapse all

Get the model number, IP address, serial number, and status of each USRP radio that is connected to the host computer. Query the contents of the first element in the array.

A = findsdru
ans =
 
  1×2 struct array with fields:
 
    Platform
    IPAddress
    SerialNum
    Status
A(1)
ans =
 
  struct with fields:
 
     Platform: 'X310'
    IPAddress: '192.168.40.2'
    SerialNum: '31D3D75'
       Status: 'Success'

Input Arguments

collapse all

IP address of the USRP radio that is connected to the host computer, specified as a dotted-quad character vector.

Data Types: char

Option to enable or disable the ability of findsdru function to find the connected radios and get their availability status faster, specified as true or 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.

Example: 'StatusOnly'=false

Data Types: logical

Output Arguments

collapse all

Information about connected USRP devices, returned as a structure containing these fields.

FieldsDescription
PlatformModel number of the USRP device
IPAddressIP address of the USRP device
SerialNumSerial number of the USRP device
StatusStatus information of the USRP device

The Status field of this structure displays one of the messages described in this table.

Status ValueDefinition
SuccessUSRP device is available.
No devices foundNo USRP devices found.
Not compatibleDevice with incompatible firmware. To communicate with this device, you must update the firmware to the version returned by the function getSDRuDriverVersion. You can update the firmware on your radio using the Radio Setup wizard.
Not responding

Device is not responding because of any of these reasons.

  • The device is not attached to the host computer.

  • No device with the specified IP address exists. If you saved a radio configuration when you set up your radio using the Radio Setup wizard, use the radioConfigurations function to find the IP address.

  • The subnet address of the host computer does not match the subnet address of the device. The subnet address is the third field of the IP address. Verify that the subnet value of the host and radio are the same. For example, your NIC has an IP address of 192.168.10.1, and the IP address of the USRP radio is 192.168.20.2. The IP addresses differ in the third octet.

  • The specified serial number is invalid.

BusyDevice is in use. The device is already owned by a block, a block dialog, or a System object™.
Unknown errorUnknown problem.

Version History

Introduced in R2012b

expand all