# Pulse Train (G Dataflow)

Version:

Generates an array that concatenates a series of pulses according to a specific prototype pulse. This node constructs the pulse train using a specific interpolation method.

## interpolation method

Interpolation method used to construct the pulse train.

When the sampling of the pulse train is not exactly in time with the prototype pulse sampling, this node uses the specified interpolation method to get the pulse train samples.

Name Value Description
Nearest 0 Uses the nearest interpolation method.
Linear 1 Uses the linear interpolation method.
Spline 2 Uses the spline interpolation method.
Cubic Hermite 3 Uses the cubic Hermite interpolation method.

Default: Linear

## amplitude

Amplitudes of each duplication of the prototype pulse in the output pulse train.

## delay

Delay of each duplication of the prototype pulse in the output pulse train.

## prototype specification

Prototype pulse of the output pulse train.

### prototype pulse

Prototype pulse, which starts at zero in the time axis.

### dt of prototype pulse

Sampling interval of the prototype pulse.

Default: 0.1

## error in

Error conditions that occur before this node runs. The node responds to this input according to standard error behavior.

Default: No error

## dt

Sampling interval of output pulse train.

Default: 0.1

## samples

Number of samples of the output pulse train.

If samples is less than 1, this node sets pulse train to an empty array and returns an error.

Default: 128

## pulse train

An array that contains a pulse train of samples.

## error out

Error information. The node produces this output according to standard error behavior.

## Algorithm for Generating the Pulse Train

If the sequence Y represents pulse train, this node generates the pattern according to the following equation:

${y}_{i}=\underset{m=0}{\overset{M-1}{\sum }}{A}_{m}*f\left(i*\mathrm{\Delta }t-{D}_{m}\right)$

where

• f is the prototype pulse
• Δt is the dt of prototype pulse
• Am is the mth element of amplitude
• Dm is the mth element of delay, whose size must be equal to the size of amplitude

If Di - Dj is less than the width of the prototype pulse for any i, j between 0 to M - 1, overlap occurs.

The following figures show a prototype pulse and its pulse train.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported