Hi,What you do is to append newly arrived data to a Private (or Static)variable, then parse that variable to determine if all data have arrived.How you do this parsing depends on the format of your scale. Some scalesoutput data in pure ASCII, terminated by a carriage return. Thus, you waituntil the vbCr (or vbCrLf) terminates the string, and the display and useit. In other cases, the data may be part of a packet that has moreinformation in it than just weight. In that case, the terminating conditionmay be something like a EOT character.
The overall process is similar,however.BTW, you do not need a delegate, except when it comes time to actuallydisplay the data - so the error that you are seeing may be caused by alogical problem. Without seeing your code, and having more to go on thanthe description that you've presented, I'd be guessing more than I'd like.I do have several different scale examples in my book (see below), and onemight be quite close (or even the same) as what you are trying to do.Dick-Richard Grier, MVPHard & SoftwareAuthor of Visual Basic Programmer's Guide to Serial Communications, FourthEdition,ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March2006.See for details and contact information. Hi,This is fairly easy.Simply append new data to a string buffer. Use the buffer Split method ofthis string buffer to separate each line into a separate entry in a stringarray - Split on vbCrLf. Then, loop through the array to make sure thatboth the first entry (index 1) contains a 'G' and the last entry (3)contains a 'N' character - if each are present, all data have arrived andyou can display the content of the array, or otherwise process it.
Don'tforget to reset the original string buffer to an empty string, so that it isready to go for the next complete cycle.Dick-Richard Grier, MVPHard & SoftwareAuthor of Visual Basic Programmer's Guide to Serial Communications, FourthEdition,ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March2006.See for details and contact information.