Converts a flattened byte array to a data type you specify.
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.
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.
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
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
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.
Default: No error
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.
Data unflattened by this node from data bytes to the same data type and structure as type.
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.
Where This Node Can Run:
Desktop OS: Windows
FPGA:
Web Server: Not supported in VIs that run in a web application