|
-
Jan 20th, 2007, 12:32 AM
#1
Thread Starter
New Member
Receive data from my reader using MScomm
The program below show the receive function. When i swap the tag to the reader, the reader will receive the data and show the tad id to the monitor. But when i RUN this program, the data didn't come out
Please have me to check the code below, and give me a idea to solve it. THK
Option Explicit
Private Sub MSComm1_OnComm()
Dim tRECEIVED As String
If MSComm1.CommEvent = comEvReceive Then
tRECEIVED = MSComm1.Input
Label2.Caption = tRECEIVED
Label3.Caption = "Detected"
Else
Label3.Caption = "Not detect"
End If
End Sub
Private Sub Form_Load()
Label1.Caption = "Attach an RFID Tag Reader"
Label2.Caption = ""
Label3.Caption = "Not detect"
MSComm1.PortOpen = True
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|