Solved

MSComm control with 8 port serial expander

Posted on 2002-04-03
1
200 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

752 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