09-13-2019 05:37 PM - edited 09-13-2019 05:41 PM
Hello.
Chart legends do not update programmatically if the legend is scrolled down.
I am including a small demo VI (LV2015).
Plot 4 (5) is set to toggle between 2 widths.
Run the VI and scroll the legend down.
Even though the plot in the chart changes, the legend display is not updated if the scroll position is >0.
Does anybody have any work arounds? I haven't been able to find anything.
09-13-2019 05:45 PM
I see what you mean. Actually it will sometimes update when not on zero if you happen to be dragging the scroll bar around.
Probably a bug, and one not likely anyone has ever discovered before. How common is it to programmatically change a line width?
Possible work around:
1. Get legend position
2. Move to 0.
3. Set properties.
4. Return legend back to position from #1.
You might also want to try to Defer then undefer Front Panel Updates.
09-16-2019 09:38 AM
Thank you for your reply.
"Probably a bug, and one not likely anyone has ever discovered before."
Yes I agree. I have ignored it up till now but decreased chart space has forced the issue.
"How common is it to programmatically change a line width?
I don't know what other people do.
I use this alot to give the chart a "flash plot" function. It is very handy when there are alot of plots clustered together and the operator wants to keep an eye on things. The VI can use this as an alert. Groups of plots or individual plots can be stepped through.
It is also useful to be able to visually connect a plot to a control/indicator that is "moused over".
I may be able to use your possible work around for the "mouse over" function as it is more of a one shot low rate event.