Hi All, I am new to VB.... I am using serial port to interface the controller with PC... My VB code as follows:
Private Sub Form_Load()
MSComm1.Settings = "9600,N,8,1"
MSComm1.CommPort = 1
MSComm1.InputLen = 1
MSComm1.PortOpen = True
MSComm1.RThreshold = 1
End Sub
Private Sub Form_Unload(Cancel As Integer)
MSComm1.PortOpen = False
End Sub
Private Sub MSComm1_OnComm()
Text1.Text = Text1.text & MSComm1.input
End Sub
I transmitted a number (03) from controller, but i am receiving garbage value like (*?????|||......) and finally my serial port now doesn't work.... Kindly help me to solve the Problem...
Best Regards
Pradeep