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: 

Change Label or Caption Text of String Indicator

Solved!
Go to solution

Hello,

 

Can you change the String Indicator Label or Caption Text?  I tried this, but I keep getting the error "Property Node (arg 2)":

hiNI_0-1717455912712.png

Can you tell me if changing the caption or label text is possible?

 

Thanks,

hiNi

0 Kudos
Message 1 of 5
(1,052 Views)

You should include the error code when posting the question. See Error 1320 When Setting a Caption Property for case 2.

You cannot run cases 1 and 3. See Programmatically Changing the Label for a Control or Indicator in LabVIEW

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 2 of 5
(1,033 Views)

Changing a label of a non-idle control\indicator isn't allowed.

 

Showing\changing a caption works iff the control\indicator has a caption. That's only the case if the user created a caption.

 

A vanilla control\indicator doesn't have a caption. The 'caption.visible' property will give an error. The caption has to be shown once. From then on the control has a caption, and the caption can be changed while running, and shown\hidden freely...

Message 3 of 5
(993 Views)

@hiNI wrote:

Hello,

 

Can you change the String Indicator Label or Caption Text?  I tried this, but I keep getting the error "Property Node (arg 2)":

hiNI_0-1717455912712.png

Can you tell me if changing the caption or label text is possible?

 

Thanks,

hiNi


Caption: Yes

Label: No

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

Qestit Systems
Certified-LabVIEW-Developer
Message 4 of 5
(981 Views)
Solution
Accepted by hiNI

The error is probably due to the caption object not existing.

Open the properties of the indicator and enter anything as a caption.  That will cause the caption object to be created.

Your code should work after that.

Message 5 of 5
(951 Views)