LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change control value for menu ring in array

Background:

I have a control array where I need to enable/disable elements outside particular number of rows and columns set in another control.

Capture.JPG

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.  

0 Kudos
Message 1 of 4
(2,823 Views)

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.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 2 of 4
(2,803 Views)

Clusters it is... Let's see if I can make them look as pretty.

0 Kudos
Message 3 of 4
(2,800 Views)

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?

0 Kudos
Message 4 of 4
(2,787 Views)