473,386 Members | 1,791 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,386 software developers and data experts.

connecting to a scale

2
I'm trying to write a program where its going to connect to a truckscale, and read that data to a text box I actually think that I'm going to have to connect to the rs232 port on the pc that the scale is connected to so does anyone know how i would connect and retrieve data from that port, if you do u can email it to me at [Removed]
Mar 11 '08 #1
5 1069
jeffstl
432 Expert 256MB
I'm trying to write a program where its going to connect to a truckscale, and read that data to a text box I actually think that I'm going to have to connect to the rs232 port on the pc that the scale is connected to so does anyone know how i would connect and retrieve data from that port, if you do u can email it to me at [Removed]
I would take your email out of there if I were you.

I dont think you need a direct way to connect to the port. If there is a port there I assume its putting the data somewhere.

Hopefully look for that data file and see how its formatted, etc and we can go from there probably. (Assuming the scale device is outputting data to the pc in some file somewhere)
Mar 11 '08 #2
Killer42
8,435 Expert 8TB
This sounds like a job for the old MsComm control.

jeffstl, you're right about the e-mail address. I've now removed it. The site guidelines specifically prohibit the posting of personal contact details such as this, in order to protect all of you from scammers and spammers who may scan the forum.

However, in future please don't quote the e-mail address in your reply. :) That meant I had to edit two messages instead of one.

In fact, since the person who posted the message can only edit it for one hour afterward, it might be best if you just hit the "Report" button in future to bring the message to our attention. (That button means "report this message to the Moderators" - it doesn't print a report.)
Mar 14 '08 #3
jeffstl
432 Expert 256MB
This sounds like a job for the old MsComm control.

jeffstl, you're right about the e-mail address. I've now removed it. The site guidelines specifically prohibit the posting of personal contact details such as this, in order to protect all of you from scammers and spammers who may scan the forum.

However, in future please don't quote the e-mail address in your reply. :) That meant I had to edit two messages instead of one.

In fact, since the person who posted the message can only edit it for one hour afterward, it might be best if you just hit the "Report" button in future to bring the message to our attention. (That button means "report this message to the Moderators" - it doesn't print a report.)
OOOOPS

Sorry. I didn't realize
Thanks for the tip on the report button.
Mar 14 '08 #4
Killer42
8,435 Expert 8TB
OOOOPS

Sorry. I didn't realize
Thanks for the tip on the report button.
Many don't. That's why I mentioned it here rather than in a private message. :)

I described the Report button because I used to think it was for printing out some sort of report.
Mar 17 '08 #5
ekow17
2
I would take your email out of there if I were you.

I dont think you need a direct way to connect to the port. If there is a port there I assume its putting the data somewhere.

Hopefully look for that data file and see how its formatted, etc and we can go from there probably. (Assuming the scale device is outputting data to the pc in some file somewhere)
Expand|Select|Wrap|Line Numbers
  1. Dim comm1 As New IO.Ports.SerialPort
  2.         comm1 = SerialPort1
  3.         'Dim s As Boolean
  4.         's = SerialPort1.IsOpen
  5.         With comm1
  6.             .PortName = 1
  7.             .BaudRate = 2400
  8.             .Parity = IO.Ports.Parity.Odd
  9.             .DataBits = 7
  10.             .StopBits = IO.Ports.StopBits.One
  11.         End With
  12.         comm1.Open()
  13.  
this is what I have so far but I'm stuck I was looking around and It looks like now I have to send a request to the scale for weight but I'm not too sure about that part, do you have any idea of how to code that?
Mar 25 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: John Fouhy | last post by:
So I've got a horizontal scale widget in my GUI. When I click the mouse in the area to the right of the GUI, the scale advances by 1. 13 +-------------------------+ |<| X |>|...
4
by: codecraig | last post by:
Hi, I am using Tkinter and I have a Label and a Scale. I want to update my label everytime the Scale value changes. What is the best way of doing this? Do i have to bind for every event type? ...
5
by: Guess | last post by:
The situation is as follows: 1. I would like to serve a web page that takes considerable time to process. 2. While the page is processing, the client displays an appropriate wait message. What...
3
by: John Bonds | last post by:
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...
3
by: Jay Patel | last post by:
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...
3
by: Jerry Spence1 | last post by:
A very useful feature was added in 2.0 of .NET framework which was the scaling of a form and all the controls within it. This is really useful but I am finding very little information of how to use...
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...
19
by: Matteo Migliore | last post by:
Hi! I've to scale a vector of numbers of size N to a vector of size M. The trasformation is like a zoom on images but I need on a vector. The second size can be M >= N or M <= N, M 0. The...
5
by: Bruce | last post by:
Hello I am building a C# app that creates anywhere from 10 to 100 connections to a specified server and sends 1000s of TCP requests and processes the responses. (it is a stress tool) I planned...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.