LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Not a path

 

Watch out for this one guys, although it is easy enough to work around.

 

Its on 2010 and 2009, perhaps further back as well.

 

 

 

 

0 Kudos
Message 1 of 4
(2,752 Views)

Are you claiming a bug?  Or just a point out something that caught you off guard?

 

The results of the VI are accurate.

 

In the top you used a Not a Path constant, checked it for "not a path" and the result is true.

In the top you used the same constant, and converted it to a string.  The string is empty.  Converted it back to a path.  Now you do have a path, it just happens to be an empty path, so when you evaluate it for Not a Path, the result is false.

 

An empty path and a Not a Path are two different things.  But you lose that information when you convert it to a string datatype.

Message 2 of 4
(2,749 Views)

 

I agree.

 

It actually caught me off guard because it was easy to think that conversions would produce the same result when reversed.

 

 

 

 

0 Kudos
Message 3 of 4
(2,720 Views)

 

What I meant to say is

now that you explain it that way I agree it is not a bug

 

Thanks!

 

 

0 Kudos
Message 4 of 4
(2,717 Views)