04-04-2024 09:50 PM - edited 04-04-2024 09:52 PM
Hey y'all, I've inherited a bit of code, and everything seems to be working fine except for a part of the code that seems to hang indefinitely. I tracked it down to a Visa Read, but I'm a bit confused, as there was a timeout set when openned of 10 seconds, and it definitely hangs for longer than 10 seconds (I'd even prefer it to timeout honestly)
This is the connection VI that is run during initialization
It also makes it impossible to shut down the software, and I can't even seem to abort the VI that's reading, leading to me having to task kill software, and eventually restart the computer to get the VISA connection back. Any ideas would be greatly appreciated, as I'm kind of at a loss 😕
Solved! Go to Solution.
04-05-2024 02:52 AM
There is no VISA read in your screenshot. Are you sure it's not blocking due to the semaphore subVI?
04-05-2024 03:46 AM - edited 04-05-2024 03:47 AM
Assuming it is indeed a VISA Read that blocks (an Aquire Semaphore would be abortable when you try to abort the VI) the only thing that can cause this is either a borked VISA installation or a bug in the serial port driver.
What serial port is it? Most likely a virtual USB serial port? What make? Are you sure it’s a genuine one?
04-08-2024 12:06 PM
Welp, was getting into the weeds of VISA, tried updating the VISA package, and of course that fixed the problem instantly. Thanks for making me think of that, good reminder to always try updating!