Page 1 of 1

Serial port question

Posted: Tue Dec 16, 2008 12:02 am
by wh1sp3r
Is there any way, how to flush(or delete) input buffer?

Posted: Tue Dec 16, 2008 8:51 am
by ABBKlaus
you discard it by reading out the buffer :

Code: Select all

While AvailableSerialPortInput(#SerialPort)
  ReadSerialPortData(#SerialPort, @temp.l, 4)
Wend