Click to See Complete Forum and Search --> : Comm port status
Elroacho
Jan 17th, 2000, 04:05 PM
Does anybody know if and how I can get the status of the input line on comm port 1, using either an API call or some other method.
Thanks
Elroacho
Kiron
Jan 17th, 2000, 06:25 PM
Go to this URL, it's here in VB-World and it's explane how to display or check port settings:
http://www.vb-world.net/tips/tip124.html
http://www.vbsquare.com/tips/tip287.html
I think they are the same.
Glad to help,
Kiron
Elroacho
Jan 17th, 2000, 07:15 PM
Thanks for the help, however it’s not quite what I required. My actual problem is I have written two VB applications (only prototypes at the moment) which run on separate PCs connected via Comm port 1. One of the applications performs a break event on its output line for a set duration. The other application can detect this using the OnComm error event. What I’m trying to do, is time the duration of the break on the receiving PC. The problem is there’s no event that detects when the break on the line is removed. I have an idea that I may be able to use an API call to detect the status of the receive line but I fear this may take to long as the time scale is in milliseconds.
Sorry for the original lack of info
Kevin Preston.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.