LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get index of an element from an array on mouse click

Solved!
Go to solution

Hi all,

 

I want to get the index of a particular element in an array when i click on that element. I saw some examples in the forum but they are not working for me.. Can anyone please help me do this. I have attached my vi here.

 

Thanking you all with anticipation,

 

Regards,

 

Nitz...

0 Kudos
Message 1 of 11
(4,486 Views)

Save the VI in 8.6 and post.

 

Smiley Wink

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 11
(4,478 Views)

You may use the VI attached but if you have the same value in more than one array then it will not be useful. Instead you can go for the List box where you can easily get the index value by selection and the item in an array.

 

Smiley Wink

-----

The best solution is the one you find it by yourself
Message 3 of 11
(4,462 Views)

HI,

 

This is in 8.6

 

Regards,

 

Nitz..

0 Kudos
Message 4 of 11
(4,460 Views)

Hi,

 

I cant use a list box because this array of clusters is being generated by another vi and there is a color box in the cluster.. Any other options??

 

Regards,

 

Nitz...

0 Kudos
Message 5 of 11
(4,460 Views)

Please Explain what you exactly want to achieve then its easy to give suggestions.

 

Smiley Wink

-----

The best solution is the one you find it by yourself
0 Kudos
Message 6 of 11
(4,451 Views)

hi,

 

The array in the attached vi gets its input from an MS Access Database. So while viewing this array if i want to edit a particular element in the array (in this case one row of cluster) how can i do it. I thought if i got the index of the element may be i can delete that element somehow and enter a new element in that index. Hope I made it clear this time.:) Is there any way to do this.?

 

Regards,


Nitz.

0 Kudos
Message 7 of 11
(4,446 Views)

Am not getting the exact logic to do that... Is that ok to use one Control with the same parameters that you can edit it and update to the indicator.

 

Smiley Wink

-----

The best solution is the one you find it by yourself
0 Kudos
Message 8 of 11
(4,439 Views)

Hi Br. Anand,

 

I cant use a control as you said as there will be more than 100 elements in the array of which i have to change only 1. Anyway thanks for your response.

 

Does anyone else have a solution for my problem??

 

Regards,

 

Nitz..

0 Kudos
Message 9 of 11
(4,433 Views)

Check this it might help.

 

Smiley Wink

-----

The best solution is the one you find it by yourself
0 Kudos
Message 10 of 11
(4,425 Views)