LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible to find indices of mouse-over element within 2D boolean array indicator?

I have a high channel count data acquisition system which returns some status indicators, one of which is a boolean indicating whether that particular channel is open-circuit.  I want to be able to display these boolean status indicators in a 2D array of LEDs, such that the operator can see at a glance if any channels are open.  Because the array is large, I want to be able to move the mouse over any LED and have the tip strip indicate the channel number.  How do I access the indices of the moused-over LED in such a manner?

 

0 Kudos
Message 1 of 5
(2,861 Views)
I've never tried exactly what you are doing, but you probably won't be able to get the index directly because it's an array. You should be able to do a mouse over event on the array as a whole and given the size of the booleans calculate what element you are over.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 5
(2,841 Views)

Look at http://forums.ni.com/t5/LabVIEW/Interesting-way-to-detect-array-index-from-mouse-position/m-p/286791...

 

There are possibly other threads showing similar techniques.

0 Kudos
Message 3 of 5
(2,824 Views)
Oooh. I like it. Calculate the indices one time up front and reuse it to determine position...

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 5
(2,811 Views)

Here's some very old code of mine that does that.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 5 of 5
(2,743 Views)