LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph Properties: Set Active Plot Colour in a Dynamic Range of Plots



@matt Dennie wrote:
... It seems the plots on a graph only exist (and can only be set as "active") after they've been drawn.

If a graph has only 'n' plots, and new data is written to it with more than 'n' plots, the graph must redraw before the new plots can be set 'active' and their properties read or written.

This means that a graph on an unselected tab or on a front panel with 'defer panel updates' set TRUE will return an error when a setting a plot active, if that plot didn't exist at the latest redraw EVEN IF THE DATA HAS BEEN WRITTEN TO THE TERMINAL.  ... I don't like this behavior, but there doesn't seem to be a way around it.


Another possible workaround/fix is to write the value of 'more than n' to the Legend: Plots Shown property of the graph in question before dealing with the new plots.
=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 11 of 11
(458 Views)