LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing file more 4GB

Hi Alex,

 


@alexderjuengere wrote:
using  "open/create file" once and then iteratively "set file position, write binary file, get file position", keeping the file refnum from open/create in a shift register and closing it after the loop has executed.

You don't need the Get/SetFilePosition as long as you keep the file refnum alive!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 11 of 12
(214 Views)

@GerdW wrote:

You don't need the Get/SetFilePosition as long as you keep the file refnum alive!


vielen lieben Dank, das vereinfacht die Sache erheblich

 

more over, when I wanted to reproduce the solution with using set/get file position - I wasn't able to reproduce my solution in a demo, which does mildly concern me.

so I followed Gerd's advice - and it works like charm!

 

I have put together this demo to write and read binary files bigger than 4 gb for anyone else how might stumble upon this thread - tested in labview 2020 64 bit with a 5 gb dump on a Windows computer with 16 gb of RAM

 

alexderjuengere_1-1697116733803.png

 

 

 

 

 

 

 

 

 

 

 

0 Kudos
Message 12 of 12
(172 Views)