LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

plot

how to get a particular value(plot range i.e x,y axis ) from the plot after plotting the value and what command is used in cvi to get the particular value. 

0 Kudos
Message 1 of 4
(2,837 Views)

Are you trying to get the X and Y arrays out of a plot? If so, you can call GetPlotAttribute with ATTR_PLOT_XDATA and ATTR_PLOT_YDATA attributes. Max and min values can be derived from the arrays.



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 4
(2,538 Views)

I need examples for   attr_plot_ydata  and plotxy  in cvi 

 

0 Kudos
Message 3 of 4
(2,442 Views)

CVI offers a valuable function for searching among the examples installed in the system: the Example Finder can be launched with Help >> Find Examples... menu function. Searching for "plot" will return a series of examples that you can look at to understand how to perform several functions in CVI.

Specifically, GraphZooming.cws example shows how to use ATTR_PLOT_ZDATA_SIZE and ATTR_PLOT_ZDATA to retrieve values from a graph: this can be easily modified to work on X and Y axes.



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 4 of 4
(2,401 Views)