I've got an NCI 7820 scale. I'd like to be able to populate the weight field
on my form with the weight from the scale.
The instructions in the scale's manual state:
Transmits weight and scale status whenever
ASCII “W” <CR> is sent by a remote device.
I've tried on gotFocus:
SendKeys Chr(87) & Chr(13)
but it doesn't seem to do the trick.
Any suggestions?
Stephen Haley - 04 Mar 2005 18:17 GMT
Assuming that the scales are connected via serial lead you will need to use
something like the MSCOMM activex control which ships with VB.
Need to open the port, Output the "W" <CR> then read the input buffer. Do a
google on mscomm for more info & examples. Full details of the control can
be found here:
http://www.yes-tele.com/mscomm.html
Some VB examples here
http://www.dcs.napier.ac.uk/~bill/pdf/Io_ch26.PDF
rgds
stephen
> I've got an NCI 7820 scale. I'd like to be able to populate the weight
> field
[quoted text clipped - 9 lines]
>
> Any suggestions?