Generate signal changing at specified transition times
The Timer block generates a signal changing at specified transition times. Use this block to generate a logical signal (0 or 1 amplitudes) 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.
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.
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.