Writes binary data to a file.
If you want to use Read from Binary File to read the array or string data you write to file, the prepend input must indicate True. Otherwise, this node generates an error.
A Boolean specifying whether to include data size information at the beginning of the file when data is an array.
True | Includes data size information at the beginning of the file if data is an array. |
False | Does not include size information at the beginning of the file. |
prepend controls only the top-level data size information. Arrays in clusters always include size information.
Default: True
Custom message in the title bar of the file dialog box that appears when you do not wire a value to the input path.
The endian form that the node uses to interpret the binary file. 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. This endian-form is used when reading data written on a different platform. |
native, host-order | Uses the byte-ordering format of the host computer. This endian form 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
A reference to the file that this node uses.
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.
Use the Set File Position node if you need to perform random access file reads or writes.
Where This Node Can Run:
Desktop OS: Windows
FPGA: This product does not support FPGA devices
Web Server: Not supported in VIs that run in a web application