Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69083

read buffer contains more than what I need

$
0
0

Hi,

Normally, this not the first time I use serial connection to control instrument.Strangely, this time I found that the read buffer contains as much byte as I spend time.I mean:if I put 1 second betwween write and read collect 200 bytes,if I put 3s I collect maybe 550 bytes.As you see in the VI, the read buffer contain the needed information(here the temperature) but among a lot of other information.If I change to true the enable termination char, I get just a troncated part of the buffer and always does not contain the desired information.

How can I fix this problem.I thought about taking a subset of the buffer string but this requires to know the first and the last position. In my case, it is not easy as this depend on the time of read ( more I spend time to read more I get information).

Thanks,


Viewing all articles
Browse latest Browse all 69083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>