LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How much disk space for RT OS

Solved!
Go to solution

Hi all

 

RT OS (Desktop) has a problem: If disk is full RT OS won't start.

So I have to limit the amount of file output of my RT application to a reasonable value.

To do this I read free disk space at start of my application (using GetFreeDiskSpaceEx), so I can enshure that MY apllication will not write more data than available space (e.g. by deleting old data).

But I don't know how much disk space the operating system will need while running.

Can anybody tell me a value to calculate with?

 

Many thanks in advance!

 

Yeti0815

0 Kudos
Message 1 of 4
(3,185 Views)

I can't tell you a value but I am not sure if it s a good idea to squeeze out the last byte of your disk... In any case you should query the return value of your write functions which will tell you if disk write was successful.

0 Kudos
Message 2 of 4
(3,182 Views)
Solution
Accepted by topic author JensT

A general rule of thumb is that the OS needs roughly 25MB of storage for temporary files, .ini files, persistent storage, and the like.  Don't suck your usage below 25MB and you should be able to minimize your surprises.

 

NOTE:  This number was obtained empirically via not-so-stringent testing.  Your mileage may vary.

 

-Danny

Message 3 of 4
(3,167 Views)

Hi Texas_Dias,

 

thank you for the info. I'll keep 50MB free, then I will be on the safe side.

 

Yeti0815

0 Kudos
Message 4 of 4
(3,156 Views)