LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically know which index the user has selected of an array of clusters

Solved!
Go to solution

I want to programmatically know which index the user has selected in the panel of an array of clusters.  I didn’t see this option in the property node. Basically, my ultimate goal is to chart the data of the array selected and I need to know how to index that data for the graph.

 

 

0 Kudos
Message 1 of 22
(5,342 Views)

Hey,

 

You can use a Event Structure with a MouseDown Event and get the indices via processing them through the coordinates of the MouseDown Event.

 

 

Christian

0 Kudos
Message 2 of 22
(5,332 Views)

Hey

 

Another option is to display the arrays in a multicolumn listbox and then use an Event structure to find the double clicked row or the invoke node, Get Double Clicked Row.

 

Rkll

0 Kudos
Message 3 of 22
(5,328 Views)
Solution
Accepted by lithiumion

Maybe you need something more simple...

Message 4 of 22
(5,323 Views)

I think Rkll and me where thinking to far from what you wanted.

For my answer I thought you want to find out which element was selected in a array not via the index display.

 

 

Christian

0 Kudos
Message 5 of 22
(5,299 Views)

Christian,

 

My apologies because I didn't explain my question well.  Thanks for quick response.

 

-Anil

0 Kudos
Message 6 of 22
(5,280 Views)
Could someone please save the example as a LV8.1 or earlier vi?  thanks
0 Kudos
Message 7 of 22
(5,073 Views)

What is your definition of "selected"? It's not clear enough!

 

So you have an array of clusters. The index property shows which elements is shown topmost (or leftmost) in the array container, which has nothing to do with any selection, so I am not sure why it got marked it as solution. Is one of the cluster elements a checkbox that indicates "selection" when checked? Do you want to know which element got changed last by the user?

0 Kudos
Message 8 of 22
(5,068 Views)

Hello Mike, Here is a screen shot of the code:

2010-01-11_123744.png

National Instruments
0 Kudos
Message 9 of 22
(5,006 Views)
Thanks Anna.
0 Kudos
Message 10 of 22
(4,999 Views)