@m3nth wrote:
either method makes later attempts to modify settings for the math channel cause an error (setting the active Y scale = 2 causes an error, since math is the 3rd scale, or 2nd w/ 0-based indexing).
Is there any way to make it not visible in the legend without causing an error for active scale or other properties I would like to set?
You made a confusion between scale and plot : Math is the second PLOT not SCALE. Scale refers to the Y axis. What you should have done is
1/ select the Active Plot ;
2/ make it Visible or not.
See the attached vi, a direct answer to your question.
However, this method is far from perfect : it works only if you need to show or hide the LAST plot of the series. If you hide an intermediate plot, the chart legend displays the hidden plot name, in front of an empty box. Moreover, the Autoscale property takes the hidden plot into account, not a desirable behavior.
A better, but more involved solution, would be to redraw the entire graph, choosing which plot to display. But there, you would have to manage the plot names, the colors, the point styles, etc...
May be NI, the world leader in graphic programming, could spend some more effort to improve its graphic tools... First getting rid of the major bugs ?
CC
Chilly Charly (aka CC)