I need to graph streaming data (9600 baud), which is coming in 2-4 byte packets from a serial port. The packets need to be processed before graphing. Currently, I am raising an event on each complete packet, which is causing responsiveness issues on the graphing form.
Which is the best solution to this issue:
- Buffer data and raise buffered data in event at timed intervals (ie 500 milliseconds)
- Build buffer and let instantiating object poll for buffered data/empty buffer when polled
- Other (?)