Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default RS-232 Serial Communication

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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
communication daniel Excel Programming 2 April 16th 04 12:01 PM
communication Daniel[_8_] Excel Programming 0 April 2nd 04 09:46 AM
communication Rob van Gelder[_4_] Excel Programming 1 April 1st 04 01:06 PM
Add-In communication with outside Application Matthew Wieder Excel Programming 3 February 9th 04 06:46 AM
Mac Serial Port Communication Jeff Robson Excel Programming 0 November 30th 03 03:51 PM


All times are GMT +1. The time now is 12:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"