10-25-2005 08:19 AM
ScatterPlot1.GetYData(XyCursor1.XPosition)
10-25-2005 02:54 PM
10-26-2005 07:20 AM
I want to get the Y value of the signal. I already know the X value. I should have asked my question differently:
Is there a function that return the Y value BETWEEN two points?
10-26-2005 10:14 AM
10-26-2005 01:42 PM
Hi Lew,
You may want to look at the GetPlotAt method associated with the ScatterGraph. The GetPlotAt method returns the plot at the specified location in client coordinates along with the data value and the index to the data value. For example you could say, ScatterGraph1.GetPlotAt(x, y, dataX, dataY) where x and y are the coordinates and dataX/dataY are the values. Refer to the Measurement Studio Help for detailed information regarding the GetPlotAt method and the input parameters. There are four different GetPlotAt options.
Hope this helps!
Best Regards,
10-26-2005 05:01 PM
GetPlotAt returns plot references and data points that are at the specified screen coordinates. It also only considers the screen coordinates of the points themselves. If you specify a screen coordinate that is on the line between plot points, it will return null. I do not think that this is what you're looking for.
The Measurement Studio graphs do not provide any methods to return x/y coordinates between data points. You will need to write your own interpolation calculation for this.
- Elton
10-27-2005 08:19 AM
Thank you Elton.
you understood what I was looking for.
My english is not perfect and my question was not as clear as it should have been, but thank you to every one!