05-29-2012 07:59 AM
Hello,
I have a problem with the scales of a waveform graph. Attached is a VI that illustrates that problem.
The graph is placed on a Tab- Control, so sometimes it is visible, sometimes not.
I feed the waveform graph with datasets of different lengths and amplitudes. For certain reasons I have Autoscale switched off. But after feeding the Graph with new data, via property node I want the graph to autoscale once, then I read the scales to do some calculations. If the graph is visible, everything is fine, but if the Tab- Control hides the graph, the scales are not autoscaled.
What would be the trick to autoscale the graph when it is hidden?
Greets, Dave
Solved! Go to Solution.
05-29-2012 08:22 AM
From the LabVIEW Help:
Note LabVIEW does not include hidden plots when you autoscale the axes of a graph or chart. If you want to include the hidden plots when you autoscale, make the hidden plots transparent instead. Right-click the plot legend and select Color from the shortcut menu to change the color of plots.
The above presumably applies to graphs that are not visible as well, though it's not stated explicitly.
You could, as an alternative:
05-29-2012 10:03 AM
This explanation seems reasonable to me, though I don't think it should be that way. Perhaps it's for performance reasons.
I will store in a boolean, whether the graph was autoscaled already (which is true if the Tab pane is visible) and do it later, when switched to that pane.
Thank you,