Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66935

Bug File/Directory Info Error Codes

$
0
0

I do not know if this has been reported before, but I could not find it on the discussion boards.

 

When using the File/Directory Info Function an Error code of 1 is supposed to be returned if the file contains an invalid character, such as @ or ?. However, at least in LabVIEW 2013 this is not always true. In order to receive the correct error code the directory output of the function must be wired. I believe this is a bug. See attached snippet.

 

BugFileInfo.png

 

When the Directory indicator is not wired it returns Error code 7, which indicates the file does not exist. While this is True, if one was using this function to determine if a file/directory name is valid, the wrong answer appears. Either way the function is inconsistent.

 

Also attached is the vi.

 

Cheers,

mcduff

 

 


Viewing all articles
Browse latest Browse all 66935

Trending Articles