LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug/Inconsistancy in Get Volume Info

I noticed an inconsistancy between platforms when using Get Volume Info. On Windows, the vi seems to strip the path down to the volume before attempting to do anything with it. It returns the duplicate path out and well as the volume path (e.g., "c:\"). On vxworks the vi fails if it is given a path to a directory that does not exist (when the volume DOES exist). Also, even when it works (i.e., when the input path does exists), it only strips one level off the path before returning it as the volume path output.

 

Example on vxworks:

in: path -> c:\ni-rt\config

out: path out -> c:\ni-rt\config

out: volume path -> c:\ni-rt

out: no error

 

Example 2 on vxworks:

in: path -> c:\ni-rt\config\test (non-existent directory)

out: path out -> c:\ni-rt\config\test

out: volume path -> <Not A Path>

out: error 7

 

To contrast, in Windows it will return without error in both cases, and will always return "c:\".

 

I am testing this in LV 2011 and NI-RIO 4.0 on a NI cRIO-9014.

 

Thanks,

Chris

0 Kudos
Message 1 of 3
(2,540 Views)

I've attached a work-around vi.

 

Get Volume Info-cm.png

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

Doh! I mis-connected error in and error out on the connector pane of the previously attached vi. Use this one.

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