06-03-2024 06:06 PM
Hello,
Can you change the String Indicator Label or Caption Text? I tried this, but I keep getting the error "Property Node (arg 2)":
Can you tell me if changing the caption or label text is possible?
Thanks,
hiNi
Solved! Go to Solution.
06-03-2024 07:09 PM
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
06-04-2024 04:00 AM - edited 06-04-2024 04:01 AM
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...
06-04-2024 05:39 AM
@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)":
Can you tell me if changing the caption or label text is possible?
Thanks,
hiNi
Caption: Yes
Label: No
06-04-2024 09:22 PM
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.