Valid function


The Valid function allows creating square wave signals.


The Valid(X,X1,X2) function returns:

  • 1, if X is in [X1 , X2[
  • 0, otherwise


  • The arguments X1 or X2 can be omitted.

    In this case, X1 is replaced by -∞ and X2 by +∞.

  • The arguments X and X1 and X2 can be formulas.

Operation mode

In case of transient application it is also possible to define a rectangular pulse function described in the figure below.

Create an I/O parameter: PE = Valid(TIME, T1 , T2 )


  • TIME is the parameter time
  • T1 is the instant of the pulse start
  • T2 is the instant of the pulse end


An example of the Valid function is presented below.

A Rump function truncated by a gate function: RP(t) = t*Valid(t,10,20)