Re: How to add plot areas?
Hi Dave, Thank you for your reply! In one chart, the software can display the selected traces. The problem is I need a stack plots like user interface and hope the number of plot areas can change alonge with the number of input signal during running time. I believe Jcrooke's method of using picture control is a solution for it. Because it needs a lot of work, I didn't try it. It seems that you have simple method to handle this. Can you tell me? Best regards, George
Re: How to add plot areas?
Hi Greg, Thank you for your reply! I don't understand how to use subPanels or dynamically loaded panels that are edited using the legend properties when idle and then shown to the user. Can you tell me more what kind of legend properties can be used to control the display number of the plot areas in stack plots? Best regards, George
Re: How to add plot areas?
Hi Rolf, Thank you for your reply! It seems that graph doesn't have the choice of stack plots, right? About circular buffer, if there are a lot of points needed to display, is it possible that the size of the buffer too big? Best regards, George
Re: How to add plot areas?
I don't understand how to use subPanels or dynamically loaded panels that are edited using the legend properties when idle and then shown to the user. Can you tell me more what kind of legend properties can be used to control the display number of the plot areas in stack plots? After looking into it, you can change a stacked chart's plot areas by setting the LegendPlots Shown. One snag is that you will have to do this to your VI while it is idle since it is really a pretty major edit. So, you can do this by dynamically loading and calling the VI. When you want to change the number of plot areas, you will need to exit the dynamically called VI, modify it, and rerun it. You can do this pretty seamlessly, and if you use a subPanel control, it can even be a part of the panel and UI. The snag I didn't expect was to find that it works for clusters, but not for 2D arrays. Greg McKaskle
Re: How to add plot areas?
No, you can not add / remove plots on a Chart during runtime. You need to create multiple charts, each with desired # of plots. -Joe
Re: How to add plot areas?
Hello Joe Guo and Jcrooke, Thank you for your message! I added many charts for different situations previously in my software. I'm tired of this method. I prefer to wait for other methods. I'll try Jcrooke's suggestions in the future when I have time. Best regsrds, George
Re: How to add plot areas?
You might think that you could control a remote panel using the vi methods, but you will find that, since the Waveform Chart is a restricted type, you cannot control the number of visible plots with the Legend:Plots Shown property remotely. In fact, the only way I have found to control this property is by dragging the size buttons on the legend box when the vi is not running. It seems like something that could be improved by NI. In fact, given that the Legend:Plots Shown property has characteristics that indicate you can write to it, it appears that this is actually a bug in LabVIEW. The other possibility is that I don't yet know the trick to implementing this property. There are certain things that require the VI to be recompiled, so they cannot be carried out on a VI that is executing or reserved. To change this will take lots of work and may happen, but I wouldn't wait for it. If you will be running the VI in a development system and not an EXE or DLL, you can look at using subPanels or dynamically loaded panels that are edited using the legend properties when idle and then shown to the user. Greg McKaskle