Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to detect operation time-out in mscomm control

Status
Not open for further replies.

JeffSabat

Programmer
Sep 15, 2003
32
PH
where will i place my error checking when there is no terminal connected to comm port?(ex. my program didn't receive any response since there is no power in the terminal) pls help... tnx
 
Have a look at the OnComm event in the help file. You can put a Select Case statement in this event to handle the error notifications provided by the MSComm control.

You can also use this event to monitor send/receive activity.

Paul Bent
Northwind IT Systems
 
tnx for the response Paul.:) i've tried checking the help file but i've found no information that could help me. Nway, i've read somewhere in this forum sugessting to send a command to the terminal that returns a response. If in a given time(by setting the timer) a response is not receive, it means it could be that there is no terminal connected. What i did in my program was that I prompt an error msg saying "operation timed out" in the timer control event, meaning a response was not receive from the terminal. So far, it works as i want it to happen though i'm still testing it. I hope what i've written here can help others.:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top