application of triangular wave generator