LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
TomBrass

Make the Legend index a Read/Write Property for Graphs

Status: New

Add the Legend index as a Read/Write property for graphs.  This will give the programmer to option to programmatically change what is displayed in the plot legend, as well as changing other areas of the user interface based on what is displayed in the legend.

Tom Brass
Certified LabVIEW Architect
Saint Bernard Engineering, Inc.
www.saintbernardengineering.com
4 Comments
stbe
Active Participant

What exactly do you want to modify?

A great number of dynamic GUI changes can already be programmed:

 

waveform.png

Unfortunately, the snippet seems to be broken - you need to replace the control with a refnum-constant of the wavefrom graph.

 

regards.

_________________________
CLA
TomBrass
Member

Enable the index (and/or the scrollbar) on the legend.

 

Now change the index.  How can you identify that programmatically?

 

Let's say you wanted to provide the operator with additional information for each plot, in a table.  If you have several plots, maybe you'd like to have a scrollbar.  When you move the scrollbar on the table, you'd want to programmatically change the scrollbar on the legend to match.  Enclosed is an example of what this might look like.

 

In my example below, I have five plots displayed in the legend and corresponding table.  If I have more than 5, I can't scroll both the table and legend at the same time.  If I had access to the legend index (just like I have access to the table index), then I could.

 

Tom

 

Graph with legend table.JPG

Tom Brass
Certified LabVIEW Architect
Saint Bernard Engineering, Inc.
www.saintbernardengineering.com
mishklyar
Member

Wonderfull idea.Found it by googling for "legend index labview". Struggling with it now.My client wants the ability to enable/disable

graphs based on the legend.

 

Michael.

_________________________________________________________________________________________________
LV 8.2 at Windows & Linux


X.
Trusted Enthusiast
Trusted Enthusiast

I concur with that request. The problem is that the newly introduced legend scrollbar messes up things. It is not sufficient to know how many plots are shown in the legend. You also need to know which one is the first to be displayed in the list. I am illustrating this in a question I posted here.