Dormouse31
asked on
MSComm Timeout
Hi.
I have an VBA application that talks to a serial device, which acts as a converter and talks to another device. I would like a way for the application to timeout if it doesn't recieve a response in a certain period of time.
The trouble with the timeouts built in to mscomm (that I know of) is that they will only detect if the serial device is there when the app is transmitting, but I need to know if the third device is not responding.
Thanks and sorry if I wasn't clear enough.
I have an VBA application that talks to a serial device, which acts as a converter and talks to another device. I would like a way for the application to timeout if it doesn't recieve a response in a certain period of time.
The trouble with the timeouts built in to mscomm (that I know of) is that they will only detect if the serial device is there when the app is transmitting, but I need to know if the third device is not responding.
Thanks and sorry if I wasn't clear enough.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Check this link to use timer API to replicate timer functionality in VBA.
http://www.developerfusion.com/show/1090/
Have a nice day.
http://www.developerfusion.com/show/1090/
Have a nice day.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered mazfar
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
leonstryker
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
Answered mazfar
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
leonstryker
EE Cleanup Volunteer
ASKER