Hello Boris,
The easiest way to accomplish this is to iterate through the each of the elements in the dimensions, bundle their values into clusters, and build an array out of the clusters. For instance, if your array is 2x5, bundle elements (0,0) & (1,0), (0,1) & (1,1), etc. I have taken the liberty of creating a quick example program for you. Hope this helps. Take care!
Regards,
Aaron B.
National Instruments