From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-16-2017 08:58 AM
I need to programmatically get the labels from the elements in a cluster. I've figured out how to get them one at a time using property nodes (see below) but since there are quite a few elements in the cluster this would get rather bulky not to mention tedious. Does anyone know of a better way to do this?
Thanks
Solved! Go to Solution.
03-16-2017 09:03 AM - edited 03-16-2017 09:05 AM
03-16-2017 09:41 AM
Hi GerdW,
We must have different versions of LV because there is no Elements[] in the property node but one called Controls[] that does the same thing. It's just what I needed. Thanks!
03-16-2017 02:28 PM - edited 03-16-2017 02:28 PM
Gerd is German, so his properties probably have different names. You can see that one property is "Beshcr" .text
03-16-2017 03:38 PM
A better solution is Get Cluster Information and Get Type Information from the Programming -> Cluster, Class & Variant -> Variant -> Data Type Parsing palette, as shown below. Before LabVIEW 2015 or so, similar functions were available in vi.lib\Utility\VariantDataType, but those are now deprecated in favor of the newer versions on the palette. One major advantage of this approach is that it works in executables on RT targets, whereas the property node approach will not.
03-16-2017 03:45 PM