07-17-2007 02:34 AM
07-17-2007 02:51 AM
You can use Ben's example by extending it and performing a double lookup. If your arrays are always of the same length, you can simply have a 2D array and extract your element from it by wiring in your two index arrays and searching both of them. If your arrays can have different lengths, create a 1D array of clusters where the cluster holds a 1D array. This will allow each internal 1D array to have a different length.
07-17-2007 05:04 AM
07-17-2007 06:25 AM
Here is a very quick example which shows the concept.
@Yonsh wrote:
and another question: why my for/while loop don't stop the "random number" function???
I'm not sure what you mean by that. The random number function just outputs a random number once, regardless of where it is called.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).