Riffle VI

Owning Palette: Signal Operation VIs

Requires: Full Development System

Riffles the elements in the input array X. Wire data to the X input to determine the polymorphic instance to use or manually select the instance.

Details  

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

Riffle Array (DBL)

X is the real input array to riffle.
seed is the seed value at which to riffle X. The default is –1.
Riffled {X} returns X with riffled elements.
Riffled Index returns the corresponding index in X for each element in Riffled {X}.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Riffle Array (CDB)

X is the complex input array to riffle.
seed is the seed value at which to riffle X. The default is –1.
Riffled {X} returns X with riffled elements.
Riffled Index returns the corresponding index in X for each element in Riffled {X}.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Riffle Array (I32)

X is the integer input array to riffle.
seed is the seed value at which to riffle X. The default is –1.
Riffled {X} returns X with riffled elements.
Riffled Index returns the corresponding index in X for each element in Riffled {X}.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Riffle Details

This VI riffles the input array by randomly selecting two elements in X, swapping those elements, and then repeating this process n times, where n is the length of X.