LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading in serial communication sometimes doesn´t work

I´m working with the example about serial communication. I connected my electronic card and sometime I read the data at my seial port ok and sometime I get serial error or time out. I need the system to be stable, what can I do?
0 Kudos
Message 1 of 2
(2,450 Views)
What is your byte count when using the read function. If you are only sending so many counts and your read function is requiring more you will encounter a timeout because that amount is not available. Maybe use the bytes at serial port function to find out how many bytes are available, when they are available read them. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 2
(2,450 Views)