LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 4 EOF when opening Binary files

I am running in to Error 4 End of File: Invalid argument or arguments to function call.

 

I've attached the VI and (2) example files.  It will open one of the file just fine but throws this error when opening the second file.

 

I did some research and found a blurb from NI about resetting the file pointer using, Set File Pointer.vi but it didn't work or i couldn't configure it correctly.

 

Anyone else have this error and find a solution?

0 Kudos
Message 1 of 4
(2,755 Views)

Hi coolhand,

 


@coolhandLV7 wrote:

I've attached the VI and (2) example files.  It will open one of the file just fine but throws this error when opening the second file.

 

I did some research … but … i couldn't configure it correctly.

Anyone else have this error and find a solution?


What kind of research did you do? (Apparently no debugging.)

One of the files is empty and so there is nothing to read at all!

 

Btw. your VI still converts all SGL values into DBL values for no good reason…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,742 Views)

Your second file is empty.  So of course your going to get that error since you are at the end of the file on the first read.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 4
(2,740 Views)

I must have deleted the content and didn't realize it.  Well that's embarrassing.  Thanks for the help, I appreciate it.

0 Kudos
Message 4 of 4
(2,729 Views)