LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Dynamically built 2D array

Solved!
Go to solution

I am trying to dynamically build a 2D array of MxN dimension. In doing so, I know exactly the number of Rows and Columns required to build a 2D array. However, I find extra set of rows added to the array as shown in figure below. I am unable to find the error, the VI as a minimal working example is attached here. Also how can I conduct statistics on just some column values. For example in the table below with 20 columns I would like to calculate the statistics on just the final 3 values of Columns 4, 8, 12, and so on. Do I have to use Array Subset VI for each column? How could I implement this dynamically?

 

LabVIEW_2019-03-31_15-35-13.png

NI System Configuration:
- NI PXIe-1071, 4-Slot 3U PXI Express Chassis , 1 GB/Slot throughput, Part Number: 781368-01
- NI PXIe-PCIe8381,x8 Gen2 MXI-Express for PXI Express Interface,3m, Part Number: 782522-01
- PXIe-5160 PXI Oscilloscope, 500 MHz, 10 bits, 2.5 GS/s, 2 Channels, 64 MB, Part Number: 782621-01
- Astronics PXIe-1209 2-Channel, 100 MHz PXI Pulse Generator, Part Number: 785033-01
0 Kudos
Message 1 of 3
(2,202 Views)
Solution
Accepted by topic author asukumari

Why do you work with "Insert Into Array"? You already created an 2D-array of the correct size so use "Replace Array Subset" instead of "Insert Into Array" within your FOR-loop.

 

Regards, Jens

Kudos are welcome...
Message 2 of 3
(2,195 Views)
That's it !! Thank you!
NI System Configuration:
- NI PXIe-1071, 4-Slot 3U PXI Express Chassis , 1 GB/Slot throughput, Part Number: 781368-01
- NI PXIe-PCIe8381,x8 Gen2 MXI-Express for PXI Express Interface,3m, Part Number: 782522-01
- PXIe-5160 PXI Oscilloscope, 500 MHz, 10 bits, 2.5 GS/s, 2 Channels, 64 MB, Part Number: 782621-01
- Astronics PXIe-1209 2-Channel, 100 MHz PXI Pulse Generator, Part Number: 785033-01
0 Kudos
Message 3 of 3
(2,188 Views)