W
wjwwj
Unregistered / Unconfirmed
GUEST, unregistred user!
我用下面的代码打开串口
If MSCom_Assess.PortOpen then
MSCom_Assess.PortOpen = False
MSCom_Assess.InBufferSize = InBSize
MSCom_Assess.OutBufferSize = OutBSize
MSCom_Assess.InputMode = comInputModeBinary '设置数据接收模式为二进制形式
MSCom_Assess.CommPort = IP_SerialPort
MSCom_Assess.OutBufferCount = 0
MSCom_Assess.InBufferCount = 0 '清除接收缓冲区
MSCom_Assess.PortOpen = True
有一些机子是可以初始化串口的,可有差不多100台机子却打开失败,请问那位知道是什么原因?
If MSCom_Assess.PortOpen then
MSCom_Assess.PortOpen = False
MSCom_Assess.InBufferSize = InBSize
MSCom_Assess.OutBufferSize = OutBSize
MSCom_Assess.InputMode = comInputModeBinary '设置数据接收模式为二进制形式
MSCom_Assess.CommPort = IP_SerialPort
MSCom_Assess.OutBufferCount = 0
MSCom_Assess.InBufferCount = 0 '清除接收缓冲区
MSCom_Assess.PortOpen = True
有一些机子是可以初始化串口的,可有差不多100台机子却打开失败,请问那位知道是什么原因?