LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial communication problem

Help!

I have a sensor which send out data to serial port. Why my program need to wait a long time on serial read.vi? I use bytes at serial ports.vi to get the number of bytes then feed it to serial port read.vi. If I highlight the execuation, everything is fine. I also put a 250 ms waiting function for the serial reading.

Can anybody help me?
0 Kudos
Message 1 of 4
(2,972 Views)
If the vi works with highlight execution on, I'll suggest you increase the waiting period and check what happens.
0 Kudos
Message 2 of 4
(2,972 Views)

Hi all,

I want to know if anyone has confirmed that by increasing the wait time, the vi actually runs smoothly without highlight execution.  I'm also having the same problem in that my program gives a timeout error when I don't  highlight the execution.  

 

Thanks,

Devin

0 Kudos
Message 3 of 4
(2,718 Views)

Deja Vu

 

How you handle the wait is up to you and what the instrument requires. As in the above post from earlier today, there are conditions where you don't use a fixed wait at all. 

Message 4 of 4
(2,710 Views)