LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

insert small 2d array into larger 2d array

Solved!
Go to solution

hi, it is possible to insert a pre exsisting small array into (so it over writes) the data in a larger 2d array at a certian possition (in BOTH definable x and y coordinates)

 

for example:

 

2,4

4,7

 

into 

 

0,0,0,0,1

6,7,2,8,1

6,6,8,3,1

1,3,4,7,9

2,6,5,8,2

 

to give say:

 

0,0,0,0,1

6,7,2,8,1

6,{2,4},3,1

1,{4,7},7,9

2,6,5,8,2

 

or any other position, so you could get it anywhere in that 2d array??

I'm a little stumped, and i don't have any useful VI code to offer.

0 Kudos
Message 1 of 8
(3,363 Views)

John Pierson wrote:

hi, it is possible to insert a pre exsisting small array into (so it over writes) the data in a larger 2d array at a certian possition (in BOTH definable x and y coordinates)

 

......or any other position, so you could get it anywhere in that 2d array??

I'm a little stumped, and i don't have any useful VI code to offer.


 

Yes, it's possible (and easy!). You need "Replace Array Subset"

 

Rod.

 

0 Kudos
Message 2 of 8
(3,356 Views)
Solution
Accepted by John Pierson

Like this.....

 

 

 

0 Kudos
Message 3 of 8
(3,346 Views)

on oddly i'd tried that on the day i posted the request and it didn't work,

 

then you suggest it and it works.....

 

are you a labview wizard?

 

-chears b.t.w!

0 Kudos
Message 4 of 8
(3,298 Views)

John Pierson wrote:

are you a labview wizard?


No, that would be Altenbach

Message Edited by Cory K on 05-19-2009 10:16 AM
Cory K
0 Kudos
Message 5 of 8
(3,289 Views)

Cory K wrote: No, that would be Altenbach

Just curious. How you are comparing this user Rod to our beloved Christian?

0 Kudos
Message 6 of 8
(3,255 Views)

It was hardly wizardly (of me) to suggest a single LabVIEW function! I think that the suggestion was made as the function worked afrer I had suggested it but not before. (Isn't that the cardboad cut out progrmmer syndrome)

 

I read Altenbach's posts and learn.

Message 7 of 8
(3,240 Views)

I called you a wizard because it didn't work before and then it did after you said it should.

Our programming guy here in the uni is dubbed the Labview Wizard because simular things happen.

0 Kudos
Message 8 of 8
(3,235 Views)