Swap Bytes function

From LabVIEW Wiki
Jump to: navigation, search
Object information
Owning palette(s) Data Manipulation palette
Type Function
Requires Basic Development Environment
Icon Data Manipulation Palette - Swap Bytes.png

The Swap Bytes function swaps the high-order 8 bits and the low-order 8 bits for every word in data.

If you want to byte-swap floating-point or fixed-point numbers, use the Type Cast function to cast the value to a 1D array of bytes by wiring an array of numeric controls to the type input and the floating-point or fixed-point numbers to the x input. Then use the Reverse 1D Array function to convert the array to a floating-point number with the elements reversed. The connector pane displays the default data types for this polymorphic function.

Usage

History

Version Change(s)
LabVIEW 2018 More info to come.

See Also

External Links