AnsweredAssumed Answered

VRF - Flush serial port...

Question asked by VRFuser on Mar 28, 1996
>      Hi all visual engineers!
>     
>      I am using direct IO through the serial port on a PC w/VEE 3.12. I am
>      having problems communicating, seemingly due to the com port buffer
>      filling up. Does anyone know how to flush it, using HP VEE objects?
>      Do I need to write a "DLL"?

> I don't believe "an EXECUTE RESET transaction" will help and I don't
> think you need to write a DLL.

> I had an application in which I didn't know if I was going to get data back
> on the serial port or how much data to expect (if any).  So after every
> string I wrote to the serial device, I needed to read whatever came back
> from the device.

A better way to flush the serial receive buffer (without having to wait for
a timeout) is to use the Interface Event object (I/O -> Advanced I/O).

It can be used in two ways:
* Generate an interrupt when one or more bytes are received
* Return how many bytes there are in the receive buffer 

Regards
GoJo


Outcomes