Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using MSCOMM with USB to serial device
Message
From
31/05/2008 12:15:01
 
 
To
30/05/2008 15:12:27
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01320080
Message ID:
01320769
Views:
22
>Thanks for your suggestion. I removed the debug commands but the lqin variable (which had been set to ot.Input) was empty at the end of the procedure.
>
>I find it puzzling that everything works as expected and I can read and parse the data from the device in interactive mode but not inside a program even though the commands are identical.
>
>Thanks again for your time.

Sorry, if it didn't help. It's hard to tell what's going on. Perhaps play some of the properties.
If you eg set RThreshold and SThreshold you will get OnComm events, their default is 0, so no event will fire.

And with Inputlen you can control the block size of inputs, 0 means the whole input is read. Set EofEnable to enable OnComm to fire, when an EOF -end of line is received.

It also depends on the kind of input you expect. Inputmode can be switched to ansi text or binary byte array.

Bye, Olaf.
Previous
Reply
Map
View

Click here to load this message in the networking platform