Improvements are nothing without reliability! The improvable part I mentioned is the post read message processing, where you may have received only a part of the data, so you would need some message integrity checking and possibly wait for the remaining part.
Back to the freezing problem, I couldn't conceive any reason for hanging, unless a hardware or driver problem occurs, or some obscure problem in compiling the vi (what about rebuild from scratch?).
You said you are using Bluetooth: you may try using directly the BT functions if your hardware is supported. I made something similar in the past with LV 7.1. I sometimes did get some hangs on indicator updates (!), but never on BT Reads.
I'm attaching an example that discovers all BT devices with a Serial service, connects to the first, reads 10 times and then closes the connection. It's an incomplete vi (lacks proper error handling, etc.), still a reasonable starting point.
Message Edited by pincpanter on 07-26-2007 10:34 AM
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021