LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting unused plots from Chart

I'm trying to delete the 'Plot' from a chart.

The VI containing chart is in 'Edit Mode' and still I'm getting an error (1093).

 

Please find the attached library containing the VIs (version 2015)

0 Kudos
Message 1 of 7
(4,389 Views)

Do you want to clear one plot _data_ and keep others?

My guess the only way is programmatic - read history data, replace bad plot with Nans, overwrite history. Different plots can not have different amount of data, Nan only hides it from display.

You can clear all data (Data operations -> Clear Chart)

If you want to delete plot (had 3 plot chart, now have only 2 plot chart), change size of bundle cluster.

LV 2011, can not open your VIs. 

0 Kudos
Message 2 of 7
(4,376 Views)

Thanks for your reply.

Intent is to delete a plot and not hide from being displayed.

For hiding, we can also use: Active Plot >> Plot Visible

 

Attach is code saved in version 2011.

0 Kudos
Message 3 of 7
(4,371 Views)

11 plots vi is still 2015 😃

workaround with N element cluster constant wired to chart

Download All
0 Kudos
Message 4 of 7
(4,356 Views)

@Alexander_Sobolev wrote:

11 plots vi is still 2015 😃


My bad, please find the code saved in 2011.

I checked your solution, but thats not what I'm looking for.

0 Kudos
Message 5 of 7
(4,315 Views)

It seems to me that chart (graph and wfm) type is determined only by the wire that goes into it. I do not see methods that might affect it (or controls in GUI) - that should be if there was way to work with type directly. Like button add, delete plot in any of the graphs, method to select waveform type (1-D array, 2-D array or waveform(s))

0 Kudos
Message 6 of 7
(4,293 Views)

I was hoping to wire single channel (scalar, DBL) but no luck.

I'm wondering that, what is the use of Invoke node (Plot >> Delete).

0 Kudos
Message 7 of 7
(4,289 Views)