09-14-2011 12:39 PM
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
09-14-2011 01:12 PM
I've attached a work-around vi.
09-14-2011 01:31 PM
Doh! I mis-connected error in and error out on the connector pane of the previously attached vi. Use this one.