Perform calculations with weight Follow

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 comments

0
Avatar
Peter Thane
Comment actions Permalink

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? 

Please sign in to leave a comment.