LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Only first plot of waveform chart has run-time menu

Solved!
Go to solution

Hello again all you helpful forum-goers!

 

My multi-plot waveform chart is working decently well, but now for some reason only the first plot in the plot legend displays a run-time customization menu when I click on it while the VI is running (allowing me to select the plot color, etc.).  All the other plots do nothing when I click on them.  I do not have any mouse-down events or filter events of any kind in my VI.  I programmatically set the number of plots and the size of the plot legend, along with each plot's name, y index, and color.  Any ideas as to what might be going on?

 

Thanks a bunch as always!

 

-Joe

0 Kudos
Message 1 of 23
(3,340 Views)

Hi,

 

do u use any decoration above the plot legand? could u post your code?

0 Kudos
Message 2 of 23
(3,334 Views)

Hi Zaki,

 

Nope, no decorations.  Unfortunately, I cannot post my code since it is for my work and proprietary.  However, I have included a screenshot of the front panel.  I hope that helps!

 

Thanks for your assistance,

 

-Joe

 

 

0 Kudos
Message 3 of 23
(3,321 Views)

Hi Joe,

 

did you check if the plot legand is disabled from advanced options of the chart?

 

0 Kudos
Message 4 of 23
(3,315 Views)

Zaki,

 

If you are referring to programmatically setting the waveform chart property "Legend: Disable", yes I just verified that it is false. 

 

It's odd; setting that property true makes the first plot behave just like all the others (nothing happens when I click on it), but setting that property false results in just the first plot responding to my click, while the others still do not.  And as far as I can tell there is no way to set that Disable property per-plot, only for the entire legend.

 

Thanks again for your suggestions,

 

-Joe

0 Kudos
Message 5 of 23
(3,308 Views)

Okay, hopefully this will help get some more thoughts / answers flowing.  I've copied my strip chart from my actual VI into a test VI, and it still exhibits the problem.  On the other hand, I have created a new strip chart from scratch, and it works fine.  I have attached both VIs here for you to see.  My guess is that some property of the first chart is set incorrectly or something, but I cannot figure out which one (and there are so many!).

 

Any assistance you can give would be appreciated. The challenge is to get the chart in the first VI working (plots other than the first responding to a mouse click to change their color or other attributes), via changing some attribute of the chart (and being able to tell me which one you changed!).

 

Thank you again for anyone who can look into this.

 

-Joe

0 Kudos
Message 6 of 23
(3,286 Views)

In earlier version of LV, attempts to show a plot that had never been seen would fail. The plot legend had to be expanded at development time to let LV know it should create those plots. In the earlier version LV would throw an error if you attempted to show or touch the non-existant plot.

 

So....

 

Could expanding at development time some how fit in to what lead up to what you are sieeing?

 

Curious,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 23
(3,282 Views)

@Ben wrote:

In earlier version of LV, attempts to show a plot that had never been seen would fail. The plot legend had to be expanded at development time to let LV know it should create those plots. In the earlier version LV would throw an error if you attempted to show or touch the non-existant plot.

 

So....

 

Could expanding at development time some how fit in to what lead up to what you are sieeing?


Certainly I could see it having something to do with that, but I can't be the only one programmatically increasing or decreasing the number of plots shown on the chart and in the legend.

 

I am a little unclear as to your meaning in the first paragraph.  When you said "show a plot that had never been seen", did you mean display a plot on the graph that had not been shown on the legend, or vice versa?  I think you mean the plot had to be shown in the legend before it would be graphed.  Either way, that shouldn't really apply for my example VI, because I'm not trying to graph anything, right?

 

-Joe

0 Kudos
Message 8 of 23
(3,279 Views)

Just as a sanity check, can someone please verify that the only thing I need to do to add plots to the legend is to change the Legend:Number of Rows property of the strip chart?  That certainly seems to be working in my successful test VI.

0 Kudos
Message 9 of 23
(3,276 Views)

Hey Jmorris!

 

You are perfectly sane, changing the LegNumRows is what you need to do. Also, I've tried your VIs and both work just fine in LV 2011.

 

Best Regards

Carlos O

0 Kudos
Message 10 of 23
(3,255 Views)