Information générale
Titre:
MSComm.OnComm Event
Hi,
I'm envolved with a project that uses a comm port and a MSComm Control (VB6.0) to aquire data. The comm ports' CTS Line & the DSR lines are pulsed at different times. The pulse width is approx. .7 ms, and occurs every .5 seconds.
The MSComm Control has the properties CTSHolding and DSRHolding to allow polling of the ports. Each pulse on the lines generate two events, a change when rising and a change when falling. We use the xxxHolding property to determine the actual line state.
The problem is that the xxxHolding property does not always reflect the status of the line. I believe that the pulse width (.7ms) is such that when the xxxHolding line is read the state has already changed.
Also if anyone could add some light to Windows events as a whole...if you are in a event handler, for example a MSComm.OnComm event, can other events and possibly another MSComm.OnComm event fire if you do not issue a DoEvents statement and is that guaranteed?
All advise and suggestions are greatly appreciated.
Ray
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement