468,469 Members | 2,530 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,469 developers. It's quick & easy.

Digital Scale integration with .NET (like a postal scale)

I'm looking for some sort of digital scale to integrate into .NET.

Does anybody know of anything (like a postal scale) that attaches to USB,
serial or whatever that comes with a DLL or an API that I could integrate
into .NET?

Thanks,

John
Nov 20 '05 #1
3 7032
Interesting question -- could be fun to automate something like that. A
search on Google for "digital scale usb" turned up some useful products,
like this one:
http://www.ohaus.bz/ohaus_scout_pro_balance.htm

However, there isn't any USB support built into .Net. Hopefully the scale
would ship with the necessary device drivers (check with the manufacturer),
bud you'd have to wrote the .Net USB code to connect with the drivers.
These threads might get you started:
http://groups.google.com/groups?hl=e...ublic.dotnet.*

"John Bonds" <jo*******@hotmail.com> wrote in message
news:ut*************@tk2msftngp13.phx.gbl...
I'm looking for some sort of digital scale to integrate into .NET.

Does anybody know of anything (like a postal scale) that attaches to USB,
serial or whatever that comes with a DLL or an API that I could integrate
into .NET?

Thanks,

John

Nov 20 '05 #2
yah, I actually found that one and did some research on it. I will probably
end up getting it and writing a .NET interface for it (if I can).

Also, if anyone has info on how to send commands to a device through USB,
let me know.

Thanks,

John

"Robert Jacobson" <rj**********************@nospam.com> wrote in message
news:u3**************@tk2msftngp13.phx.gbl...
Interesting question -- could be fun to automate something like that. A
search on Google for "digital scale usb" turned up some useful products,
like this one:
http://www.ohaus.bz/ohaus_scout_pro_balance.htm

However, there isn't any USB support built into .Net. Hopefully the scale
would ship with the necessary device drivers (check with the manufacturer), bud you'd have to wrote the .Net USB code to connect with the drivers.
These threads might get you started:
http://groups.google.com/groups?hl=e...ublic.dotnet.*
"John Bonds" <jo*******@hotmail.com> wrote in message
news:ut*************@tk2msftngp13.phx.gbl...
I'm looking for some sort of digital scale to integrate into .NET.

Does anybody know of anything (like a postal scale) that attaches to USB, serial or whatever that comes with a DLL or an API that I could integrate into .NET?

Thanks,

John


Nov 20 '05 #3
Hi,

Interfacing serial devices is straight forward. You can download
NETComm.ocx from my homepage, or use any one of several .NET classes that
wrap the Windows serial APIs, using P/Invoke.

I have several scale examples in my book. See below. Scales have no
standard communications protocol, so you have to write code that uses the
data furnished by the scale manufacturer. Usually, this amounts to only a
few lines of code that parse receive data.

USB devices use whatever API is provided by the manufacturer. There isn't
any USB support in .NET (USB is a bus, like PCI or ISA -- the API is defined
by the device, not the bus).

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

36 posts views Thread by Andrea Griffini | last post: by
2 posts views Thread by Manmohan S. Sihra | last post: by
reply views Thread by John Bonds | last post: by
2 posts views Thread by Axel Foley | last post: by
2 posts views Thread by Arturo Guzman | last post: by
22 posts views Thread by Jesse Burns | last post: by
1 post views Thread by kmladenovski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.