06-07-2018 02:43 PM
LabVIEW has the somewhat bizarre ability to create and manipulate arrays of any dimension. I've never used more than three, and find it difficult to wrap my brain around how one could effectively organize information into higher-dimensional arrays. Just curious to learn what others have done with this ability
06-07-2018 02:48 PM
I had one situation where I needed to created a 4 dimension array to hold coefficients for a correction equation for a toothed wheel.
channel, tooth, axial position, equation coefficients. 2 x 120 x 7 x 5
06-07-2018 02:49 PM - edited 06-07-2018 03:04 PM
We'll, I don't like arbitrary limitations, so it is a good thing that it does not stop at three dimensions. Of course, the more dimensions you have, some of them need to be smallish so you don't run out of ram. (Especially since arrays are contiguous in memory).
There is some use for higher dimensions, e.g. if you have a couple of 3D arrays of equal size, you might consider a 4D array instead.
06-07-2018 03:48 PM
I've been doing a bit of a mental exercise just for kicks...
With a 2D array, usually the 1st dimension is called the "Row" and the second one is called the "Column". When you add the 3rd, that index is called the "Page". These are all pretty common.
Assuming the metaphor in use is one of numbers in a 2D grid on paper pages, how would one extend the metaphor?
What do you get with multiple pages? A book!
4th dimension name: Book
What do you get with multiple books? A bookshelf!
5th dimension name: Bookshelf
What do you get with multiple bookshelves? A library!
6th dimension name: Library
What do you get with multiple libraries? A campus!
7th dimension name: Campus
What do you get with multiple campuses? A university system!
8th dimension name: University
Now I'm not sure where to go...
06-07-2018 03:56 PM - edited 06-07-2018 03:57 PM
Actually, the first dimension is column, the 2nd dimension is row.
If you wire an X dimension array to the index array function, you can read the order from bottom to top if you hover the index inputs to get the official LabVIEW names.
Column
Row
Page
Volume
Dim 5
Dim 6
But your extensions to shelf, library, campus, .... all make sense to me.
06-07-2018 04:02 PM
Post-Doc?
06-07-2018 04:32 PM
@RavensFan wrote:
Actually, the first dimension is column, the 2nd dimension is row.
If you wire an X dimension array to the index array function, you can read the order from bottom to top if you hover the index inputs to get the official LabVIEW names.
Column
Row
Page
Volume
Dim 5
Dim 6
But your extensions to shelf, library, campus, .... all make sense to me.
You could fill in bookcase and aisle between shelf and library.
06-07-2018 10:31 PM
06-08-2018 06:46 PM
I think 'Chapter" should come between 'Page' and 'Book'
06-11-2018 05:00 AM