Main Content

testConnection

Test connection between host and radio hardware

Add-On Required: This feature requires the SoC Blockset Support Package for Xilinx Devices add-on.

Description

example

testConnection(dev) tests the connection to the radio hardware specified by dev. The function checks the hardware-software compatibility, the data paths between host and radio hardware, and the RF loopback.

Before calling the function, make sure the SD card configured during hardware setup is inserted into the reader of the radio hardware. You can also configure an SD card by using the downloadImage function.

For the RF loopback test, connect a cable or antenna to the transmit-and-receive connectors.

testConnection(dev,HostIPAddress) also tests the network connection of the host computer specified by HostIPAddress.

Examples

collapse all

Create a radio object for your radio hardware. For example:

dev = sdrdev('AD936x')
dev = 
  SDRDevAD936x with properties:

     IPAddress: '192.168.3.2'
    DeviceName: 'AD936x'

Use this object to test host-radio connectivity.

testConnection(dev)
## Pinging radio IP address
## Checking compatibility of software with hardware
## Testing data path from Zynq board to host
## All tests PASSED.
ans = logical
   1

Input Arguments

collapse all

Interface to radio hardware, specified as one of the following objects:

To create these objects, use the sdrdev function.

IP address of the host network connection, specified as a dotted-quad character vector. This IP address is configured during hardware setup. See Set Up Xilinx Devices.

Version History

Introduced in R2014b