Main Content

Waveform From Wireless Waveform Generator App

Wireless waveform source exported to万博1manbetx

  • 库:
  • None

  • Waveform From Wireless Waveform Generator App block

Description

The Waveform From Wireless Waveform Generator App block is generated using theWireless Waveform Generator应用程序。You can use the generated block as a wireless waveform source in a Simulink®model.

Note

The actual block name and output waveform depend on the waveform that you configure in the app before generating the block.

For an overview of the waveform types that you can export to Simulink, see theWireless Waveform Generator应用程序。

To generate a block:

  1. On the app toolstrip, in theWaveform Type部分中,点击the waveform that you want to configure and export to Simulink.

  2. Set the parameters of the selected waveform.

  3. On the app toolstrip, in theExport部分中,点击Exportand selectExport to Simulink.

TheInitializationtab of the Mask Editor window contains the MATLAB®代码块执行configu输出red waveform. To access read-only block parameters and waveform configuration parameters, use theUserDatacommon block property, which is a structure with these fields.

  • WaveformConfig— Waveform configuration parameters

  • WaveformLength— Waveform length

  • Fs— Waveform sample rate

For more information on how to use the generated block, seeGenerate Wireless Waveform in Simulink Using App-Generated Block.

Limitations

With the exception of blocks that are generated for 5G NR waveforms, blocks that are generated using random user-defined signal data for the waveform do not support rapid accelerator mode. To enable rapid accelerator mode in these blocks when you set theBit-sourceapp parameter toUser-defined, use pseudo-noise (PN) data as the data source.

Ports

Output

expand all

Time-domain wireless waveform, returned as a complex matrix. The number of matrix columns corresponds to the number of transmit antennas. The waveform type you select in the app determines the output waveform type. To access waveform configuration parameters, use theWaveformConfigstructure field of theUserDatacommon block property.

Data Types:double
Complex Number Support:Yes

Parameters

expand all

Read-Only Waveform Parameters

The block automatically updates these parameters based on the waveform configuration in theInitializationtab.

This parameter is read-only.

To access this parameter, use theFsstructure field of theUserDatacommon block property. Units of theFsstructure field are in Hz.

This parameter is read-only.

To access this parameter, use theWaveformLengthstructure field of theUserDatacommon block property. Units of theWaveformLengthstructure field are in samples.

Simulation Parameters

These parameters control how the block outputs the waveform during simulation.

This parameter specifies the number of samples to buffer into each output frame. This parameter value must evenly divide theWaveform lengthparameter value.

This parameter specifies the output values after the block has output all available waveform samples.

  • When you selectCyclic Repetition, the block repeats the waveform from the beginning after reaching the last sample in the waveform.

  • When you selectSetting To Zero, the block generates zero-valued outputs for the duration of the simulation after generating the last frame of the waveform.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

版本History

Introduced in R2021b