05-26-2010 09:40 AM
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)
05-26-2010 09:46 AM
01-12-2011 12:22 PM
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".
01-12-2011 01:51 PM
Is this what you are trying to do?
01-12-2011 11:23 PM
@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.
01-12-2011 11:46 PM
Why did you post your question here when you already asked it here?
01-18-2011 02:28 PM
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.
01-18-2011 04:59 PM - edited 01-18-2011 05:00 PM
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.
02-10-2011 09:37 AM
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).
How do I delete elements from this ring?
02-10-2011 09:43 AM
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.