Create binary files by writing any LabVIEW data type with the Write to Binary File function. To read the data, specify the data type of the data to read.

  • Use the Write to Binary File function to create a binary file. You can wire any data type to the data input of the Write to Binary File function.
  • Use the Read from Binary File function to specify the data type of the data in the file you want to read. Wire a control or constant of that type to the data type input of the Read from Binary File function.
  • You can use the Write to Binary File and Read from Binary File functions to read from and write to text files created on a different operating system.

Reading and Writing Binary Files Example

For examples of using the Read from Binary File function and the Write to Binary File function, refer to Simple Binary File.lvproj in the labview\examples\File IO\Binary\Simple Binary folder.