03-08-2011 08:32 AM
Is there a way to query the free disk space in a PXI system running the real-time OS. I get lots of linker errors trying to use the GetDiskSpace function which works in Windows. (In Labview there is apparently something called Get Volume Info but I have not been able to find an analog in CVI 8.5)
Jim
Solved! Go to Solution.
03-08-2011 09:10 AM
Hey Jim -
The problem is that GetDiskSpace is implemented in the programmers toolbox, which isn't yet supported on Pharlap. However, you should be able to pull the necessary pieces out of toolbox.c (<NI>\CVI85\toolslib\toolbox\toolbox.c). All of the work for this function is actually done by the Win32 API function GetDiskFreeSpaceEx, which is supported on Pharlap.
Take a look at the source code, and let me know if you have any questions.
NickB
National Instruments
03-08-2011 11:43 AM
Thanks NickB - Using GetDiskFreeSpaceEx is working fine.
Jim