MATLAB Examples

Multirate Processing with OQPSK Modulator Block

This example shows the OQPSK Modulator Baseband block configured for multirate processing using integer or bit for the input type.

Open the slex_oqpskmod_samplebased model.

model = 'slex_oqpskmod_samplebased';
open_system(model);

In multirate processing mode, the input and output signals have different port sample times. In this mode, the input to the block must be one symbol.

sim(model);
  • When you set the Input type parameter to Integer, the input must be a scalar value.
  • When you set Input type parameter to Bit, the input width must equal two.

The output sample time is the symbol period divided by Samples per symbol. The first output symbol is an initial condition of zero that is unrelated to the input values.