Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comm Port Settings
Message
From
09/06/1998 02:18:35
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00105689
Message ID:
00106193
Views:
33
Thanks Glenn for your advise. I used the Timer control to read the Comm Port at an interval. 1) How many seconds interval would be the best to read the Comm Port? 2) Is data duplication on reading the Comm Port casued by incomplete reading from the Comm Port? Thanks! >>Hi all, >>I am using the MSCOMM32 to interface with a machine in VFP5. >>I can receive data form reading the comm port. I just wonder will >>it "Clear" the input buffer once the read is issued(ie >>ThisForm.CommPort.Input). >>Because I am receiving some duplicate data. >>I just wonder what is the purpose of some of the comm properties, like >>...HandShaking or ...InputLen or ...ParityReplace >>Is it neccessary to pay attention to these settings? Thanks! > >Hi Alvin, >We use MSComm32 quite a bit. The input does clear the buffer. Handshaking, using CTS/RTS is more reliable than without, as long as the other device supports it also. InputLen, set to 0, reads all data in the buffer. Set to 1, reads ONE character only, etc. ParityReplace can generally be ignored except for special parity circumstances. If you have not found it yet, there is some help for mscomm in your \VFP\CTRLHELP\CTRLREF.HLP (type MSCOMM in search window) >Although the examples are in VB, the general help is good > >Best Regards,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform