LabVIEW

cancel
Showing results for
Did you mean:

Solved!
Go to solution

Array Size Improvement / Idea

Can we make the Array Size function expandable to output the size of each dimension directly?  It's a small feature but I think it would be nice, and could make diagrams cleaner.

No expanding:

Expanding 'Index Array' function:

Proposed idea:

Message 1 of 8
(2,892 Views)
Solution
Accepted by topic author gnzork

Re: Array Size Improvement / Idea

Ideas belong in the ideas exchange and this has been proposed before.

Message 2 of 8
(2,884 Views)

Re: Array Size Improvement / Idea

Should I repost in the ideas section?

Yes it was proposed before....in 2009.

Message 3 of 8
(2,876 Views)

Re: Array Size Improvement / Idea

No.  You should go to that idea and add your kudoes to it by clicking the star.

If you re-post it, it will just be classified as a duplicate and nothing more will come of it.

Message 4 of 8
(2,854 Views)

Re: Array Size Improvement / Idea

If you have a 2D array, you can use the Matrix Size function.

"If you weren't supposed to push it, it wouldn't be a button."
Message 5 of 8
(2,819 Views)

Re: Array Size Improvement / Idea

You could do-it-yourself with an XNode.

"If you weren't supposed to push it, it wouldn't be a button."
Message 6 of 8
(2,802 Views)

Re: Array Size Improvement / Idea

@paul_cardinale wrote:

You could do-it-yourself with an XNode.

I've been thinking this would be nice to have for a while, and the recent project got me excited enough to finally post about it.

To be honest though, the more I think about it I could easily define three indicators that act like variables for the three dimension sizes, since I know they only change when I open a new dataset.  That way in my code I could just create a local variable for that dimension size, which would probably save more space than the proposed idea for "array size".  I'll give this a try first and see how I like it.

Message 7 of 8
(2,798 Views)

Re: Array Size Improvement / Idea

As mentioned already in that Idea Exchange thread, there is an XNode already that does this.  Still you could look at the source to help understand how to works.  And checkout the XNode Editor if you are interested in making your own.  But to be honest I don't work with arrays larger than 2D very often and the Matrix Size works fine for 2D.  I have presented on XNodes in the past just know they are undocumented, and you can code things that crash LabVIEW pretty easily, but once developed and tested the can be stable.  There are several shipped with LabVIEW on your palette.

Message 8 of 8
(2,733 Views)