From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change a graph indicator label programatically?

Solved!
Go to solution

I learned how to do this in NXG but now that NXG is dying I am learning LabVIEW. I need to change the label of a graph programatically.

 

Image 15.png

 

I have a reference to the graph and have the following code:

Image 14.png

 

I am getting an error:

Error 1073 occurred at Property Node (arg 1) in Read files.vi

LabVIEW: (Hex 0x431) This property is writable only when the VI is in edit mode, or this method is available only when the VI is in edit mode.

 

How do you update the label of a graph programatically in LabVIEW?

0 Kudos
Message 1 of 3
(1,086 Views)
Solution
Accepted by topic author flycast

You can't.

Use the caption instead.

 

George Zou
0 Kudos
Message 2 of 3
(1,062 Views)

@zou wrote:

You can't.

Use the caption instead.

 


Exactly correct, but as an extra note for a new person it's important to note that you have to make the caption visible AND switch to the "Caption.Text" property node.

 

If you right-click the control itself (not the label), then under the "Visible" sub-menu, enable the caption.  This also turns off the label visibility.

0 Kudos
Message 3 of 3
(1,057 Views)