12-30-2018 07:59 PM - edited 12-30-2018 08:05 PM
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:
Solved! Go to Solution.
12-30-2018 08:22 PM
Ideas belong in the ideas exchange and this has been proposed before.
12-30-2018 08:48 PM
Should I repost in the ideas section?
Yes it was proposed before....in 2009.
12-30-2018 10:11 PM - edited 12-30-2018 10:12 PM
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.
12-31-2018 02:30 PM
If you have a 2D array, you can use the Matrix Size function.
12-31-2018 07:07 PM
You could do-it-yourself with an XNode.
12-31-2018 07:27 PM
@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.
01-02-2019 12:37 PM - edited 01-02-2019 12:38 PM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord