主要内容

applyConfiguration

R2026b

Configure SDR hardware without transmitting or receiving data

Since R2026b

Description

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

applyConfiguration(tx) configures the radio hardware for the transmitter without transmitting the data. The function configures the hardware by applying the current property values of the tx System object™.

example

applyConfiguration(rx) configures the radio hardware for the receiver without receiving the data. The function configures the hardware by applying the current property values of the rx System object.

Use applyConfiguration to separate radio configuration from data transfer. This workflow is useful when you use FPGA I/O interfaces for data movement and use sdrtx and sdrrx objects only to configure software-defined radio (SDR) hardware.

After configuration, you can use the System objects for transmit and receive operations or to communicate with the FPGA design through FPGA I/O interfaces.

Examples

collapse all

Use applyConfiguration in an FPGA I/O workflow when you want to configure the SDR hardware by using SDR System objects and transfer data through FPGA I/O interfaces. This workflow is useful for hardware/software co-design applications where FPGA user logic processes the data and MATLAB® communicates directly with the generated FPGA design through FPGA I/O interfaces.

Create processor and FPGA hardware objects that represent a connection to the target hardware.

hProcessor = xilinxsoc("192.168.3.2");
hFPGA = fpga(hProcessor);

Create SDR transmitter and receiver objects.

tx = sdrtx("AD936x", ...
    IPAddress="192.168.3.2");

rx = sdrrx("AD936x", ...
    IPAddress="192.168.3.2");

Apply the transmitter and receiver settings to configure the SDR hardware.

applyConfiguration(tx)
applyConfiguration(rx)

Write data to an FPGA input interface and read processed data from an FPGA output interface.

writePort(hFPGA,"AXI4S_Data_In",txData)

rxData = readPort(hFPGA,"AXI4S_Data_Out");

Input Arguments

collapse all

SDR transmitter, specified as a System object.

To create one of these transmitter System objects, use the sdrtx function.

Example: sdrtx("AD936x")

Example: sdrtx("FMCOMMS5")

SDR receiver, specified as a System object.

To create one of these receiver System objects, use the sdrrx function.

Example: sdrrx("AD936x")

Example: sdrrx("FMCOMMS5")

Version History

Introduced in R2026b