12-29-2008 09:12 AM
Solved! Go to Solution.
12-29-2008 09:18 AM
If you get the help for that property node "Label.text" you will find that property in not available when running (the VI must be idle for that property to work). We will generally use teh "Caption" instead since that can be written when the VI is running.
... and before you ask...
Make sure you show the caption before attempting to write its string since it does not exist until to you show it (at least once).
Ben
12-29-2008 09:22 AM
You won't be able to change the value of the owned label programatically. Here is a knowledge base article which explains that and a way to get around it:
Programmatically Changing the Label for a Control or Indicator in LabVIEW
12-29-2008 09:38 AM
Also, you should be able to set the unit label programmatically but they need to be compatible with the existing unit. If the units are not compatible, LabVIEW will throw an error which is what you are seeing. Have a look at the following:
Associating Numeric Units with Floating-Point Numbers
which can also be accessed if you click on the Detailed Help in the Context Help window for the Unit Label Text property.
12-29-2008 07:39 PM