This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

testConnection

Check connection between host and radio hardware

Syntax

testConnection(dev)
testConnection(dev,HostIPAddress)

Description

example

testConnection(dev) tests the connection to the radio hardware specified by dev, and 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.

example

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

Examples

collapse all

dev = sdrdev('E310');
testConnection(dev);
## Pinging radio IP address.
## Checking compatibility of software with hardware.
## Establishing connection to hardware. This process can take several seconds.
## Testing data path from Zynq board to host.
## Establishing connection to hardware. This process can take several seconds.
## Testing RF antenna loopback.
## Establishing connection to hardware. This process can take several seconds.
## Establishing connection to hardware. This process can take several seconds.
## Testing data path from RF card to host.
## Establishing connection to hardware. This process can take several seconds.
## All tests PASSED.
dev = sdrdev('E310');
testConnection(dev,'192.168.3.1')
## Pinging host IP address.
## Pinging radio IP address.
## Checking compatibility of software with hardware.
## Establishing connection to hardware. This process can take several seconds.
## Testing data path from Zynq board to host.
## Establishing connection to hardware. This process can take several seconds.
## Testing RF antenna loopback.
## Establishing connection to hardware. This process can take several seconds.
## Establishing connection to hardware. This process can take several seconds.
## Testing data path from RF card to host.
## Establishing connection to hardware. This process can take several seconds.
## All tests PASSED.

Input Arguments

collapse all

Interface to radio hardware, specified as a comm.SDRDevE310 radio object. To create this object, 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 Guided Host-Radio Hardware Setup.

See Also

Objects

Functions

Introduced in R2016b