LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pda - check volume free space

Hi Everyone:

Does anyone know of a way to check a the free space available in a certain folder on a PDA (Pocket PC).  Specifically, I'm trying to find a way to check the free space available on an SD Card in my IPAQ - any ideas?

Greycat
0 Kudos
Message 1 of 5
(3,829 Views)
Greycat:

You can use the "File/Directory Info.vi" to find out the size of a file or directory that you specify in the path. You can use this data to figure out how much you have left in a specific folder in your PDA.
I hope this helps.

Rudi N.
0 Kudos
Message 2 of 5
(3,804 Views)
Thank you for the response. In reading the File/Directory Info information in Labview Help it states that "If PATH specifies a directory, size indicates the number of items in the directory." ... given this statement it would seem that this approach would not work.  The only other option I could think of was to use the List Folder vi then run the File/Directory Info vi on each of the file names adding them up as we went along then subtracting that from a known size (in this case I'm trying to gather the room left on an SD Card) ... herein lies the problem ... the size of the SD Card can be variable, so I was hoping there was an easier way to do this.  Any other ideas or is this what I am left to work with?

Greycat
0 Kudos
Message 3 of 5
(3,797 Views)
Greycat:

You are right in the sense that it may be cumbersome to scroll through every single file, get the file size and add all those up.in order to know how much space you have left on your card. Another option would be to look at the msdn page to see if there are any functions that you can use to return the size of the card. If there are, you can then bring such function into LabVIEW as an external code. I hope this helps.

Thanks,

Rudi N.
0 Kudos
Message 4 of 5
(3,732 Views)
Thanks for the response Rudi

I'll look into it and post what I find out ...

Greycat
0 Kudos
Message 5 of 5
(3,707 Views)