Thanks for the reply.
This is not the problem however, I'll try being a bit more specific.
I can get one value from the graph, that is no problem, my problem is that I want to be able to move my cursor around the graph, and every time I press a button, the current value is added to an array. This way I can quickly manually select some peaks from a range of data.
My problem is I can't get it to work. If I place an "insert into array" in a case statement, I can't loop the output to the input. I can do this in a while loop, but that way I get thousands of points in my array while I go from one point in the graph to the next.
So how can I combine these two?