BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Minutiae (that may bite you someday)


@for(imstuck) wrote:

file or folder exists returns TRUE on an empty path.


As documented. 😉

 

exists.png

Message 101 of 131
(10,308 Views)

"Is there some computing reason for this?"

 


@Darren wrote:

@for(imstuck) wrote:

file or folder exists returns TRUE on an empty path.


As documented. 😉

 



I guess that answers that. 

0 Kudos
Message 102 of 131
(10,287 Views)

for(imstuck) wrote:


I guess that answers that. 


Now, whether or not an empty path *should* refer to the mounted drives of the system is certainly a valid question. But currently, that's how all the File I/O functions and VIs treat an empty path.

Message 103 of 131
(10,283 Views)

I can say from my experience today, it's counter intuitive. But maybe it's not for someone with more of a computing background. I guess the fact that it's documented is fine, but it certainly could bite someone whether it's mentioned in the help or not. My initial thought when I saw this behavior wasn't to go look in the help.

0 Kudos
Message 104 of 131
(10,268 Views)

@for(imstuck) wrote:

I can say from my experience today, it's counter intuitive. But maybe it's not for someone with more of a computing background. I guess the fact that it's documented is fine, but it certainly could bite someone whether it's mentioned in the help or not. My initial thought when I saw this behavior wasn't to go look in the help.


Now you understand a basic flaw in your thought process.  Next time.....

Looking in the help file is not evil. (I may need to change my signature line)

 

That doesn't make it a poor u-nugget though!  Some of the best have been straight out of the help file.


"Should be" isn't "Is" -Jay
Message 105 of 131
(10,235 Views)

List folder with an empty path gives the mounted drives, so the empty path the base of the file system. That's how i imagine it. 🙂

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 106 of 131
(10,209 Views)

Thanks to this 6 1/2 years old post, I have never been bitten.

 

Thank you Darren. You didn't loose your time!

0 Kudos
Message 107 of 131
(10,208 Views)

@JB wrote:

Thanks to this 6 1/2 years old post, I have never been bitten.

 

Thank you Darren. You didn't loose your time!


Doh, the response in that thread about the windows function is from my coworker Smiley Surprised

Message 108 of 131
(10,150 Views)

Basic programming minutiae that may bite you some day: If you're going to change the basic functionality of someone else's code, at the very least make the changes to a copy, change the icon and give the copy a new name. I was recently bitten by a vendor-provided driver that had major modifications done to it here in-house and was not documented. Just changed. That was years ago. I inherit a new project and need these drivers. When the code didn't work as expected I first assumed I was doing something wrong. "Why would the vendor code create a problem? It's worked well for years."..."What do you mean ReadValue.vi is not the same as ReadValue.vi?" Smiley Surprised

PaulG.

LabVIEW versions 5.0 - 2020

“All programmers are optimists”
― Frederick P. Brooks Jr.
Message 109 of 131
(10,091 Views)

@JÞB wrote:

On a related note:

I'm pretty sure I looked through the help.... I did not find a suitable explaination for this Right Click option ....

It seems like minutia that will bite visciously if angered.

Has anyone trained this dog to do tricks?

Capture.PNG


Were you actually looking for an explanation of this? Let's say you wire a 12-element array of booleans, with the output configured as 16 bits (because it needs to be a whole number of bytes). The data will be in the low 12 bits. What should the upper 4 bits contain? If the sign extension mode is "Never" then those upper 4 bits are 0. If the Sign Extension Mode is Always, then the upper 4 bits are set to the same value as the last element of the array. If Sign Extension Mode is "If Output is Signed" then it will act like "Never" when the output configuration is unsigned, and "Always" when the output configuration is signed.

Message 110 of 131
(10,021 Views)