Solved

MSComm control with 8 port serial expander

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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
Course of the Month3 days, 23 hours left to enroll

630 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