LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unit label disappears when replacing to system control

In LabVIEW 2010, when changing a controller or indicator with unit label from 'modern' to 'system' (or vice versa), the unit label disappears. It becomes empty.

 

Somehow it is still active (no coercion dot appears), but hidden from view. A bit annoying. 

0 Kudos
Message 1 of 7
(3,109 Views)

In fact, changing from a 'modern' to 'modern' or 'system' to 'system' makes it also disappear the unit label.

0 Kudos
Message 2 of 7
(3,104 Views)

Actually, the unit label is emptied - it's not hidden. It's actually still there on the front panel, but it's set to an empty string. If you use the property Unit Label.Text you will see that before you replace the control the property has the value corresponding to the unit label. If you replace the control (even with the same exact kind), the property is then empty, meaning the unit label is gone. When you replace the control with another of its kind the View -> Unit Label is still checked, even though there're no unit actually specified. The marquee around the unit label is still active, though.

 

I don't quite follow what you're referring to about the coercion dot.

0 Kudos
Message 3 of 7
(3,093 Views)

The fact that no broken wires or coercion dots appear means, that the unit is correctly transfered. However, the unit label text is empty.

So, it is working, but partly and weirdly.

 

 

before.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

after.PNG

0 Kudos
Message 4 of 7
(3,088 Views)

Oh, now I understand what you mean. Yeah, that's even weirder.

 

More info: If you take the control that you just replaced, and uncheck the Visible Item -> Unit Label item the VI remains unbroken. If you then check Visible Item -> Unit Label it gets broken, apparently because the compiler woke up. Oddly, forcing a recompile after replacing the control doesn't cause the VI to be broken as it should.

 

Definitely looks like a bug to me.

 

NI?

0 Kudos
Message 5 of 7
(3,078 Views)

@NI, will there be a patch for LV2010?

0 Kudos
Message 6 of 7
(3,038 Views)

Hi Harlequinade,

 

thank you for bringing this to our attention. We have reproduced the error and filed a Corrective Action Request to correct it in a subsequent LabVIEW release. The CAR number is 255865.

 

In the meantime I'm afraid you'll just have to be careful when replacing controls with labels to ensure that no error creeps into the VI.

 

Best Regards,

 

Joseph Tagg - NI Switzerland

0 Kudos
Message 7 of 7
(3,023 Views)