Solved

MSComm control with 8 port serial expander

Posted on 2002-04-03
1
195 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
1 Comment
 
LVL 3

Accepted Solution

by:
kfrick earned 200 total points
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now