检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]清华大学自动化系,100084
出 处:《工业控制计算机》2002年第3期48-51,共4页Industrial Control Computer
摘 要:本文讨论了VB串行通信中MSComm控件InputMode属性的使用方法。在Binary模式下传输数据,可以解决ASCII码中传送超过128的字符时所存在的问题,消除了在Text模式下,String变量只能处理ASCII码0~127的文本字符的缺陷,真正实现Windows环境下计算机与单片机的通信。同时给出了串行通信中字节的发送与接收的应用实例,具有一定的实用价值。The usag e method of the InputMode properties for MSComm control is discussed in Visual Basic serial communication.Under the Binary Mode the data transmitted can resolve the existent problems while transmit over 128's character in the ASCII,and eliminate the limitation that String variable can only deal with0~127's text character of the ASCII under the Text Mode.It implements in deed the communication between comput-er and sing lechip in the Windows.At the same time,the application example that the byte is sent and re-ceived is g iven out in the serial communication.The practice proves that it has applied value in a certain extent.
关 键 词:MSCOMM控件 InpuMode属性 字节 UNICODE码 串行通信 程序设计
分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.200