|
Dim Instring As String
MSComm1.PortOpen = True
On Error Resume Next
'轮询数据
' MsgBox MSComm1.RTSEnable = False
10 Do
DoEvents
Loop Until MSComm1.InBufferCount> 2
Instring = MSComm1.Input
Open Trim(Text1.Text) For Append As #1
Print #1, Instring
'Text4.Text = Instring
Close
Text4 = Text4 + Instring
GoTo 10
可以检测到1 2 4 7 8 这五个数字 但是检测到3 5 6 9 是? |
阿莫论坛20周年了!感谢大家的支持与爱护!!
一只鸟敢站在脆弱的枝条上歇脚,它依仗的不是枝条不会断,而是自己有翅膀,会飞。
|