By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,916 Members | 1,728 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,916 IT Pros & Developers. It's quick & easy.

Visual Basic Dot Net Code to Communicate with a weight scale

P: n/a
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)
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Jay,
When the device connects to the PC via the USB, is it emulating a serial
port or is its own device?

If its emulating a serial port, you can simply continue using the COMM port
as is.

If it is its own device, then you will need to communicate with that device.
Remember that USB is not the device, USB is just the Bus that gets you to
the device.

Note: I have a USB to Serial cable that my .NET program simply sees as a
normal COMM port. There is a special device driver that virtualizes the USB
to Serial cable to make this work.

Hope this helps
Jay

"Jay Patel" <pa***@cs.utk.edu> wrote in message
news:5d**************************@posting.google.c om...
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)

Nov 20 '05 #2

P: n/a
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message news:<u#**************@TK2MSFTNGP12.phx.gbl>...
Jay,
When the device connects to the PC via the USB, is it emulating a serial
port or is its own device?

If its emulating a serial port, you can simply continue using the COMM port
as is.

If it is its own device, then you will need to communicate with that device.
Remember that USB is not the device, USB is just the Bus that gets you to
the device.

Note: I have a USB to Serial cable that my .NET program simply sees as a
normal COMM port. There is a special device driver that virtualizes the USB
to Serial cable to make this work.

Hope this helps
Jay

"Jay Patel" <pa***@cs.utk.edu> wrote in message
news:5d**************************@posting.google.c om...
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)

I will be writing some code to communicate with a Mettler Toledo PS 60
scale next week I have asked the tech department to send me
communication specifications. All I want to do is capture weight.

Let me know if you still need help. Or if you can assist me.

P.S. I will be coding in Delphi. :)
Nov 20 '05 #3

P: n/a
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)


Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.