05-14-2009 08:44 AM
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.
Solved! Go to Solution.
05-14-2009 08:55 AM
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.
05-14-2009 09:14 AM
Like this.....
05-19-2009 10:09 AM
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!
05-19-2009 10:14 AM - edited 05-19-2009 10:16 AM
John Pierson wrote:are you a labview wizard?
No, that would be Altenbach
05-20-2009 01:46 AM
Cory K wrote: No, that would be Altenbach
Just curious. How you are comparing this user Rod to our beloved Christian?
05-20-2009 04:52 AM
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.
05-20-2009 05:07 AM
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.