LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clearing the cursor legend programatically

I am able to clear a graph legend when the program starts, but the legend will not populate with the new cursor names. The fields stay grayed out.
0 Kudos
Message 1 of 7
(3,193 Views)

You do not indicate which version of LV you are using or what method you are using!

Please take a look at the attached LV 6.1 example.

In it I was able to write the cursor names using the cursor list property.

It also demonstrates that the acitve cursor>>>cursor name property will NOT work for a cursor that has not been defined (sora like you can not replace an array element that lies outside your array).

I hope this help,

Ben


Ben Rayner
Certified LabVIEW Developer
www.DSAutomation.com


**** Bonus Quesion ****
S
o what does "hair style" have to do with this demo?

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 7
(3,193 Views)
I am using LV7.
Bert
0 Kudos
Message 3 of 7
(3,193 Views)
I have a ttached the file I am trying to use. Also attached is the CSV file I am reading.
Download All
0 Kudos
Message 4 of 7
(3,193 Views)
Hi Bert,

I posted the example in LV 6.1 becuase it will open in both 6.1 and 7!

It demonstrates how to do what you asked and why the method you are using fails.

Please look at my demo!

Note:
The For loop in your code is NOT sequenced with your other operations so it will not nessesarily execute before the rest of your code.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 7
(3,193 Views)
> I am able to clear a graph legend when the program starts, but the
> legend will not populate with the new cursor names. The fields stay
> grayed out.

There are multiple legends on a graph. The plot legend is for plot
properties, the cursor legend for cursor properties, and the scale
legend for scale properties. By default only the plot legend is
visible, and so it is often called simply the legend.

It sounds like you cleared the cursor legend and you might expect the
cursors to show back up as data is written to the graph. Cursors will
show up when a property node defines where they go and what they look
like, or when they are interactively defined usign the legend, but they
will not automatically be placed on the graph when new data is plotted
.

Greg McKaskle
0 Kudos
Message 6 of 7
(3,193 Views)
Problem solved. Thanks for the help.
Bert
0 Kudos
Message 7 of 7
(3,193 Views)