Showing results for 
Search instead for 
Did you mean: 

serial-port traffic clogs buffers?

Is it possible that when using LV5-supplied serial VIs and perhaps inadvertently setting "Bytes To Read" so that it does not exactly match the growing queue of available data trying to get into the port/app'n that some kind of clogging might be responsible for non-specific errors that purport to be variously "framing" "parity" a.o.?
0 Kudos
Message 1 of 2
A better way to do serial port reads is to first use Bytes at Serial Port (for serpdrv)or VISA Bytes at Serial Port and use the output to determine Bytes to Read. You could then read until bytes to read is equal to zero or set the read to stop when a termination character is seen. For mis-behaving serial devices, doing a serial buffer flush before you write a command to the serial device can also help. The LabVIEW supplied serial VI's aren't very robust in my opinion. There's been a lot of examples posted here that would work a lot better.
0 Kudos
Message 2 of 2