serial communication too fast?

  • Thread starter Thread starter Marco Martin
  • Start date Start date
M

Marco Martin

Hi,

I'm writing a program in C# which logs data comming from a com port. the
port is set up 8 bit, no parity, 1 stop bit (n-8-1), @ 38400 baud. I'm
supposed to receive this data and simply display it in a listbox. No
problem there. Once I start iterating through the data to do some
manipulation though, it wont print to my listbox unless I put a break point
in my code. Then I get some data printed. A few seconds later, the same
thing happens, and I put a break point in the code again and more data gets
printed. I'm thinking that the data is comming too fast, but I'm running on
a P4 with 512M ram. It just doesn't make sense.
The data comes in fine if I just take it in and print it (like on
hyperterminal for example).

any ideas?

regards,

marco
 
have your listbox get refreshed every few seconds
(Listbox.Refresh())
you can use a timer and on the tick event refresh the
listbox.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top