I tried both the original example and your modified verion of it and both seem to work properly. I tried it on a PXI-8146 controller which has a CompactFlash card for a hard drive. I then removed the CompactFlash card and inserted it into a CompactFlash Reader so that I could look at it with my Desktop machine directly. The free space was exactly the same (down to the last byte). The total space and used space was a slightly different but not significantly and was probably due to the RT system reporting memory that the drive is required to use for things like the file allocation table. I'm not a drive expert but this doesn't seem uncommon to me since I wasn't surprised that Windows reported my 32 MB CompactFlash Card as 30.2 MB. The free m
emory and the file sizes are correctly reported. Also, in your VI you divide by 1,024,000 to convert to MB and it technically should be 1,048,576 which is 2^20. Let me know if you have questions.
JR A.
Application Engineer
National Instruments