LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Insert 2D array into an existing 2D array



@Candice wrote:
I seemed to have unwittingly caused dissension in the ranks, and I apologize about that. 

Sorry, maybe I was a bit harsh too in my words, typical for a Friday afternoon. 🙂 Everybody is very welcome to post anything as long as it relates to LabVIEW. The questions here range from beginners questions to very advanced topics and we will try to answer them all to spread the word that LabVIEW is easy, fun, and powerful at the same time. 🙂

Everybody is encouraged to contribute to the questions and answers.

To increment an existing 2D subset, you need to read the current subset, add the desired values, then write it back to the original location using "replace array subset". If this should happen in a loop, it is easiest to keep the main array in a shift register.

Here is a quick example that shows the main technique. It first creates a 100x100 2D array, then increments the existing data by a 20x20array of random (0..1) data. See if this makes sense. The insert point is given by the location of the cursor, just move it around for some effect. 🙂 Hey, it even looks pretty! 😄

See if this makes sense. Good luck and happy wiring. 🙂

Message Edited by altenbach on 08-25-2007 11:42 AM

Download All
Message 11 of 12
(573 Views)
Thank you so much; it looks like it'll work.  I'm gonna try it out.
0 Kudos
Message 12 of 12
(535 Views)