Engee documentation

Repeat

Resampling of the input signal at a higher rate by repeating the values.

blockType: Repeat

Path in the library:

/Communication Systems/Sequence Operations/Repeat

Description

Block Repeat increases the sampling rate of each input channel (by the size of on ) up to the frequency, in times the sampling rate of the input signal. To do this, the block repeats each consecutive input sample at the output. once. The integer L is set in the Repetition count, L parameter or via the input port L.

Ports

Entrance

in — input signal
scalar | vector | the matrix

The input signal is in the form of a real scalar, vector, or matrix.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool

This port has no name until you set the Repetition count source parameter to Input port.

Support for complex numbers: Yes

L — number of pass repetitions:q[<br>] positive integer ≤ Lmax

The input signal of the number of repetitions as a positive integer less than or equal to the value specified in the parameter Maximum repetition factor, Lmax.

Dependencies

To use this port, set the Repetition count source parameter to Input port.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool

Support for complex numbers: Yes

Output

Port_1 — output signal
scalar | vector | the matrix

The output signal has a sampling rate that is L times higher than the sampling rate at the input. Block Repeat shows the output signal having the same data type and the same dimension as the input signal. The size of the output signal depends on the value of the number of repetitions and the setting of the Rate options parameter.

If the Repetition count, L parameter is set to L, and the Rate parameter is set to:

  • `Enforce single-rate processing' — the block supports the sampling rate at the input, increasing the size of the output frame in once.

  • `Allow multirate processing' — the block will resample the signal in such a way that the sampling frequency at the output is It exceeds the entrance value by several times. The output signal has the same frame size as the input signal.

When you enter the number of repetitions through the input port L, the Rate options parameter is automatically set to Enforce single-rate processing. In this case, the unit supports the sampling rate of the input signal at the output, increasing the size of the output frame in once.

The output signal is a variable-size signal if one or both conditions are met.:

  • A variable-size signal is applied to the input.

  • The number of repetitions is supplied via the L port.

Data types: Float64

Support for complex numbers: Yes

Parameters

Repetition count source — the source of the number of repetitions of
Dialog parameter (default) | Input port

The source of the number of repetitions:

  • `Dialog parameter' — the number of repetitions is set in the Repetition count, L parameter.

  • `Input port' — the number of repetitions will be received through the input port L.

Repetition count, L — number of repetitions of
5 (default) | positive number

The number of repetitions is L as a positive integer. This value represents the number of repetitions of the input value by the block. This is the factor by which the block increases the output frame size or sampling rate.

Dependencies

To use this parameter, set the Repetition count source parameter to Dialog parameter.

Maximum repetition factor, Lmax — number of repetitions of
16 (default) | positive number ≥ 1

The maximum repetition coefficient is Lmax as a positive integer greater than or equal to `1'. The number of repetitions set via the input port L must be less than or equal to Lmax.

Dependencies

To use this parameter, set the Repetition count source parameter to `Input port'.

Input processing — input signal processing method
Columns as channels (frame based) (default) | Elements as channels (sample based)
Specify how the block should handle the input. You can set one of the following options for this parameter
  • Columns as channels (frame based) — when you select this option, the block treats each input column as a separate channel. In this mode, the unit can perform single-speed or multi-speed processing.

  • Elements as channels (sample based) — when you select this option, the block processes each input element as a separate channel. In this mode, the block always performs multi-speed processing.

For more information, see Signal processing by frames and counts.

Rate options — the method by which the unit increases the sampling rate of the pass input:q[<br>] Enforce single-rate processing (default) | Allow multirate processing

Specify the method by which the block increases the sampling rate of the input. You can choose one of the following options:

  • 'Enforce single-rate processing` — When you select this option, the unit supports the input sampling rate by increasing the output frame size by the L factor. To select this option, you must set the Input Processing parameter to Columns as channels (frame based).

  • 'Allow multirate processing' — when you select this option, the unit will resample the signal in such a way that the sampling rate at the output is L times faster than at the input.

Initial conditions — initial pass value:q[<br>] 0.0 (default) | scalar | matrix

Specify the value that initializes the block for cases of non-zero waiting time in the form of a scalar or matrix.