LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

BUG: Labelled array constant vs build array vs Bundle (array loses label) (LV2019)

So, this is a fairly common design, right?

Yamaeda_0-1783003213904.pngYamaeda_1-1783003428903.png

 

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 1 of 3
(59 Views)

I don't think the language makes guarantees about what the wire label will be in situations like this so I wouldn't classify it as a bug.

0 Kudos
Message 2 of 3
(36 Views)

You could also do the following to ensure that the label survives...

 

altenbach_1-1783007834744.png

 

Note that the wire after the build has no name when  probed. it's a bit a can of worms. What if you would concatenate two arrays (same problem:  no wire name, even if both input arrays are named the same!)

 

In my best practices, I always wire a cluster constant with proper element names to the top of the bundle operation if I later want to do anything "by name".

0 Kudos
Message 3 of 3
(23 Views)