Main Content

Timer

Generate signal changing at specified transition times

Library

powerlib_extras/Control Blocks, powerlib_extras/Discrete Control Blocks

Note

The Pulse & Signal Generators section of the Control and Measurements library contains the Stair Generator block. This is an improved version of the Timer block. The new block features a mechanism that eliminates duplicate continuous and discrete versions of the same block by basing the block configuration on the simulation mode. If your legacy models contain the Timer block, they continue to work. However, for best performance, use the Stair Generator block in your new models.

  • Timer block

Description

The Timer block generates a signal changing at specified transition times. Use this block to generate a logical signal (0 or 1 amplitude) and control the opening and closing times of power switches like the Breaker block and the Ideal Switch block. You can also use this block to generate a signal whose amplitude changes by steps at specified transition times.

Parameters

Time(s)

The transition times, in seconds, when the output of the block changes its value as defined by the Amplitude parameter. The Time(s) parameter must be a vector of the same length as the vector defined in the Amplitude parameter. The definition of the time 0 is optional. If a signal is not specified at time 0, the output is kept at zero until the first transition time specified in the Amplitude vector.

Amplitude

The vector of amplitudes of signal to be generated by the Timer block. The amplitude is kept constant between transition times defined in the Time(s) vector.

Inputs and Outputs

The output is a signal changing by steps at specified transition times.

Version History

Introduced before R2006a