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

Wrong millisecond time format causes LabVIEW hang

$
0
0

I was using Format Into String to format a timestamp and I accidentally used the format string "%<%H.%M.%S%.3u>T" instead of "%<%H.%M.%S%3u>T" (added an extra '.' into the millisecond specifier). I would expect of course that it wouldn't work if I used the wrong format, but what I didn't expect was HOW it wouldn't work.

 

If you run the attached example, you will see that there is no error on the error out wire, but an error pop up:

error.png

 

When I had this in my application (not at the top level), I didn't even get this error message, LabVIEW just hung and would not go past that point in code. This made it really hard for me to debug and find my mistake.

 

Does anyone know why this happens? I think it would be much better if the Format Into String node returned with an error on error out, rather than hanging in cases like this.


Viewing all articles
Browse latest Browse all 69503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>