Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSComm.OnComm Event
Message
De
14/12/1998 14:54:42
Ray Watson
A Certified Electronics Co
Knoxville, Tennessie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
MSComm.OnComm Event
Divers
Thread ID:
00167327
Message ID:
00167327
Vues:
174
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
Fil
Voir

Click here to load this message in the networking platform