LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

get plot x data from a waveform

Solved!
Go to solution

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.

0 Kudos
Message 1 of 3
(1,048 Views)
Solution
Accepted by topic author ElectroLund

At present I can only think to derive it by getting axis max-min divided by plot number of points



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(1,021 Views)

Oh of course!  That works nicely, thanks.

0 Kudos
Message 3 of 3
(1,000 Views)