ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

modify plot name

Solved!
Go to solution

I am modifying a program that has an XY Graph on the front panel.  It has 5 plots.  When I started working on it it had the first 3 plots shown in the plot legend.  I have added a second Y scale and made the last 2 plots visible in the legend.  I then change the names of the last two from plot 3, plot 4 to something meaningful, and assign plot 2 and plot 4 to the second Y scale.  When I run the VI the names of 3 & 4 revert to plot 3,4 and plot 4 reverts to the first Y scale.  I tried this programatically, with assign the active trace etc. but I can only change the attributes of the first three plots.  What's up with that?

Jim

LV 2020
0 Kudos
Message 1 of 2
(2,458 Views)
Solution
Accepted by topic author lmtis

I left out one detail in the first posting.  The chart gets it's data from a sub-vi, which was created using "create sub-vi".  The data is passed to the chart via property node.  I destroyed the reference, control refnum, and property node.  Then I changed the plot names and axis assignments, and then recreated the reference, control refnum, and property node.  All is well. 

Jim

LV 2020
0 Kudos
Message 2 of 2
(2,424 Views)