D
dcstech
I am have trouble with my serial communication to a truck scale printer. I can capture data from the printer but not all of it. To me it seems like a timing issue. Maybe I need to break the data down instead of taking it all in at one time? Anyway here is a sample of the code I am using. Thanks for any help.
dcstech
MSComm1.InBufferCount = 0
MSComm1.CommPort = 1
MSComm1.Settings = "9600,n,8,1"
MSComm1.InputLen = 1
MSComm1.PortOpen = True
Do While MSComm1.Input <> "2"
Loop
MSComm1.InputLen = 10
Application.Sheets("sheet1").Cells(1, 1) = MSComm1.Input
MSComm1.PortOpen = False
dcstech
MSComm1.InBufferCount = 0
MSComm1.CommPort = 1
MSComm1.Settings = "9600,n,8,1"
MSComm1.InputLen = 1
MSComm1.PortOpen = True
Do While MSComm1.Input <> "2"
Loop
MSComm1.InputLen = 10
Application.Sheets("sheet1").Cells(1, 1) = MSComm1.Input
MSComm1.PortOpen = False