LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling Array of cluster elements

Hi All,

 

I have created a array of cluster control. The cluster consists of two string controls and a boolean button control. This boolean should be visible only on mouse over of the array index. For example if the pointer is on 2nd index of array, the  2nd boolean should be visible and rest of the array boolean should be invisible. 

 

Please suggest me if there is any other ways to implement this.

 

0 Kudos
Message 1 of 15
(3,557 Views)

Not with arrays.  For arrays, all of the properties of every element must be exactly the same.  This includes visibility.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 15
(3,539 Views)

Thanks for your reply. Can  you please suggest me some other way to achieve this?

0 Kudos
Message 3 of 15
(3,526 Views)

I am having a hard time visualizing what you are looking for. Could you please post a VI or image of what you have and want?

 

Thanks!

0 Kudos
Message 4 of 15
(3,505 Views)

This sort of thing gets ugly fast

as an example of how ugly it can get:

Example_VI.png


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 15
(3,497 Views)

Can you explain why you want to build an array that way? Cant you keep it as clusters and play around with their properties .

0 Kudos
Message 6 of 15
(3,482 Views)

@crossrulz wrote:

Not with arrays.  For arrays, all of the properties of every element must be exactly the same.  This includes visibility.


You can customize a boolean so the two states show a different picture. One of the states can be transparent. To only show some array elements, simply change them to the transparent boolean state. Of course this solution means that you cannot use the boolean data for other information.

0 Kudos
Message 7 of 15
(3,472 Views)

I am scanning the machines which are connected with in a local network. List of machies connected are displayed in the cluster elements which are:

1. String1 - Client IP adress.

2. String2 - Client System Name.

3. Connect button

 

The Connect button should be visible on mouse over of respective array index.

 

For more information i have attached a screen shot of the vi which i am working. 

0 Kudos
Message 8 of 15
(3,451 Views)

@RoopeshV wrote:

The Connect button should be visible on mouse over of respective array index.


You need to clarify what that means, because you don't even show the index terminal.

 

Do you possibly mean it should become visible when hovering over one of the array elements? (here my trick making the true state transparent would work)

 

0 Kudos
Message 9 of 15
(3,443 Views)

You could eliminate the boolean control in the cluster and set it up so that just clicking on the machine name in the array list will perform the action.

 

The code to accomplish this is in the Lava Repository at this link    http://lavag.org/files/file/60-array-point-to-rowcol/

 

 

Doug

"My only wish is that I am capable of learning each and every day until my last breath."
0 Kudos
Message 10 of 15
(3,413 Views)