473,406 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Visual Basic Dot Net Code to Communicate with a weight scale

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
3 7039
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Matt | last post by:
I know we can write ASP with VB Script. Some people told me the big ASP projects usually use Visual Basic for the business logic. Is that the case? What I mean is an ASP project is the combination...
8
by: Aaron Jackson | last post by:
I am in the process of writing my first large scale program and I find myself in the position of writing several copies of functions that do the same thing, with mostly the same code, but only...
10
by: Todd | last post by:
I need clarification on how an application should be structured. In my mind, you should have a data base sever, a middle server to host a bulk of the code, and a front end web server. However, I...
2
by: Rob Meade | last post by:
Hi all, My apologies for this post being perhaps slightly off topic, at work I am only able to access MS newsgroups and I was under to find one perhaps more appropriate. My problem..... ...
16
by: Jesse Liberty | last post by:
I am writing a new book on Visual Basic 2005, targeted at VB6 programmers, and to some degree VB.NET 1.x programmers. I'd like to sign up a (limited) number of volunteers to read the book and...
0
by: TonyJ | last post by:
Hello! We have a pc running a form application. If I push some buttons in this application I want to send some commands to a scale which is connected to a specific IP address. When I sent a...
1
by: cnixuser | last post by:
Hello, I am having a problem that I believe is related to the way a stream reader object looks for a text file by default. What I am doing is using a StreamReader object to read the text of a text...
1
by: dipalipatel | last post by:
Hi, I have to develop an application in .NET to communicate with My weight HD series Scales. As soon as i put soming on my scale it will read the Weight and Send to my application and store in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.