Jump to content

Preallocating Space for File Write in LabVIEW


Recommended Posts

QUOTE (test001only @ Dec 12 2008, 04:02 AM)

When copying files of huge size in Windows, I have seen that Windows allocates block of memory required for that file even before it starts copying it. How to do the same using LabVIEW? I actually want to allocate contiguous memory if available. I have tried using Set file size VI, but it does not seem to allocate memory for the file.

Do you mean memory or disk space? For the first it obviously won't work as the file on disk is not loaded into memory unless you do an explicit file read. The later I'm 100% sure does work as I use that for instance in some data logger applications to make sure that the file is properly allocated without having to worry about disk full issues during the logging itself.

Rolf Kalbermatter

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.