ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array select index by element

Hello,
 
I got a 2D array with certain information about a product. The 2D array consists the product ID and a the amount of available products of that certain product ID. Now what I want to do is the following. I want to select the index of the array by using the element as a reference. Now my question is how can I do this? There are certain standards blocks that I could use when I wanted to select the element by using the index like Index Array. But I want to do the opposite. Is this possible?
 
Sorry about the other topics btw. Don't know how that happend Smiley Sad


Message Edited by Wouser on 12-14-2007 12:01 PM
0 Kudos
Message 1 of 4
(4,547 Views)
You'll use search 1D-array to search your first column/row (via Index Array with only one index specified) to get the index, then use that with Index Array to get the other info.
0 Kudos
Message 2 of 4
(4,539 Views)
Hello,  See the attached vi, I think it is what you are looking for.  If nothing else it may give you an idea of where to start.


Cheer!
0 Kudos
Message 3 of 4
(4,536 Views)
Thank you both for those fast replies. I will try to get it working now.
0 Kudos
Message 4 of 4
(4,528 Views)