LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

the serial communciation receives wrong data


PKIM wrote:

The source of data is generated by external circuit board which is running at BAUP 9600. The board will send out a text  contains 30 to 70 characters at every 1 second. The above labview code is working perfectly.

 

But if I let the circuit board generate the same data but in the interval of 10 seconds or longer, the labview code works for a while but after it always receive somehting weird, the indicator shows blank string. I am thinking if it is because the code try to read out something but the source is not yet ready to produce any?


The default timeout is 10 seconds.  If your code was working with data coming out every 1 second, but now does not with every 10+ seconds, all you need to do is increase your timeout (one of the inputs on the Configure Serial Port).



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 11 of 11
(800 Views)