A1VBCode Forums

digital weighing scale monitoring problem need help


http://a1vbcode.com/vbforums/Topic29790.aspx

By maxhunter - 11/14/2010

I have a digital weighing scale I need to connect to the PC using RS232 communication port. Every time I weigh an object, automatically the result/weight will display in the the texbox control in Visual Basic Application

I use to receive data via a timer for continuous looping sequence output to a textbox. Things do goes bad, as it flicking all the way. I using a indicator from AD series which read data from load cell of a truck weight bridge. It there's any way to stop this flicking without effecting the continuous loop?

can any one help me ???

vb6 or vb.net any platform no problem please help me i want just solution
By Mark - 11/15/2010

See if this helps

Private Sub Timer1_Timer()
    If MSComm1.PortOpen = False Then
        MSComm1.Settings = "9600,N,8,1"
        MSComm1.InputLen = 0
        MSComm1.PortOpen = True
    End If
    
    MSComm1.InputMode = comInputModeText
    strabc = MSComm1.Input
    'Only update the textbox if the valus has changed
    If strabc <> text1.Text Then
        text1.Text = strabc
    End If
End Sub