LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph legend limit 'Plot194'

Hi all,

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 wh
en 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!


Best regards,
Ville Kampman
vkampman@ee.oulu.fi
0 Kudos
Message 1 of 3
(2,883 Views)
Before going into the FOR loop, initialise the graph with as many plots as
you need. The plots can be simply empty arrays, but if a plot has not been
initialised either by having data or being visible in the legend then it
can't be modified by attribute nodes. Using attribute nodes on a graph that
just has empty datasets is not very time consuming since it's not having to
redraw after every update.

Kampman wrote in message
news:970iti$lhv$1@ousrvr3.oulu.fi...
> Hi all,
)
>
> 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!
>
>
>
Best regards,
> Ville Kampman
> vkampman@ee.oulu.fi
>
0 Kudos
Message 2 of 3
(2,883 Views)
> 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
0 Kudos
Message 3 of 3
(2,883 Views)