Swap Values Function

Owning Palette: Memory Control VIs and Functions

Requires: Base Development System

Places the value of the y input into the x' output and the value of the x input into the y' output without allocating memory to perform the operation.

Details  

 Add to the block diagram  Find on the palette
y is any data to place in the memory location of the x input.
?(T) specifies whether you want to swap the values of the x and y inputs.
x is any data to place in the memory location of the y input.
y' returns the data from the x input.
x' returns the data from the y input.

Swap Values Details

Because this function swaps values without copying data from one place to another, the function does not consume memory to complete the swap operation. National Instruments recommends that you use this function to increase value swapping speed and improve memory utilization efficiency, especially when the data size is large. Visit ni.com/info and enter the Info Code extnfw for more information about using this function.