thanks for the quick help beaton.
the problem i have is that my data is not a waveform, but simply x and y points. In you have a chance to look at my program, frame 2 has my X and Y seperated to graph in my XYGRAPH and the next frame is used to find the peaks of that graph.