05-24-2014 05:08 AM
Hi,
In project, I want to show the different status (Std By, TIP, Pass & Fail) with different color for 200 color boxes arranged in 20X10 (2 D array). When user click on any of the array item, I want to show the details, so I want the index of the item. How can I get it?
Thanks,
Shrinivas
Solved! Go to Solution.
05-24-2014 09:47 AM
05-24-2014 01:13 PM
Why an array? There's more than one way to skin a cat
See attached
05-25-2014 11:41 PM
Thanks RavensFan, this is what I exactly want. I've already tried getting index using coordinates. But it is not generalised. I've hard coded the size of element and XY position of first element.
Thanks Jiddu Krishnamurti, I'll check the possibility of using table control. I've LV 2010. Can you save your VI to LV 2010 and attach it?
05-25-2014 11:57 PM
If you want to use a 2D array (any type of elements!) you can use something similar to what I used in the 4x4 tic tac toe game posted here. All you need to do is adjust one cluster diagram constant according to the size of the array elements.
05-26-2014 12:32 AM
Thanks altenbach, I got the idea from the VI.
05-27-2014 10:01 AM
2010 Version attached
05-27-2014 11:11 PM
Thanks...