Error 4 Occurred at Read Datalog Possible Reasons: End of File

Updated Oct 23, 2018

Reported In


  • LabVIEW 2015 Full
  • LabVIEW 2016 Full

Issue Details

In my VI I create a datalog file with 10 recordsets.
In the same VI, after create the file I read the datalog file and error happens: Error 4 Occurred at Read File in Possible Reasons: End of File and none of the records were read. 


You must set the file position pointer to the start of the file for reading, as following:
  1. Before you start the while loop, initialize the "count" input of the Read Datalog VI to 0 (Start)
  2. Then using a shift register, changing the "count" input  to 1 (Current)
Refer to Write & Read Datalog File (fixed).vi for the fixed implementation.

Refer to Write & Read Datalog File (problem).vi attached below to reproduce this problem. 


Additional Information