A1VBCode Forums

Serial Port


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

By mvPradeepemb - 11/5/2008

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

By Elizabeeth - 12/20/2017

Soluble fiber optic switch is useful for you personally in particularwhenever you package with lots of data. Perform properly switch, it is possibleto switch your own information promptly in addition to efficiently. Typically,that switch is offered on a pair of designs, multimode product in addition toindividual model. Prior to you buying, the idea will certainly be a great ideato contemplate several components to ensure apply for the most effective oneparticular for ones need.



If you want more information click here "Sopto"

If you want more information about

Please visit following link for known more information...
http://www.sopto.com/