 PSerial
		
			PSerial
		
		
		
		
		
		
		
		
	
			09-27-2011 01:03 PM
Hello,
How can I re arrange the elements of a 1D array? e.g. A B C D E F G H ---> A B E F C D G H
Thanks!
Solved! Go to Solution.
 RavensFan
		
			RavensFan
		
		
		 
		
		
		
		
		
	
			09-27-2011 01:21 PM
You can use the functions Delete from Array and Insert into Array. You might also be able to use the In Place Element Structure to minimize the memory footprint of the arrays.
 Xooch
		
			Xooch
		
		
		
		
		
		
		
		
	
			09-27-2011 01:27 PM
Simply use the "Delete From Array" and "Insert Into Array" VIs. See attached.
 altenbach
		
			altenbach
		
		
		 
		
		
		
		
		
	
			09-27-2011 01:31 PM - edited 09-27-2011 01:45 PM
Since the size of the array does not change, delete from array and insert into array should probably not be used for performance reason.
 altenbach
		
			altenbach
		
		
		 
		
		
		
		
		
	
			09-27-2011 01:47 PM - edited 09-27-2011 01:47 PM
Here are two solutions that operate "in-place" with respect to the large array. Pick one (top or bottom).
 
09-27-2011 01:47 PM
Thanks everyone, that solved it. It was a simple 1D array with values listed above @ altenbach, thanks 🙂