Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mscomm - Events
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00175667
Message ID:
00176228
Views:
32
>Thanks Dave for your input and your settings would be nice to compare. The equipment I am communicating with will time out after a few seconds if no response is received. This is why I have to call the OnComm routine. The first object stays active constantly, and others suffer. Any settings you may have will be appreciated.
>
>
>aprivott@techwareinc.com
>
>Thanks,
>Allan Privott

FWIW Allan, here's the setup of my comm object. Each one monitors a different comm port.

DTREnable .T.
Enabled .F.
Handshaking 2 - request to send
Init Event...
THIS.CommPort= 2
THIS.interval= 55
Inputmode 0 - Text
OnComm Event...
WITH THISFORM
.recbuff= .recbuff + THIS.input
* look for input string terminating character (10 in this case)...
IF ! .processing AND AT(CHR(10), .recbuff)>0
.processing= .T. && signal this event is busy
* double buffer...
.buff= .recbuff
.recbuff= ""
.procBuff && process the buffer in whatever way...
.processing= .F.
ENDIF
ENDWITH
RTSEnable .T.
RThreshold 1
SThreshold 0
Settings 9600,n,8,1 && whatever you need

Hope you might find something useful here.
Regards
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform