串行通信可以直接传递字符串吗
单片机一次传4个字符串给上位机,如1.19, 1.18,1.19, 1.17......Dim Buffer As String '存储数据的缓冲区
Dim numbuf( ) As String '数据数组
Buffer = MSComm1.Input '清理接收缓冲区,此时,接收的字节数已经为0
numbuf(0) = Buffer(0)
numbuf(1) = Buffer(1)
numbuf(2) = Buffer(2)
numbuf(3) = Buffer(3)
buffer中的4个数分别赋给数组,这样对吗