LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PDA program locks up after a "serial port write.vi" to the Bluetooth port.

I'm using an embedded device to communicate to an iPAQ 2210 to using Bluetooth SPP. I'm able to send and receive characters through the serial port when the two devices are wirelessly connected but as soon as the connection is lost and I try to send a char with the iPAQ using "serial port write.vi" the vi will just sit there waiting for the embedded device to reconnect to the iPAQ.

Port settings are:
1024 buffer
port #4
9600 baud
8,1, N
(rest are default)

I have attached a short program that demonstrates this problem by sending a char to the serial port and waiting. The program 'light bars' will move when there is a device connected but will hold in the "serial port write.vi" function until a device connects to it.
0 Kudos
Message 1 of 2
(2,434 Views)
During the initialization VI, wire a number to timeout value (default is 10 sec or 10000 msec). If this does not work, see any other places have timeout inputs, wire a number instead of using the default value.

-Joe
0 Kudos
Message 2 of 2
(2,431 Views)