Generates an array that concatenates a series of pulses according to the Prototype Pulse. This VI constructs the Pulse Train output by the specified interpolation method.


icon

Inputs/Outputs

  • ci32.png interpolation method

    interpolation method specifies the interpolation method used to construct the Pulse Train. The default is Linear (1).

    0Nearest
    1Linear (default)
    2Spline
    3Cubic Hermite
  • ci32.png samples

    samples is the number of samples of the Pulse Train. If samples is less than 1, the VI sets Pulse Train to an empty array and returns an error. The default is 128.

  • cdbl.png delta t of pulse train (s)

    delta t of pulse train (s) is the sampling interval of Pulse Train. The default is 0.1.

  • c1ddbl.png Amplitude

    Amplitude specifies the amplitudes of each duplication of the Prototype Pulse in the Pulse Train.

  • c1ddbl.png Delay (s)

    Delay (s) specifies the delay of each duplication of the Prototype Pulse in Pulse Train.

  • ccclst.png prototype spec

    prototype spec specifies the prototype pulse of the Pulse Train.

  • c1ddbl.png Prototype Pulse

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

  • cdbl.png delta t of Prototype Pulse (s)

    delta t of Prototype Pulse (s) is the sampling interval of Prototype Pulse. The default is 0.1.

  • i1ddbl.png Pulse Train

    Pulse Train is an array that contains a pulse train of samples.

  • ii32.png error

    error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

  • If the sequence Y represents Pulse Train, the Pulse Train VI generates the pattern according to the following equation.

    where f is the Prototype Pulse, Δt is the delta t of pulse train, Am is the m-th element of Amplitude, and Dm is the m-th element of Delay (s), whose size must be equal to the size of Amplitude.

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

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

    The following two front panels show a prototype pulse and its pulse train.

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Signal Processing\Signal Generation\Pulse Train demo.vi