Main Content

radioConfigurations

Create radio object or list radio setup configurations

Since R2022a

Add-On Required: This feature requires the Wireless Testbench™ Support Package for NI™ USRP™ Radios add-on.

Description

radioConfigurations creates a radio object for a specified radio setup configuration or lists all radio setup configurations that you have saved using the Radio Setup wizard.

radio = radioConfigurations(radioName) creates a radio object radio for the specified radio setup configuration radioName that you have saved using the Radio Setup wizard. (since R2025a)

example

configs = radioConfigurations lists all radio setup configurations configs that you have saved using the Radio Setup wizard.

example

Examples

collapse all

Call the radioConfigurations function to list all saved radio setup configurations.

configs = radioConfigurations;

Create a radio object by specifying the name of a saved radio setup configuration.

radioName = configs(1).Name
radioName = 
"MyRadio"
radio = radioConfigurations(radioName);

Call the radioConfigurations function with no input arguments to list all saved radio setup configurations.

configs = radioConfigurations
configs=1×2 struct array with fields:
    Name
    Hardware
    IPAddress
    ClockSource
    TimeSource
    LOSource
    LOExported
    LODistributed

Specify the name of a saved radio setup configuration when creating an application object, for example, a preamble detector object.

radioName = configs(1).Name
radioName = 
"MyRadio"
pd = preambleDetector(radioName);

Input Arguments

collapse all

Radio setup configuration name, specified as a string scalar. To create a radio setup configuration, set up your radio and save your radio setup configuration using the Radio Setup wizard.

For a list of supported radios, see Supported Radio Devices.

Example: "MyRadio" indicates a radio setup configuration that you saved under the name MyRadio in the Radio Setup wizard.

Output Arguments

collapse all

Radio object, returned as one of these radio objects:

For more information about radio support, see Supported Radio Devices.

Radio setup configurations, returned as a structure or structure array. Each structure contains the name of a radio setup configuration created using the Radio Setup wizard and the associated radio device, IP address, clock reference, time reference, and local oscillator (LO) information.

Data Types: struct

Version History

Introduced in R2022a

expand all