ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Copying and pasting array values

Solved!
Go to solution

I have a program that has multiple arrays.  Recently there were about 80 more new values I needED to add to each array.  I just finished adding the new values to one of the arrays - is there a way I can highlight and copy that whole block of values I just added so I can then paste it  onto the other arrays?  It seems like I can only highlight, copy and paste one value at a time.

********************************************
Amateur programmer for over 10 years!
********************************************
0 Kudos
Message 1 of 4
(3,968 Views)
Solution
Accepted by topic author spaceman_spif

Do it programmatically.  Copy your array to a new VI.  Use Array subset to get the portion.  Add it to a copy of your other array with Build Array or Insert into Array.  Copy the updated arrays back to the original locations.

Message 2 of 4
(3,957 Views)

EDIT.  It doubled posted message.

Message 3 of 4
(3,956 Views)

I was considering that, but I found these new values are all the same for each array, so I was hoping there was a way to do a simple copy and paste.

********************************************
Amateur programmer for over 10 years!
********************************************
0 Kudos
Message 4 of 4
(3,947 Views)