LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to programmatically change unit labels in an array or cluster?

I would like to make the choice of (time) units a user-configurable thing.   So that the user can save his/hers preferences for seconds or minutes in the program.
 
Using property nodes, I can easily change the unit label of an indicator.   However, I don't see such an option when I have a cluster of array of values...    Is there any way for arrays and clusters to set the units of its contents?
0 Kudos
Message 1 of 3
(3,985 Views)
Anthony,

You can get references to all the controls inside the cluster and then connect those to property nodes to change anything for which a property node is available. You may need to use the To More Specific Class function to get at all possible properties.

However, all the elements of an array must have the same properties (including units). Different values, but not different properties.

Since you did not describe your data structure in detail, we cannot tell exactly what you are trying to do.

Lynn
Message 2 of 3
(3,972 Views)

Ah...   that 'Two More Specific Class'  function is what I needed to get it working.  

Thanks!

0 Kudos
Message 3 of 3
(3,945 Views)