Click here to Skip to main content
15,893,486 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a digital weighing scale I need to connect to the PC using Serial Port. Every time I weigh an object, automatically the result/weight will display in the the textbox1 control in Visual Basic Application that I made. I need your help for the complete source code that will communicate to the weighing device and what control should I use to communicate and how?
I am using code

Private Sub Main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
        <br />
        SerialPort1.Open()<br />
        TextBox1.Text = SerialPort1.ReadExisting()<br />
        'SerialPort1.Close()<br />
        <br />
    End Sub
Posted
Comments
tiggerc 2-Jul-10 4:54am    
you need to know how the scales communicate, baud rate etc, before you can begin
coolpvk 14-Jul-10 10:19am    
yes, Bits per second=9600 Data bits=7 Parity=None Stop bits=1 Flow control=None

1 solution

You want complete source code, but you don't even tell us what scales you have ? Read the manual for the scales, then write the code to work according to what the manual tells you.
 
Share this answer
 
Comments
coolpvk 14-Jul-10 10:20am    
yes,
Bits per second=9600
Data bits=7
Parity=None
Stop bits=1
Flow control=None

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900