If your scale connects to your PC using a RS232 connection or a USB
connection that emulates a RS232 connection and you do not want to
write serial communications code, you could also use a product called
WinWedge from TAL Technologies to get the data from the sale directly
into your application program.
WinWedge is designed to run in the background and capture data from
RS232 instruments (including scales and balances) and it then feeds
the data that it receives to other programs by stuffing the data
through the keyboard buffer so that the data appears as if it is being
typed in on the keyboard.
You would develop your application to expect someone to type in the
data from the scale and then you would simply use WinWedge to feed the
data to your application as keyboard input. WinWedge even has
"hotkeys" that you can define that would prompt the scale for a weight
reading when you press the hotkey on your keyboard.
For more information about WinWedge please visit
www.taltech.com
On 18 Jun 2004 10:25:38 -0700,
pa***@cs.utk.edu (Jay Patel) wrote:
Hello,
I need to write visual basic.net code to interface with a Mettler
Toledo Shipping Scale that interfaces with a PC via USB or a serial
port. I have seen example code on how to communicate via a serial
connection (RS-232), but am not sure as the process if it is connected
via USB. Is the USB port seen then as a COMM port, or is there a
different type of connection a USB port creates that I would have to
open? The scale will take as an input one character, and then send
back a response. If anyone out there can help, I would greatly
appreciate it.
-Jay
(pa***@cs.utk.edu)