?
Solved

MSComm control with 8 port serial expander

Posted on 2002-04-03
1
Medium Priority
?
202 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 800 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses

719 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