Main Content

Variable Pulse Delay

Delay samples by controlled, continuously variable amount

  • Variable Pulse Delay block

Libraries:
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 as at the in port.

At the beginning of the simulation, the out port is set to the value of the Initial Input parameter.

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 nonnegative 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 port at the time of the arrival of input signal determines the amount of delay introduced at the out 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.

At the beginning of the simulation, the value at the out port is equal to the value set by the Initial Input parameter. If the value at the in port is not equal to the value of the Initial Input parameter, then the output will transition to the value at the in port after a delay equal to the value at the delay port.

Programmatic Use

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

  • Use set_param(gcb,'InitialOutput',value) to set Initial Input 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.

Version History

Introduced in R2019a