LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to update number of rows on plot legend

Solved!
Go to solution

Hi All,

how to update number of rows on plot legend programatically? I was able to do it by property node with active plot and number of rows (legend). but I have issue when trying to limit the rows with vertical scroll bar.

 

That is, I want to see 40 plots, but only 20 could be visible directly, the others could be viewed while pulling the scroll bar.

 

it is ok to do when the next time plots are less than last time. but there is error when I try to set the number of rows more than last time.

 

0 Kudos
Message 1 of 9
(1,021 Views)

R-click Legend, Visible items, Scrollbar.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 2 of 9
(1,018 Views)

I try to update names for 40 plots and set the rows to 20, the error happens. but try twice seems works. I don't know why. 

 

then ok to update names for 5 plots, set rows to 5,

 

after that, there is an error when try to update names for 30 plots and set rows to 20.

 

sorry, I can't touch my pc currently.

 

 

0 Kudos
Message 3 of 9
(995 Views)

Hi All,

I have uploaded the vi and the picture show the issue I was tring to avoid.

Download All
0 Kudos
Message 4 of 9
(943 Views)

Use Legend:Number of Rows Property. You are using the correct property but you connect the wrong wire.

ZYOng_0-1678067368075.png

 

Message 5 of 9
(934 Views)

Hi ZYOng,

If I connect to the upper wire, there will be an error when I update the plot names more than previous. that means an error will come out when replace the input array A with Array B. but don't know why this time the error didn't come out. it looks like to happen when increase the plot names first time.

 

it is ok to do for plot names less than previous.

 

but if I connect the lower wire, no errors but could not hide the other plots.

 

0 Kudos
Message 6 of 9
(925 Views)

It seems if I try to update the quantity more than the preset number of the plots, the error will come out.

for example, if the pre set number is 40, I can update the quantity from 1-40 without isssues. but when I try to update the quantity to 41, the error will come out.

0 Kudos
Message 7 of 9
(922 Views)

please help to take a look at this VI, I created a new graph and the error came out.

0 Kudos
Message 8 of 9
(914 Views)
Solution
Accepted by topic author yeah

 it seems ok to hide the legend-set the max number for the plots-and then update the number of rows.

Message 9 of 9
(885 Views)