From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
I managed to do that al ready. The next array is like this:
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0
It must be saved as
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0
How can I calculate the number of columns and how can I tell it to LabVIEW? If not required, I don't want to write a new VI (or Select Case thing) for every number
This answer is assuming your arrays will always be constructed the way you show them, the same number of elements repeating themselves twice.
Take a look at the attached image. It uses the 'Reshape Array' function to transform the 1D array into a 2D array. This should work for any size of input array. Your 2D array can then be saved as you are doing now.