LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

End of file error using modified version Cont Pattern Input.

Hi. I am using the Cont Pattern Input example, which is modified to write the Data Read to a file on the hard drive. A wire is connected from the Data Read to a "Write to I16 subVI" which is also modified to be a "Write to U8 subVI". It writes problem free to the file specified until the 2.1 GB when it displays a Error 4 "End of File Error". There is ample space on the hard drive. How do we get rid of this error as we would eventually need to write up to 60 GB of data?
0 Kudos
Message 1 of 3
(2,563 Views)
Unfortunately, the only thing to do is get a different operating system. I seem to recall that Windows has a fixed limit on file size of about 2G.

Is there any way you can logically break the data you're collecting into smaller logical units? Alternately, you could structure your code to write to one file till it fills and automatically switch to a second, and a third and so on. As long as the routine that you write for working with these huge datasets keeps track of the various pieces of data it could all work as though it were all in one very very very large file.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(2,563 Views)
> Unfortunately, the only thing to do is get a different operating
> system. I seem to recall that Windows has a fixed limit on file size
> of about 2G.
>

Actually, it isn't the OS, but the OS API that LV is currently using.
The OS can handle larger files, and when LV and the file primitives are
updated to use 64 bit integers for offsets, files larger than 2GB will
be possible.

In the meantime, as mentioned, break your files into smaller chunks.
This will also be useful if/when you need to move or copy the files to
other locations.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,563 Views)