Trapezper function

Interest

The Trapezper function allows creating periodic trapezoidal signals.

Definition

The Trapezper(X,X1,X2,X3,X4,X5,X6,X7) function is a periodic trapezoidal function whose arguments X, X1, X2 , X3, X4 , X5, X6 and X7 are explained in the block below.

Note: The arguments X, X1, X2 , X3, X4 , X5, X6 and X7 can be formulas.

Operation mode

In case of transient application it is possible to define the periodic trapezoidal pulse function shown in the figure below.

Create an I/O parameter: PE = Trapezper(TIME, A, B, Tp, T1, T2, T3, Td)

where:

  • TIME is the time parameter
  • A is the minimal value
  • B is the maximal value
  • Tp is the period
  • T1 is the time interval of linear increase of the function
  • T2 is the time interval of constant value of the function
  • T3 is the time interval of linear decrease of the function
  • Td is the value of initial time delay

Example

An example of the Trapezper function is presented below.

Periodic trapezoidal pulse function: PA(t) = Trapezper(t,0,10,10,2,3,2,1)