Perform calculations with weight S’abonner

0
Avatar
ANTONIO AVILES

I need to subtract a fixed tare from a weight that I capture from a scale using the COM port.

I have tried with the following expression:
Value = Format.NamedSubStrings ("weight"). Value - 0.110

This expression gives an error and I think it is because the weight is in text format and I need it in number.
Thanks for your help.

1 commentaires

0
Avatar
Pete Thane
Actions pour les commentaires Permalien

Have you set the VB to be Event Controlled > Post Prompt so that it only tries to carry out the process once there is data to work with? 

Vous devez vous connecter pour laisser un commentaire.