Results 1 to 3 of 3

Thread: getting data from serila port using MSCOMM conmtrol

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 1999
    Posts
    32

    Post

    has anybody used the MScomm control to get the serial data available on the port.

    When I try to send some dataon MSCOMM.output command, it does not allow me( just to check that it works).

    any ideas ?

    Foll. is the code :

    Private Sub Form_Load()
    ' Open the serial port
    MSComm1.CommPort = 2
    MSComm1.Settings = "9600,N,8,1"
    MSComm1.PortOpen = True
    Dim ss As Variant
    ss = "a"
    MSComm1.Output = ss
    MSComm1.InputLen = 0
    MsgBox MSComm1.Input
    End Sub

    Thanks

  2. #2
    Lively Member
    Join Date
    Oct 1999
    Posts
    66

    Post

    You should add an enter to ss: ss = "a" & vbcrlf
    Use MSComm.input in the OnComm event.

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 1999
    Posts
    32

    Post

    thanks, man.

    Will try and let u know.

    Shastri


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width