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: 

shifting a 1D array

Is there a function that works exactly like the "Rotate 1D Array" function (can do both right and left shift directions), but simply places a zero value in place of new data?  It's ok to lose the data that gets shifted out.
 
Thanks,
Anthony
0 Kudos
Message 1 of 2
(2,786 Views)
There is no single function that does this, but you can easily do this by using a combination of Rotate Array and Replace Array Subset. If you need this more than once, you can even make it a subVI.

___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,778 Views)