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.
Expanding 'Index Array' function:
Solved! Go to Solution.
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.
If you have a 2D array, you can use the Matrix Size function.
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.
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.