03-20-2018 09:40 AM
Background:
I have a control array where I need to enable/disable elements outside particular number of rows and columns set in another control.
I can make a reference to it, but I have been unable to address individual components, or disable them.
Questions:
Can you point me to something that shows how to get to a single cell, and enable/disable it from within the Block diagram using references?
Can you point me to something that shows how to get to a single cell and set the initial value from within the Block diagram using references?
I'm using LabVIEW 2015.
03-20-2018 11:03 AM
You cannot directly manipulate single elements of an array as if they were single controls.
To change an element value with a reference to its array, use Value property nodes to read the current value (whole array) and then set the new value after the proper element has been changed by means, for example, of Replace Array Subset.
Furthermore, an array can only be enabled or disabled globally. The same is true for any other property: for example, you cannot change the background color of a single array element.
An alternative is to use clusters, which may be acceptable or not depending on your application.
03-20-2018 11:16 AM
Clusters it is... Let's see if I can make them look as pretty.
03-20-2018 12:00 PM - edited 03-20-2018 12:27 PM
So is there a way to reference an enum control inside a cluster and disable/enable it and change its value?
So no deleting a reply when I figured something out?