LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I control read start position in a very large file where start byte position may be larger than I32 (+/- 2^31)?

Using LabView, I am trying to read a very large file which may be on the order of 2^32 bytes. I need to be able to step into the file at a byte position which may be greater than the I32 limit set by the read file.vi. Are there any options to the read file.vi or a method of circumventing this limitation?
0 Kudos
Message 1 of 4
(3,070 Views)
Consider breaking the large file into multiple smaller files. Good Luck - Doug
0 Kudos
Message 2 of 4
(3,070 Views)
I'm not sure but i think that you can manage the "pos mode" in the "seek" sub-vi.

The "pos mode" let you choose the initial position to add the numbers of bytes you want to move.

I think that you can add a i32 number from the "initial" in the "pos mode" an latter use the "pos mode" in "current" to add another value. Then the next time you can move more than 2^31 bytes to the initial position.

I hope you understand my idea, i wasn't try it before, but i think that would work.
0 Kudos
Message 3 of 4
(3,070 Views)
I found that file size is not a problem if you use the hsdlFileRead VI from the NI High Speed Data Logger software. You can download the HSDL nihsdl.llb VI library from the NI webpage.
0 Kudos
Message 4 of 4
(3,070 Views)