09-25-2016 09:17 AM
Hi,
Is it in Labview 2016 runtime possible to change the number of plots on a stacked chart?
I found Stack an Arbitrary Number of Plots on a Chart . But this doesn't work in the runtime engine: the Stack Plots? Property is readonly in rte also in 2016.
Has someone found a solution? Or I have to use a cheat with many waveform charts for all possible numbers (i.e. 1...8) and only show the active and hide the others?
But it is many work to keep all properties in sync.
Peter
09-30-2016 06:24 AM
Peter,
please review the context help of the waveform chart. You see how to bundle signals that a stacked display is possible.
If the number of signals is "static", you simply follow this approach, make sure that the plot legend is extended to the same number of plots you want to stack. After extending the plot legend, configure the chart to stack plots.
That is exactly what the example you linked does. Important: This is happening BEFORE the VI is executed.
I imagine that you put that code into the VI itself which will create the error you are seeing.
Norbert
09-30-2016 06:55 AM
Have you tried using the Plot.Visible? property node? It won't change the number of plots on the chart but it'll change which ones you see.