LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug File/Directory Info Error Codes

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

 

 

Download All
0 Kudos
Message 1 of 3
(2,626 Views)

Hi mcduff,

 

This is Mike Watts in Applications Engineering at National Instruments. Thanks for bringing this to our attention. I have not seen this one before. I am going to do some research to see if this behavior is expected, and if it is not expected, I will file a Corrective Action Request regarding this potential bug. I will update you if I learn something useful. Thanks!

Regards,

Mike Watts
Product Manager - Modular Instruments
0 Kudos
Message 2 of 3
(2,579 Views)

Thanks for looking into it. I am not sure why wiring an indicator would give a different error code, as I saw nothing that mentioned it in the help.

 

Thanks again.

 

Cheers,

mcduff

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