The curve values are stored in the Curve(i, n) array where:
i is the sample index
n is the curve index
Curve(43, 2) is the value of sample 43 in curve 2.
The indexes begin with 0.
In the Graph example the CurveValInit routine only calculates example curves to show.
The curves are sine curves where Amplitude is the sine amplitude, Offset is the zero offset and Omega is the sine period.
You can put in this routine whatever you need, the only restriction is the Curve array or write another routine more suited to your needs.
Depending on your scales you need to adapt the ScaleXMin, ScaleXMax , ScaleYMin and ScaleYMax values.
You could also have a look at the
Oscilloscope example.
Best regards.