MSComm control with 8 port serial expander

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.
Wanderer227Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
kfrickConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.