This disclosure describes techniques for generating a set of data points
that form a triangular wave having a desired gain and a desired
frequency. In one example, the method includes the step of (a)
determining an increment value based on the desired frequency and the
desired gain of the triangular wave. The method further includes the step
of (b) adding the increment value to a current data point to generate a
next data point, the current data point and the next data point forming a
subset of the set of data points. The method further includes the step of
iteratively performing (a) and (b) to generate the set of data points
that form the triangular wave.