Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSComm.OnComm Event
Message
From
14/12/1998 14:54:42
Ray Watson
A Certified Electronics Co
Knoxville, Tennessee, United States
 
 
To
All
General information
Forum:
Visual Basic
Category:
Other
Title:
MSComm.OnComm Event
Miscellaneous
Thread ID:
00167327
Message ID:
00167327
Views:
177
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
Next
Reply
Map
View

Click here to load this message in the networking platform