Vector - Sort

This function block sorts the elements of the vector VX in ascending or descending order.

The order will be determined by the input bAscend. The result will be written back to VX.

Operations

bAscend = HIGH: Ascending order

bAscend = LOW: Descending order

Signals

Name I/O Type(s) Function
VX I/O UCHAR, WORD, LONG, LONGLONG, FLOAT, DOUBLE In-/output vector
bAscend I BIT Sorting direction

Comments

The data type will be assigned by connecting the input signal VX.