03-24-2021 05:06 PM
I'm trying to extract data arrays from a graph control that has been plotted with PlotWaveform.
This discussion is very similar in principle to what I'm trying to do. So doing a...
GetPlotAttribute(panel, graph, plot, ATTR_PLOT_YDATA, data);
works well. But the same for XDATA throws a -123, since this attribute isn't valid.
So I can deduce the data if I could get the xIncrement attribute from when this data was plotted. But I don't see any such attribute anywhere.
Solved! Go to Solution.
03-24-2021 07:36 PM
At present I can only think to derive it by getting axis max-min divided by plot number of points
03-25-2021 08:50 AM
Oh of course! That works nicely, thanks.