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,492 Views)
Solution
Accepted by topic author flycast

You can't.

Use the caption instead.

 

George Zou
0 Kudos
Message 2 of 3
(1,468 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,463 Views)