Accessing a weight reading from an electronic scale that's connected to a 9 pin serial port

Posted on 2004-11-29
Last Modified: 2013-12-25
I'm writing (or should I say "rewriting") a simple program that uses the weight on a scale to help count parts in our warehouse. I've got the program working currently, but you have to manually enter the weight into the text boxes in order for it to make the final calculation at the end. You have to enter manually 3 different weights: 1.> Empty Box  2.> Box with 25 pieces  3.> Full box.

I'd like to be able to add a button next to each text box (where you normally entered it manually) that would "capture" the reading on the scale and import that value into the required text box. This would eliminate human errors from typing and save someone from having to glance the scale 3 times per session.

I've browsed this site for solutions and most that I saw had to do with serial modems, ect..

Anyone ever accomplished this small feat and could lend me some knowledge?


Jason Krueger
Question by:jakr99
    1 Comment
    LVL 76

    Accepted Solution

    You should use the MSComm control. The only compatible device that most users have (including myself) to develop and test with is a modem.

    The difference will be in the messages that are passed between your device and your PC. You will need have a knowledge of the device's message protocol. Hopefully you have some technical documentation to work with.

    I suggest that you start with one of the modem solutions and adapt it. This is one that I understand:

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Teaching Visual basic for students 9 118
    VB6 convert MSHFlexgrid1 cells 7 41
    DO Loop not working 4 52
    VBA filters 2 25
    If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now