Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving Weight From Scale
Message
De
17/09/1999 13:14:26
 
 
À
17/09/1999 12:56:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00266005
Message ID:
00266016
Vues:
28
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
Fil
Voir

Click here to load this message in the networking platform