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: 

Replace an array row with in place element structure

I have a 2-D array that is three elements wide and many elements long. I would like to use an In Place Element Structure to replace one  three-element row of this array. It's not cooperating. It insists on having an index for every dimension, which seems to make this impossible. Is there a way?What I wanted to doWhat I wanted to do

0 Kudos
Message 1 of 3
(3,328 Views)

There is single function that does this called "Replace Array Subset" which will operate in place.

Message 2 of 3
(3,325 Views)

You have to use the Array Split/Replace Subarray Inplace structure. However, it is clunky to use. You need to specify whether you are changing in the horizontal or vertical dimension, (Right click and choose Split Dimension). Also every thing is a 2D array, so you will have to resize your row to be 2d.

 

Follow the advice of gregoryj and use the normal LabVIEW primitive instead of an inplace structure.

 

mcduff

0 Kudos
Message 3 of 3
(3,295 Views)