LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the maximum array dimension you have ever used?

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

_____________
Creator of the BundleMagic plugin for LabVIEW!
0 Kudos
Message 1 of 10
(4,071 Views)

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

0 Kudos
Message 2 of 10
(4,062 Views)

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.

0 Kudos
Message 3 of 10
(4,059 Views)

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...

Message 4 of 10
(4,018 Views)

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.

Capture

0 Kudos
Message 5 of 10
(4,013 Views)

Post-Doc?

_____________
Creator of the BundleMagic plugin for LabVIEW!
0 Kudos
Message 6 of 10
(4,005 Views)

@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.

0 Kudos
Message 7 of 10
(3,994 Views)
🤪

Just a few thought starters. I think we can expand a bit, but my data structure is out to the 37d - zero indexed obviously. I’m not “married” to the positions...



Example: (typical CERN water cooler chat)

Mike: how’s that Kudosky Array working for ya Jim?!

Jim: Getting a bit cumbersome to manage...any suggestions?

Mike: Easy, convert to byref, abstract to the Laplace, rinse repeat...

Jim: Array! Thanks for the help!



0 Newtonian Array / Element

1 row

2 column

3 page

4 book

5 canon

6 compendium

7 library

8 Academy

9 council

10 association

11 nation

12 continent

13 hemisphere

14 planet

15 copernican

16 galaxy

17 alliance

18 federation

19 empire

20 universe

21 Space

22 Tab

23 HAL

24 42

25 multiverse

26 OO

27 Delacor

28 Wirebird

29 Powell

30 Kudosky

31 Hawking

32 Laplace

33 Feynman

34 Leibniz

35 Gauss

36 Euler



avoided: cluster, axis, union, super, as they obviously would be confusing terms when relating to traditional code definitions.
Message 8 of 10
(3,958 Views)

I think 'Chapter" should come between 'Page' and 'Book'

"If you weren't supposed to push it, it wouldn't be a button."
Message 9 of 10
(3,912 Views)