LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial read freeze problem

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
0 Kudos
Message 11 of 12
(652 Views)
it seems to bw working alot better i just got one more question can anyone help me set up a timeout if labview gets frozen on the serial read and i guess i have two questin can anyone give me some other information on the serial read such as buffer size, do i need to clear it the buffer does it overwrite it  and all that stuff if anyone could point me in the right direction it would be very helpful thanks for all the help
0 Kudos
Message 12 of 12
(642 Views)