有关VB串口通信问题请教大家
我想每次从串口接受50个字符,不断地接受,可是为什么我每次接受字符串的数据顺序不同呢(单片机发送的字符串顺序是相同的) 主要代码如下
MSComm1.Settings = "4800,n,8,1"
MSComm1.InputMode = 0
MSComm1.RThreshold = 50
MSComm1.InputLen = 50 '读取缓冲区的两个字符,
MSComm1.InBufferCount = 0
MSComm1.PortOpen = True
Private Sub MSComm1_OnComm()
'a = b = c = d = 0
'Dim buf As String
Select Case
Case comEvReceive
Buffer = MSComm1.Input
Text5.Text = Buffer
Case comEvSend
End Select
End Sub