User | Kudos |
---|---|
8 | |
6 | |
5 | |
4 | |
4 |
Normally in a multidimensional array, to obtain the number of elements in the corresponding dimension we need to use two array functions namely the array size as well as index array functions. Instead if a single function is provided like the one shown below would be more useful. The new function can be a replacement to the existing array size function with an additional feature which eliminates the use of index array function to get individual dimension values.
This may not be the case with all, but as a beginner I used to get confused many times which element of 1D array generated from array size function corresponds to rows/columns. So a function similar to the cluster function (unbundle by name) would be very easy for a developer to use and there will be no chance of confusion.
Based on the dimension of the input array connected to this, the function should automatically add/remove the unnecessary items.
Example: If the input array is a 2D array, then ‘No of Pages’ item should not appear. If the input array is a 1D array, then only ‘Array Dimension’ should appear. The developer can also be provided with option to select their item of interest (drag/reduce) in case of a multidimensional array.
The last item ‘Array Dimension’ is to retain the existing functionality and provide an array of dimensions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Duplicate of http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Simpler-quot-Array-Size-quot/idi-p/917635