> I have LV v 5.1. Mine application uses many different arrays
> (0-10000), and the application needs to display those arrays on the same
> graph. The problem is - when I make legend larger (stretch it on the front
> panel display), the limit seems to be Plot 194. Does this appear in different
> versions? Does anybody know how to initialise(!) the plots' appearance without
> stretching the legend? I need to initialise the graph's every plot to have
> points (attribute point number 9). I have tried to use the graph's attribute
> node running in the FOR-loop and using the index to set the active plot. Every
> loop sets the indexed plot to have points also. However, this seems to work to
> those plots, which are visible when the legend is stretched, but those plots
> in the legend which are not visible are not initialised by the for loop. I
> earlier in this message described the 194 limit, so you can understand what
> problems these two anomalous features causes together (plot 0- 194 have
> points, 195-> none)
>
> I know, this can be avoided to update every plot's (from 195->)
> appearance by using the attribute node after every new plot is acquired and
> displayed, but it is very time consuming process compared to the
> initialisation, so... Any help appreciated!
>
The legend, and most other LV objects have an interactive sizing limit
of about
4000 pixels. As with most limits, perhaps we didn't need one, but it
seemed like
a good idea at the time and helped to find bugs as the editor was being developed.
As already mentioned, attributes cannot be set on a plot that doesn't
exist. In
order for an attribute to be set on a plot, the plot needs to be shown
in the legend,
or the array wired to the graph needs to define data for the plot.
To do this programmatically, init the graph with 10,000 plots that
contain zero points.
Loop through setting the attributes, then update with real data. If
this is still too
slow, you can temporarily hide the graph, init it, then show it. If
using LV6, you can
use the panel property to disable panel updates, init, then reenable
panel updates.
By the way, if this initialization is always the same, you can do it
once, make the current value the default for the graph, and I believe
the plot information will be saved and you will not need to init each time.
Greg McKaskle