Information générale
Catégorie:
Codage, syntaxe et commandes
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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement