LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

delete plots from waveform graph

How can you delete specific plots from a waveform graph?  I'm graphing a simple function, with all the data placed into an array from a for loop, then bundled together before graphing on the graph.  But there are two plots, one (in red as you will see) that I want to keep, and another (white plot) thats graphing a linear line (I think its from my iteration array).  I'd like to delete the white plot, but can not figure how to accomplish this.

 

Code attached (version 8.2)

 

 

0 Kudos
Message 1 of 33
(16,821 Views)
If you don't want it plotted, don't include it with the Build Array function. Why would you even have the Build Array if you don't want multiple plots? Just wire the graph straight to the 1D DBL array.
0 Kudos
Message 2 of 33
(16,812 Views)

In my case, the graph is a cluster, and I did not create it. One of the plots is unnecessary and I would like to delete it. I cannot find anyway to do so since selecting on any of the plots selects the whole cluster. There is no building of this cluster in the diagram... it just "is".

0 Kudos
Message 3 of 33
(16,642 Views)

Is this what you are trying to do?

0 Kudos
Message 4 of 33
(16,634 Views)

 


@mindsclay wrote:

In my case, the graph is a cluster, and I did not create it. One of the plots is unnecessary and I would like to delete it. I cannot find anyway to do so since selecting on any of the plots selects the whole cluster. There is no building of this cluster in the diagram... it just "is".


Attach your VI. "It just "is"" makes no sense to me.

 

0 Kudos
Message 5 of 33
(16,620 Views)

Why did you post your question here when you already asked it here?

 

http://forums.ni.com/t5/LabVIEW/How-do-I-delete-a-plot-from-a-waveform-chart-cluster/m-p/1412484#M54...

 

0 Kudos
Message 6 of 33
(16,614 Views)

I have been having issues receiving emails about this thread. Anyway, the "just is" was referring to the graph being on the front panel and there is no indication of how it was built. There are only properties being changed and a data input. Sorry, but I have seen no documentation on how to create a graph such as this. I can only create a "one graph' graph.

0 Kudos
Message 7 of 33
(16,572 Views)

I don't see a graph in you VI, but I do see a Waveform Chart.  It is build by taking a 1-D array of doubles, and converting it to a cluster.

 

If you want to eliminate a plot, then you need to remove that element out of the 1-D array that comes from the subVI just upstream from it.  (Look for the Waveform Chart's terminal in the Timeout Event, then the Monitor Torque case.)  Delete from array would be a good choice to remove that element so that the others remain.  You will have to change the cluster size in the right click properties of the array to cluster function from 3 to 2.  You will also have to modify the cluster in the part of the VI that clears the chart history to remove the extra element.  In the modified example below, I am removing element 1 of the array leaving elements 0 and 2.  Now you have a 2 element 1-D array, and thus two charts after it is converted to a 2 element cluster.

 

0 Kudos
Message 8 of 33
(16,565 Views)

Greetings,

I have a follow-up question to this conversation.  Based on the first post where two plots are bundled to a waveform graph terminal, I am trying to delete a plot from the graph configuration, not just the visible data.

 

When I open the property pages for my graph, I see Plot 0, ..., Plot 9 on the plots tab (in the combo box).  I copied the graph from a similar data display dialog that used all the plots.  The new display dialog only has at most 4 plots, and I would like to delete the last 5 (Plot 4, ... Plot 9).Graph Properties dialog

How do I delete elements from this ring?

 

 

0 Kudos
Message 9 of 33
(16,486 Views)

Have you tried any of the information given above?

 

Try writing data to the graph that has fewer plots in it.  Then when you stop the VI and open the properties menu, the other plot properties should be gone since those plots no longer exist in the dataset.

0 Kudos
Message 10 of 33
(16,483 Views)