Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Why Do I Receive Error 116 When Reading From a Binary File?

Primary Software: LabVIEW Development Systems>>Base Package
Primary Software Version: 7.1
Primary Software Fixed Version: 7.1
Secondary Software: N/A

Problem:
I'm trying to read from a binary file, but I receive an error message indicating, Error 116 occurred at Read from Binary FileWhy 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.

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

  3. 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.
  4.  
  5. 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.


Related Links:
LabVIEW 8.6 Help: Reading from Binary Files
LabVIEW 8.6 Help: Writing to Binary Files
Developer Zone Example: Creating and Reading Binary Files for 2D Arrays in LabVIEW
KnowledgeBase 2UH9ESIP: When Reading from a Binary File in LabVIEW, Why Do I Receive an Empty Array of Data or Error 1?
KnowledgeBase 2N1DMKM5: How Can I Write and Read Binary Files Using LabVIEW?
KnowledgeBase 10U39NAQ: Writing Binary Files with LabVIEW That Can Be Read by Other Applications.

Attachments:





Report Date: 08/13/2008
Last Updated: 08/14/2008
Document ID: 4OCG971D

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit