JDave Posted August 21, 2006 Report Posted August 21, 2006 File Name: Array Point to RowCol File Submitter: dsaunders File Submitted: 3 Aug 2006 File Updated: 22 Oct 2006 File Category: User Interface Converts a pixel coordinate to an array index. Returns an array of indices with a length equal to the number of array dimensions. Also returns if the point is within the content rectangle (not on the caption, scrollbars, etc.) Works on any N-dimensional array regardless of visibility of caption, label, index display, or scrollbars. Designed to be used on mouse events that provide the mouse coordinates. Limitations: Property nodes do not indicate the array border width, nor if the user has chosen to display an element gap. These inputs are thus provided on the VI. Click here to download this file Quote
Jim Kring Posted August 29, 2006 Report Posted August 29, 2006 David, Great VI! One comment: I think that the GObj.OwningVI property generates (opens) a new VI reference and should therefore be closed, after one's done using it. Cheers, -Jim Quote
JDave Posted August 29, 2006 Author Report Posted August 29, 2006 David,Great VI! One comment: I think that the GObj.OwningVI property generates (opens) a new VI reference and should therefore be closed, after one's done using it. Cheers, -Jim Good eye. I had a subVI to handle the panel defer, and obviously didn't check the new code quite enough. I will update the VI. David Saunders Quote
hooovahh Posted May 24, 2021 Report Posted May 24, 2021 Oh boy 2006, I think that predates the LAVA 1.0 migration issues, and then several other newer revamps. I certainly don't have this, and have no way of getting something so old. I can contact Michael if you'd like. Quote
mcduff Posted May 24, 2021 Report Posted May 24, 2021 Maybe this link on the dark side may help: https://forums.ni.com/t5/Example-Code/Determine-Clicked-Array-Element-Index-in-LabVIEW/ta-p/3536340?profile.language=en (Some limitations in the code, may have to change for newer style arrays) mcduff Quote
LogMAN Posted May 25, 2021 Report Posted May 25, 2021 The file still exists, only the link above is dead. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.