Get the Number of Rows and Columns of a 2D Array With a Single LabVIEW Function

Updated Apr 29, 2024

Reported In

Software

  • LabVIEW

Issue Details

When using the Array Size function on a 2D array in LabVIEW it returns the size of the array in a 2-element 1D array, I then need to use the Index Array function to get the number of rows and columns.
image.png
Is there a single LabVIEW function that returns the number of rows and columns in a 2D array?

Solution

You can use the Matrix Size Function to get the number of rows and columns of a 2D array of any data type. With this function, you will not need the additional step of indexing the resulting array.
image.png
Tariff Impact Update Learn more

Was this information helpful?

Yes

No