| | | Forum Newbie
       
Group: Forum Members Last Login: 11/15/2010 8:49:07 AM Posts: 2, Visits: 3 |
| 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 |
| | | | Forum God

Group: Moderators Last Login: Yesterday @ 7:09:29 PM Posts: 1,082, Visits: 9,608 |
| | What does your timer code look like and what is the timer interval set at? |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 11/15/2010 8:49:07 AM Posts: 2, Visits: 3 |
| 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
text1.text= strabc
End Sub
this is my code and timer interval is 100
when i change the timer interval to 1000 it will show the full text but take delay not real time |
| | | | Forum God

Group: Moderators Last Login: Yesterday @ 7:09:29 PM Posts: 1,082, Visits: 9,608 |
| | 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
|
| |
|
|