LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change dinamically caption

Hi, guys!
 
How can I do to change the name of a nuemric control dinamically? I call the Properties Caption>Text or Label>Text, but I get this error:
 
"LabVIEW:  In edit mode, LabVIEW cannot return a property for a control part that you have not yet created"
 
Anybody knows about this issue?
 
Thanx!
 
 ; )
0 Kudos
Message 1 of 10
(4,970 Views)
Hi
 
You can't change the text of the label during runtime, but can change the caption text. If you try to write both values together, you will get an error as you try to write a not writable property.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 10
(4,967 Views)

Ok, I´ve realized about the problem (and understand the error message): before I have to make the caption visible!

 

0 Kudos
Message 3 of 10
(4,964 Views)
No, you don't have to make the caption visible. This is just a kind of additional text you can change whether it is visible or not.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 4 of 10
(4,960 Views)


@becktho wrote:
No, you don't have to make the caption visible. This is just a kind of additional text you can change whether it is visible or not.

Actually, in 7.1 there is a quirk that forces you to manually make the caption visible before you can use it's properties.

You can read a bit more about in the LAVA buglist forms here.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 5 of 10
(4,956 Views)
Ah - that's nice to know. Hope in LV8.0 it is fixed, as I change to this version when we have it in our company. Smiley Wink
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 6 of 10
(4,954 Views)
It wasn't fixed in 8.0 (assuming they even consider it to be a bug).

___________________
Try to take over the world!
Message 7 of 10
(4,948 Views)
Thanks tst - you really make me looking forward to LV9.0 Smiley Very Happy
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 8 of 10
(4,945 Views)
Yep, not fixed in LV8 because NI said it's not a bug, it's changed behavior between 7.0 and 7.1. So don't expect any future versions to have "fixed" it either. Smiley Mad

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 9 of 10
(4,939 Views)
One important thing to note is that now, if you want to use any property which is related to the caption, you either have to do it in a seperate property node, do it as the last item of your property node or set the property node to ignore the errors, because once the error was triggered, the rest of the code will not execute.

___________________
Try to take over the world!
Message 10 of 10
(4,938 Views)