Swap Values Function

FlexRIO Help

Edition Date: November 2015

Part Number: 372614J-01

»View Product Info

»Download the Help in ZIP Format

Owning Palette: Memory Control 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.


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.


Not Helpful