Click to See Complete Forum and Search --> : Can I use several MsComm controls simultaneous?
toby
July 16th, 1999, 04:14 AM
I have 2 MsComm controls, I’m using the first to read serial data from an instrument and when I try to open a second MsComm the first MsComm hangs but the second continues?!
Any Thoughts...
Best Regard Toby
Dr_Michael
July 16th, 1999, 05:48 AM
Every MSComm control that you use, corresponds to one serial port. If you plan to have access to more than one serial ports to your application, you must use more than one MSComm controls.
Finally, you can change the address of the port from control panel of Windows.
I don't know if i answered your question, but i want to tell you also that if you plan to make your pc doing two works at the same time and to avoid not responding, you must include the command DoEvents inside the first loop.
Michael Vlastos
Company MODUS SA
Development Department
Athens, Greece
Tel: +3-01-9414900
ksuja
July 16th, 1999, 08:58 AM
Mscomm control is used for serial data communication. if you are using two mscomm control
assign different ports for it.
for example you want to read from a device and write to other simulataneously, use two mscomm control and assign different ports(say com1 to device1 and com2 to device2) ( since devices are connected via serial port to the computer).
If your process is not a simultanous one, you can use the same port.
regards
sujatha
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.