n-Pulse Generator

Block-library: DUBSI

       block

The n-Pulse Generator generates a fixed number evenly-spaced of pulses.

The user must specify the following block-parameters:

  • the initial value of the signal
  • the number of pulses (n)
  • the pulse period in [sec]
  • the duty cycle: the percentage of the pulse period that the signal is on
  • the amplitude of the pulses (positive: upwards, negative: downwards)
  • the start time of the first pulse-signal.

These block-parameters have been illustrated in the figure below:

figure

The block is similar to the standard Pulse Generator block from the Sources library of Simulink, except that it allows the user to define the number of pulses and the initial value. If the number of pulses is set to inf and the initial value is set to 0, the block behaves the same as the standard Pulse Generator block.

The number of pulses must be set to a positive integer value. If the user specifies a fractioned value here, this value will be rounded to the nearest integer to obtain the number of pulses. If a negative value is specified, the number of pulses will be equal to zero.

April 15, 2003