main content

create, impair, visualize, and export 5g nr waveforms -凯发k8网页登录

create, impair, visualize, and export 5g nr waveforms

since r2020a

description

the 5g waveform generator app enables you to create, impair, visualize, and export 5g nr waveforms.

the app provides these capabilities by using the wireless waveform generator app configured for 5g nr waveform generation. using the app, you can:

  • generate nr uplink and downlink carrier waveforms.

  • generate nr test models (nr-tm) for fr1, as defined in ts 38.141-1 section 4.9.2 [1].

  • generate nr-tm for fr2, as defined in ts 38.141-2 section 4.9.2 [2].

  • generate nr downlink fixed reference channel (frc) waveforms, as defined in ts 38.101-1 annex a.3 [3].

  • generate nr uplink frc waveforms, as defined in ts 38.104 annex a [4].

  • export the nr waveform to your workspace or to a .mat or a .bb file.

  • export nr waveform generation parameters to a runnable matlab® script or a simulink® block.

    • use the exported script to generate your waveform without the app from the command line.

    • use the exported block as a waveform source in a simulink model. for more information, see .

  • visualize the nr waveform in spectrum analyzer, channel view, ofdm grid, resource element (re) mapping (only downlink and uplink), and complementary cumulative distribution function (ccdf) plots. the app instantly updates the ofdm grid and the channel view plots to reflect the current waveform configuration. the ofdm grid also highlights the conflicts across channels and signals.

  • distort the nr waveform by adding rf impairments, such as awgn, phase offset, frequency offset, dc offset, iq imbalance, and memoryless cubic nonlinearity.

  • generate an nr waveform that you can transmit using a connected radio or lab test instrument.

    • to transmit a waveform by using an sdr, connect one of the supported sdrs (adalm-pluto, usrp™, usrp embedded series, and xilinx® zynq-based radios) to your computer and have the associated add-on installed. for more information, see .

    • to transmit a waveform by using a lab test instrument, the connected lab test instrument must:

      • support the tcp/ip interface

      • use one of these drivers — agrfsiggen, rsrfsiggen, agrfsiggen_scpi, or rsrfsiggen_scpi

      • be supported by the (instrument control toolbox) function

      for more information, see (instrument control toolbox). this feature requires instrument control toolbox.

    • to transmit your waveforms over the air at full radio device rates, use the wireless testbench™ software and connect a supported radio to your computer. for a list of radios that support full device rates, see supported radio devices (wireless testbench). this feature requires wireless testbench. for an example, see transmit app-generated wireless waveform using radio transmitters.

to create, impair, visualize, and export waveforms other than nr waveforms, you must reconfigure the app. for a full list of features, see the wireless waveform generator app.

for more information, see create waveforms using wireless waveform generator app.

open the 5g waveform generator app

matlab toolstrip: on the apps tab, under signal processing and communications, click the app icon.

matlab command prompt: enter nrwaveformgenerator. this command opens the wireless waveform generator app configured for 5g waveform generation.

examples

this example shows how to generate standard-compliant nr uplink and downlink carrier waveforms, nr test models (nr-tm), and nr uplink and downlink fixed reference channel (frc) waveforms by using the 5g waveform generator app. the example also discusses waveform exporting and transferring options available in the app.

open 5g waveform generator app

on the apps tab of the matlab® toolstrip, under signal processing and communications, click the 5g waveform generator app icon. this app opens the wireless waveform generator app configured for 5g waveform generation.

select 5g nr waveform

in the waveform type section on the app toolstrip, click the waveform you want to generate. select one of these waveforms.

  • 5g downlink

  • 5g uplink

  • 5g test models

  • 5g downlink frc

  • 5g uplink frc

generate 5g nr waveform

depending on the selected waveform, the app presents specific tabs where you can set the parameters of the selected waveform. on the app toolstrip, in the generation section, you can add impairments and set visualization tools applicable for the selected waveform. to visualize the waveform on the selected visualization tools, click generate.

for example, this figure shows the visualization results of a 5g nr downlink waveform using default parameters.

export generated waveform to matlab workspace or file

to export the generated waveform, on the app toolstrip, in the export section, select export to workspace or export to file. you can export the waveform as a structure to the matlab workspace or a mat-file (.mat). you can also export the waveform to a baseband file (.bb).

export waveform configuration parameters to matlab script

to export waveform configuration parameters as a matlab script, on the app toolstrip, in the export section, select export to matlab script. you can run the exported matlab script to generate the waveform without the app.

