Suppose I read data from serial port whenever 100 bytes are available or if nothing is done. This means that the remaining data will still be available in SerialPort Buffer. This readings are done inside Datacare's event handler.
Now a situation arises, when there is, say 50 bytes in the serial port buffer and there is no other data. Data will be triggered when the available bytes are available for reading some bytes.
Now, in the given scenario, if I have never read those 50 bytes, then will the event be active due to the presence of these unreadable bytes?
I posted a reply (see the comments above)). This is in the documentation "... when the data comes from the serial port object." Opi said, "If I have never read those 50 bytes, will the event be released continuously due to the presence of these unreadable bytes?" And you said "yes, it will keep firing until you read".
Whenever new data is received, the event only sets a fire. If you do not take action on that piece of data, that piece of data will not create a new event. However, if new data comes up, a new event will fire, and then you can process it at all.
Comments
Post a Comment