LabWindows/CVI

Showing results for 
Search instead for 
Did you mean: 
Reply

Snap graph cursor to nearest visible plot

Snap graph cursor to nearest visible plot

In LabWindows/CVI, it is wonderful that the user can use the graph cursor to snap to the nearest data point.  But my graph contains both visible and invisible plots.  I want the graph cursor to snap to the nearest data point of a visible plot only, ignoring the invisible ones.  Advice?
 
Josh Moses
The Modal Shop
 
0 Kudos
Message 1 of 3 (911 Views)
Reply
0 Kudos

Re: Snap graph cursor to nearest visible plot

Josh,

You can configure whether a cursor can snap to a particular plot by setting this plot attribute:

SetPlotAttribute (panel, graph, plot, ATTR_PLOT_SNAPPABLE, 0);

I might have expected hidden plots to not be snappable by default, but apparently they're not, so you'll have to also set this attribute whenever you hide a plot.

Luis
NI
Message 2 of 3 (909 Views)

Re: Snap graph cursor to nearest visible plot

Great!  Thanks so much!

0 Kudos
Message 3 of 3 (904 Views)
Reply
0 Kudos