Variable Pulse Delay

Delay samples by controlled, continuously variable amount

  • Library:
  • Mixed-Signal Blockset / Utilities

Description

Variable Pulse Delay block introduces a controllable delay in signal samples. Each sample at the in port is delayed by the value at the delay port at the time the input sample arrived. The delayed samples at the out port must maintain the same order at the in port.

Ports

Input

expand all

Input sample data, whose type and width are inherited from the signal source. The input port supports data bus operation, but does not support framed inputs.

Data Types: int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | floating point

Introduces delay to the input signal, specified as a positive scalar. The value at the delay port at the time of the arrival of input signal determines the amount of delay introduced.

Data Types: floating point

Output

expand all

Delayed output sample data, whose type and width are the same as the input signal. The value at the Delay Control port at the time of the arrival of input signal determines the amount of delay introduced at the Output port. The input and output signals must maintain the same order.

Data Types: int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | floating point

Parameters

expand all

The value at the output port before simulation, specified as a scalar.

Programmatic Use

  • Use get_param(gcb,'InitialOutput') to view the current value of Initial output.

  • Use set_param(gcb,'InitialOutput',value) to set Initial output to a specific value.

Number of samples of the input buffering available during simulation, specified as a positive scalar integer.

Programmatic Use

  • Use get_param(gcb,'BufferSize') to view the current value of Buffer Size.

  • Use set_param(gcb,'BufferSize',value) to set Buffer Size to a specific value.

Introduced in R2019a