Solved

MSComm control with 8 port serial expander

Posted on 2002-04-03
1
199 Views
Last Modified: 2010-05-02
I need 6 serial ports. I am using a 8 port expander with 6 MSComm controls on 6 different forms.  Using OnComm with CommEvent = comEvReceive starting a doloop until InStr = vbCrLf.  One port at a time works OK, but all six tend to get data from one port mixed into the data from another port.
0
Comment
Question by:Wanderer227
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
kfrick earned 200 total points
ID: 6919259
Don't use any DoEvents in your incoming communications loops.

How are you detecting incoming data?

If you are using the OnComm event, you can set RThreshold=0 to ALL the COM ports while you are reading from any one.

-kf
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question