General information
Category:
Coding, syntax & commands
I have just completed 2 projects like that. I have used the MSComm32.OCX control for that. Unfortunatly, the OnComm() event of this control is not reliable under VFP. I made the first project work under VFP 6.0 using the BindEvents() of VFPCOM.DLL But this is not an option under VFP 5.0
You have 2 choices:
- Build a COM with VB. I have done that with the second project and it worked like a charm
- Don't rely on the OnComm() event but look frequently for received data in the InputBuffer using a timer
You will need to look at the scale documentation to know what string to send to initialize it and what to expect in input.
HTH
>Any suggestions on how to retrieve a weight from a scale connected to a COM port. We are using VFP5. The scale is a Weightronix PC820.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only