Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Speed of Display information is slow

Status
Not open for further replies.

bytebugbitme

Programmer
Feb 17, 2005
2
US
I have a program which reads a serial link (4800 baud), the threshold is set at 512 characters. I then process the data in chunks that range from 15 to 80 bytes. After I process each chunk, I display the results. I have noticed that the display only updates when the first chunk after the comm event recieved occurs (about once per second, but I KNOW that the other chunks are processed from counters and other troubleshooting devices I have installed. If the threshold is set to 1024 characters, the update rate is about 2 seconds, so I know the update is somehow linked to the comm reception. All the data gets processed before the next transmission. Why don't I see all of the other display info.
 
Maybe you need a DoEvents somewhere... also are you using a Timer ?
 
Try putting the command

DoEvents

after each chunk is processed and the display is supposed to be updated.

Other than that, without seeing some of the code you've written, you've kept us pretty blind to what the problem might be.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top