Error 116 When Reading From a Binary File

Updated Aug 24, 2023

Reported In

Software

  • LabVIEW Full
  • LabVIEW Base
  • LabVIEW Professional

Issue Details

I'm trying to read from a binary file, but I receive an error message 

Error 116 occurred at Read from Binary File.

 Why is this happening?

Solution

There are a few reasons that this could occur:
  1. You have input the wrong data type into the Read from Binary File VI. Ensure that the data type input matches the data type you expect to read.
  1. You are trying to read a cluster of multiple data types with the Read from Binary File VI. When writing and reading cluster data types, use the Datalog VIs, which are specifically designed for this purpose. These VIs still save the data as binary data.
  2. You tried modifying the binary file with a text editor. Look for a previous copy of the binary file from before you modified the binary file.

Additional Information

Even if you are reading a 1D or 2D array of doubles, only wire a scalar double to the data type. The Read from Binary File VI will return a 1D array of doubles.