LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Volume Info.vi returns error 7 when trying to get disk information on cRIO-9025

Solved!
Go to solution

Hi, Smiley Happy

 

I'm using a cRIO-9025 controller and wish to get the disk volume information of drive C: using the Get Volume Info function in the file I/O palette. When I run the function with the path as "C:\", the function returns an error 7 indicating that the path is incorrect.

 

I have used this function prior to this with cRIO but unfortunately I do not have any older devices with me to verify this now. I'm using LabVIEW 2009 SP1.

 

Many thanks!

 

Cheers!

Sankah2k

0 Kudos
Message 1 of 4
(3,132 Views)

I'm not sure whether c:\ is a valid path on CRIO,

 

the following code should get your paths:

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 4
(3,120 Views)
Solution
Accepted by providev
On VxWorks real-time targets, the file path root is /c/ (in lower case). Try that and let us know if it works. You would be better of using the file path constant to figure out what the root directory path looks like.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Message 3 of 4
(3,108 Views)

Thank you both for your great help! Smiley Very Happy

 

Managed to find that the path indeed was /c/

 

Cheers!

0 Kudos
Message 4 of 4
(3,071 Views)