LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

GetDiskSpace on real-time OS

Solved!
Go to solution

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 

0 Kudos
Message 1 of 3
(2,974 Views)
Solution
Accepted by kb3kj

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

0 Kudos
Message 2 of 3
(2,969 Views)

Thanks NickB -  Using GetDiskFreeSpaceEx is working fine.

 

Jim

 

0 Kudos
Message 3 of 3
(2,945 Views)