02-07-2007 09:31 AM
02-07-2007 10:16 AM - edited 02-07-2007 10:16 AM
P.S. btw. there was the reverse question answered here: http://forums.ni.com/ni/board/message?board.id=170&message.id=70107&query.id=6162
Message Edited by daveTW on 02-07-2007 05:20 PM
02-07-2007 10:29 AM
Also, using the suggested method, my example here shows a more generic solution. Note that the subVI there is also just an example and needs to expanded (to handle captions, for example, which after 7.0 you can't make invisible if you didn't manually show them).
If you want, you can find a more comprehensive example over at the LAVA forums' code repository.
04-15-2008 10:06 AM
04-15-2008 10:32 AM - edited 04-15-2008 10:36 AM
Long ago, I used the following code to get the index of the clicked element of an array indicator as part of my Tic-Tac-Toe Analyzer.
All you need is one "subtract" and two "quotient&remainder" nodes. 😉
Remember you can do math on numeric clusters, so you can do the x and y at the same time to get the (row, column).
It's probably easiy to adapt it to your situation.
Click the following image to find the original posting: 😄