LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cluster elements' properties

What is the easiest way to do this:

I have two clusters of boolean buttons. Depending on run-time events, I
want one cluster's controls to respond to the function keys (F1, etc.).
I also need to be able to switch back and forth between clusters. I
guess my question is how do I set the key navigation of elements of a
cluster during runtime?

thanks,
stephen
0 Kudos
Message 1 of 3
(2,904 Views)
Hi Stephen

You need to create property nodes for each of the individual controls
inside the cluster. This can get messy if you have lots of controls to
deal with.

Paul

Stephen Gray wrote:

> What is the easiest way to do this:
>
> I have two clusters of boolean buttons. Depending on run-time events, I
> want one cluster's controls to respond to the function keys (F1, etc.).
> I also need to be able to switch back and forth between clusters. I
> guess my question is how do I set the key navigation of elements of a
> cluster during runtime?
>
> thanks,
> stephen

--

Research Assistant
School of Physiotherapy, Curtin University of Technology
Selby Street, Shenton Park, Western Australia, Australia. 6008
email: P.C.Davey@curtin.edu.au
Tel. +61 8 9266 4657 Fax.
+61 8 9266 3699

"Everyone who calls on the name of the Lord will be saved." Romans 10:12
"For all have sinned and fall short of the glory of God, and are justified
freely by his grace through the redemption that came by Christ Jesus."
Romans 3:23-4
0 Kudos
Message 2 of 3
(2,904 Views)
Steve,

This is for labview 6.0. I dont know if there is something equivalent for
5.x. Create the cluster and place your boolean controls in it. on the diagram
right click and select create>>property node. Then change this newly created
property node to "Controls[]". This is an array of references to the controls
in the cluster. During run time, you would index this array to the control
whose key navigation you want to change, wire this refernce to a boolean
type property node that is set for key navigation and set the property.
In a for loop, the code would not be very messy at all. The itieration of
the loop would be used to index the array. If you dont want to change them
all, use a case in the loop to ignore the instances that are not to change.

I hope
this helps,
Jared

Stephen Gray wrote:
>What is the easiest way to do this:>>I have two clusters of boolean buttons.
Depending on run-time events, I>want one cluster's controls to respond to
the function keys (F1, etc.).>I also need to be able to switch back and forth
between clusters. I>guess my question is how do I set the key navigation
of elements of a>cluster during runtime?>>thanks,>stephen>
0 Kudos
Message 3 of 3
(2,904 Views)