Flatten/Unflatten String Functions

Owning Palette: String Functions

Requires: Base Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Flatten/Unflatten String functions to flatten and unflatten LabVIEW data types to and from strings.

Palette ObjectDescription
Flatten To JSONConverts data you wire to the anything input to a UTF-8 JavaScript Object Notation (JSON) string.
Flatten To StringConverts the anything input to a flattened data string of binary values. You also can use this function to convert the byte order, or endian format, of the data in the flattened data string.
Flatten To XMLConverts any data type you wire to anything and converts it to an XML string according to the LabVIEW XML schema.
Flattened String To VariantConverts flattened data into variant data.
Unflatten From JSONConverts a UTF-8 JavaScript Object Notation (JSON) string to the LabVIEW data type you wire to type/defaults.
Unflatten From StringConverts binary string to the type wired to type. binary string should contain flattened data of the type wired to type. You also can use this function to specify the byte order, or endian format, of the data in the binary string.
Unflatten From XMLConverts an XML string to a LabVIEW data type according to the LabVIEW XML schema.
Variant To Flattened StringConverts variant data into a flattened string and an array of integers that represent the data type. You cannot flatten ActiveX variant data.