LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Vi to get size of disk space available

Solved!
Go to solution

Hello All, Hope everyone is doing good in covid time. I have came across one interesting problem. We want to build a vi which will return us available size of C drive D drive and E drive on any computer.(Naming of drives are given as example).

We have tried searching for labview help but there are no such VIs which can give us disk size available on Windows machine.

 

Any hard coder here please guide us!

 

Thanks

0 Kudos
Message 1 of 14
(2,194 Views)

Open ni example finder and search for memory.

You will get a example named resource monitor.vi

It will help you.


CLD Using LabVIEW since 2013
0 Kudos
Message 2 of 14
(2,185 Views)

@kartiknattar  ha scritto:

Open ni example finder and search for memory.

You will get a example named resource monitor.vi

It will help you.


This vi requires an additional NI driver (System Configuration).

There's for sure the possibility to use .NET or other system calls to get this number.

A simpler method is to run the console command dir C:\ (or whatever unit) and parse the output string.

In the example below I show the final part of the output string where the penultimate line contains the required size.

 

pincpanter_0-1642590457492.png

 

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 3 of 14
(2,173 Views)

wiebe@CARYA  ha scritto:

wiebeCARYA_0-1642590866215.png

 


Ah, it's so simple... I never used this function.

I gave confidence to the OP claim (that there is no solution available) but I should have not.

Actually, if you lack experience also means you don't know where and how search something.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 5 of 14
(2,160 Views)

Man instead of making fun of me try helping. We do not have full development version of labview accessible to us. We get hardly 1 hr to use labview in our institute. Thanks for your reply anyways. This vi returns size of only 1 disk. 

0 Kudos
Message 6 of 14
(2,134 Views)

@LamarDavisss  ha scritto:

Man instead of making fun of me try helping. We do not have full development version of labview accessible to us. We get hardly 1 hr to use labview in our institute. Thanks for your reply anyways. This vi returns size of only 1 disk. 


Believe me, I tried to help, but I should have given a check to the Advanced File Functions palette before. My bad.

I can add that everyone here did not know where to search for a few weeks/months after starting to program with LabVIEW.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 7 of 14
(2,131 Views)

@LamarDavisss wrote:

Man instead of making fun of me try helping. We do not have full development version of labview accessible to us. We get hardly 1 hr to use labview in our institute. Thanks for your reply anyways. This vi returns size of only 1 disk. 


AFAIC, the joke was mostly on himself, not you...

 

Put the function in a loop and loop over each letter:

Space On Volumnes.png

 

Message 8 of 14
(2,115 Views)

Thats look great. Thank you so much for your contribution.

0 Kudos
Message 9 of 14
(2,077 Views)

Hey mate! Do you have this VI with you. If yes can you please post it here?

0 Kudos
Message 10 of 14
(2,084 Views)