Link to home
Start Free TrialLog in
Avatar of Dormouse31
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.
ASKER CERTIFIED SOLUTION
Avatar of mazfar
mazfar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dormouse31
Dormouse31

ASKER

I thought of the timer idea, but there isn't a timer in the VBA toolbox. How do you use a timer in a VBA App?
Check this link to use timer API to replicate timer functionality in VBA.

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