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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multi-dimensional array with dynamic size - how to?

Hi

 

I have a CONSTANT number of buckets. Each of them has to take a VARIOUS number of data series. The data series have one VARIOUS length per bucket. I'd like to index the buckets like an array to loop over them.

 

So basically I need something like a multidimensional array with constant first dimension (bucket index), but dynamic second (data series index within bucket) and third (data point index within data series) dimension. What's the best way to do so?

 

I should also remark that data series can get really big.

 

Thanks in advance and best regards,

Michael

0 Kudos
Message 1 of 2
(1,888 Views)

Hi Michael,

 

the usual way is to use an array of cluster.

Put your "2nd" and "3rd" data into a cluster and then make an 1D array of that cluster...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(1,878 Views)