LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array Selection Start / Array Selection Size

I want to programmatically set properties of individual array elements. If
I select an element with the mouse, it is easy to change the properties of
that element using a Property Node. However, I want to programatically
select the element (i.e. not with the mouse). I have tried to use Array
Selection Start and Array Selection Size to no avail. What is the property
that tells me which element is influenced when I set the Array Element
properties?

Thankyou,

-Peter
0 Kudos
Message 1 of 4
(4,074 Views)
Hi Peter,

When you mean set the properties of the individual array elements, do you mean the actual data at that element. If that is the case then you would use one of the functions in the array palette. You would use the Replace Array Element, using the Selection Start[] and Selection Size[] as parameters to the function. Use the Array Index function to get individual element values of an array.

Usually setting the properties of an array affects the whole array not individual elements.

Ray.
Regards
Ray Farmer
0 Kudos
Message 2 of 4
(4,074 Views)
Actually, I've got an array of controls on my Front Panel and I want to be
able to control the properties (like disable and value) of each element
programmatically.

Peter


"Ray Farmer" wrote in message
news:506500000005000000672C0000-991568043000@quiq.com...
> Hi Peter,
>
> When you mean set the properties of the individual array elements, do
> you mean the actual data at that element. If that is the case then
> you would use one of the functions in the array palette. You would
> use the Replace Array Element, using the Selection Start[] and
> Selection Size[] as parameters to the function. Use the Array Index
> function to get individual element values of an array.
>
> Usually setting the properties of an array affects the whole array not
> i
ndividual elements.
>
> Ray.
0 Kudos
Message 3 of 4
(4,074 Views)
> Actually, I've got an array of controls on my Front Panel and I want to be
> able to control the properties (like disable and value) of each element
> programmatically.
>

You are able to control the value of each element by writing to a terminal,
a local variable, or if you must, to the property node's value property.

You will not be able to control other attributes/properties of the elements
because the array doesn't support it. It has one display element which it
moves around to different cells displaying the data. It doesn't have property
data for each cell.

Your easiest option is probably to convert from an array to a cluster on
the diagram
and wire the data into the cluster. Every element of a cluster can be controlled
via property node
s as if it were a top level control.

Another option is to make everything be data. If you want something to
be recolored,
then make it a color ramp or color numeric that is a part of the data
for each element
of the array. If you want it to be disabled, then you will need to make
a Boolean that
goes over the top of the elements that has different bounds for the
different button
states. Like I said, the first option is probably easier.

Greg McKaskle
Message 4 of 4
(4,074 Views)