SimPowerSystems    
Timer

Generate a control logical signal changing at specified transition times

Library

Extras/Control Blocks

Description

The Timer block generates a control signal (0-1) changing at specified transition times. Use this block to control the opening and closing times of power switches like the Breaker block and the Ideal Switch block. Definition of the state at time 0 is optional. If it is not defined, it is considered as the complement of the first value specified in the States vector.

Dialog Box and Parameters

Transition times (s)
The transition times, in seconds, when the output of the block changes its value as defined by the States (0/1) parameter. The Transition times (s) parameter must be a vector of the same length as the vector defined in the States (0/1) parameter. The definition of the time 0 is optional.
States (0/1)
The sequence of states to be generated by the Timer block. The States (0/1) parameter must be a scalar or a vector of 0 and 1. The States (0/1) parameter must be a vector of the same length as the vector defined in the Transition times (s) parameter. The definition of the initial state is optional.
Sample time (s)
Specify the sample time, in seconds, to synchronize the transitions of the Timer block when the simulation is discrete.

Inputs and Outputs

The output is a logical signal that is used to control the switching of any Power Electronics device or Breaker block.

Example

See the Breaker block Example section for a demo using the Timer block. The demo circuit is psbbreaker.mdl.


  Thyristor Total Harmonic Distortion