Re: Visual Basic Dot Net Code to Communicate with a weight scale

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jay B. Harlow [MVP - Outlook] (Jay_Harlow_MVP_at_msn.com)
Date: 06/18/04


Date: Fri, 18 Jun 2004 13:41:02 -0500

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" <patel@cs.utk.edu> wrote in message
news:5d03e26c.0406180925.3e69470a@posting.google.com...
> 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
> (patel@cs.utk.edu)



Relevant Pages