export waveform configuration parameters to simulink

to export waveform configuration parameters as a simulink block, on the app toolstrip, in the export section, select export to simulink. you can use the exported block to generate the waveform in a simulink model without the app.

transmit 5g nr waveform

to transmit the generated waveform using a connected radio or lab test instrument, on the app toolstrip, click on the transmitter tab.

  • to transmit your waveforms over the air at full radio device rates, use the wireless testbench™ software and connect a supported radio to your computer. for a list of radios that support full device rates, see supported radio devices (wireless testbench). this feature requires wireless testbench.

  • to transmit a waveform by using an sdr, connect one of the supported sdrs (adalm-pluto, usrp™, usrp embedded series, and xilinx® zynq-based radios) to your computer and have the associated add-on installed. for more information, see .

  • to transmit a waveform by using a lab test instrument, connect one of the instruments supported by the (instrument control toolbox) function to your computer. for more information, see (instrument control toolbox). this feature requires instrument control toolbox.

use the ni™ usrp™ n310, usrp n320, usrp n321, usrp x310, and usrp x410 radio transmitters, available in the wireless waveform generator app, to transmit an app-generated waveform over the air (requires wireless testbench™). these radio transmitters enable you to transmit up to 2 gb of contiguous data over the air at full radio device rate.

introduction

the wireless waveform generator app is an interactive tool for creating, impairing, visualizing, and transmitting waveforms. using a radio transmitter available in the app, you can transmit your generated waveform repeatedly over the air. you can also export the waveform generation and transmission parameters to a runnable matlab script. configure these radio transmitters to transmit an ofdm waveform. the same process applies for all waveform types that you can generate with the app.

set up for radio transmission

to use the radio transmitters in the app, you must install the wireless testbench support package for ni usrp radios add-on, and set up your radio outside the app. for more information, see (wireless testbench).

generate waveform for transmission

open the wireless waveform generator app by clicking the app icon on the apps tab, under signal processing and communications. alternatively, enter wirelesswaveformgenerator at the matlab command prompt.

in the waveform type section, select an ofdm waveform by clicking ofdm. in the waveform pane of the app, specify the parameters of ofdm waveform configuration, qam waveform configuration, and filtering configuration for the selected waveform. then, generate the configuration by clicking generate in the app toolstrip.

configure radio transmitter

select the transmitter tab from the app toolstrip. in the transmitter gallery, select a radio transmitter.

in the waveform pane of the app, select the name of a radio setup configuration that you saved using the radio setup wizard. for more information, see (wireless testbench).

set the center frequency, gain, and antennas configuration parameters. the app automatically sets the waveform sample rate based on the waveform that you generated earlier. the radio transmitter uses onboard data buffering to ensure contiguous data transmission at up to the full hardware sample rate. if necessary, to achieve the specified sample rate, the radio uses a farrow rate converter. use this list as a reference when setting the sample rate:

  • usrp n310: 120,945 hz to 76.8 mhz, or one of: 122.88 mhz, 125 mhz, or 153.6 mhz

  • usrp n320: 196,851 hz to 125 mhz, or one of: 200 mhz, 245.76, mhz or 250 mhz

  • usrp n321: 196,851 hz to 125 mhz, or one of: 200 mhz, 245.76 mhz, or 250 mhz

  • usrp x310: 181,418 hz to 100 mhz, or one of: 184.32 mhz or 200 mhz

  • usrp x410: 241,890 hz to 125 mhz, or one of: 245.76 mhz or 250 mhz

transmit waveform

to transmit the waveform continuously, click transmit. to end the continuous transmission, click stop transmission. to export the waveform generation and transmission parameters to a runnable matlab script, click export matlab script.

limitations

in matlab online™, the 5g waveform generator does not support signal transmission with sdr devices or test instruments.

references

[1] 3gpp ts 38.141-1. “nr; base station (bs) conformance testing part 1: conducted conformance testing.” 3rd generation partnership project; technical specification group radio access network.

[2] 3gpp ts 38.141-2. “nr; base station (bs) conformance testing part 2: radiated conformance testing.” 3rd generation partnership project; technical specification group radio access network.

[3] 3gpp ts 38.101-1. “nr; user equipment (ue) radio transmission and reception; part 1: range 1 standalone.” 3rd generation partnership project; technical specification group radio access network.

[4] 3gpp ts 38.104. “nr; base station (bs) radio transmission and reception.” 3rd generation partnership project; technical specification group radio access network.

version history

introduced in r2020a
网站地图