Table Of Contents

Unflatten from Byte Array (G Dataflow)

Last Modified: August 28, 2017

Converts a flattened byte array to a data type you specify.

connector_pane_image
datatype_icon

type

The data type to which you want to convert the data.

Wire any constant or control to this input to set the data type to which you want to convert the data. This node ignores any data in the constant or control you wire to this input.

datatype_icon

data bytes

A flattened byte array of the input data that this node can unflatten.

If data includes array or string size? is True, data bytes contains header information describing its size.

data bytes must contain flattened data of the original data type that you wired to type.

datatype_icon

data includes array or string size?

A Boolean that indicates whether the node reads data size information from the beginning of an incoming array or string.

data includes array or string size only accesses the top-level data size information. Arrays and strings in hierarchical data types such as clusters always include size information.

True Reads the size information from the beginning of data bytes.
False Detects the size information from the memory size of data bytes.

Default: True

datatype_icon

byte order

The endian format of the data in the resulting output. Byte order, or endian form, indicates whether integers are represented in memory from most-significant byte to least-significant byte or vice versa. When reading a binary file, you must interpret the data in the same byte order in which the data was written.

Name Description
big-endian, network order

The most-significant byte occupies the lowest memory address. Use this endian format when reading data written on a different platform.

native, host-order

Uses the byte-ordering format of the host computer. This endian format increases read and write speed.

little-endian

The least-significant byte occupies the lowest memory address.

Default: big-endian, network order

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

remainder of the data bytes

Bytes that this node did not convert.

This node does not convert all the bytes if the size of data bytes is not a multiple of the size of type.

datatype_icon

value

Data unflattened by this node from data bytes to the same data type and structure as type.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Where This Node Can Run:

Desktop OS: Windows

FPGA:

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics