首页 | 本学科首页   官方微博 | 高级检索  
     

虚拟现实中利用MSComm控件设计串行通信
引用本文:蔡春生,张文龙,赵荣建,肖维.虚拟现实中利用MSComm控件设计串行通信[J].计算机仿真,2005,22(2):127-129.
作者姓名:蔡春生  张文龙  赵荣建  肖维
作者单位:南京炮兵学院,江苏,南京,211132;解放军理工大学,江苏,南京,210007
摘    要:对于进行数据采集和处理的微机系统,常要把数据传输到主计算机中作进一步的分析和利用。实现与主机的数据通信,现在普遍采用串行口与主机进行通信。编写串行通信程序在不同的操作平台下,方法不同,效率也不同。该文主要研究了在Windows平台下利用微软控件-MSComm控件的编程方法。因为串行通信编程是一件复杂和伤脑筋的工作,所以先介绍MSComm控件的工作模式、属性以及事件,再以炮兵分队虚拟现实训练系统中数据手套与主机的串行通信为例,阐述了串行通信的编写方法,最后总结了串行通信的编写经验。通过实践证明该方法能够提高软件的开发效率,便于程序的管理和维护。

关 键 词:虚拟现实  微软控件  串行通信  操作模式
文章编号:1006-9348(2005)02-0127-03
修稿时间:2003年12月9日

Making Use of MSComm Control to Realize the Serial Communication in Virtual Reality
CAI Chun-sheng,ZHANG Wen-long,ZHAO Rong-jian,XIAO Wei.Making Use of MSComm Control to Realize the Serial Communication in Virtual Reality[J].Computer Simulation,2005,22(2):127-129.
Authors:CAI Chun-sheng  ZHANG Wen-long  ZHAO Rong-jian  XIAO Wei
Affiliation:CAI Chun-sheng~1,ZHANG Wen-long~2,ZHAO Rong-jian~1,XIAO Wei~1
Abstract:It's always necessary to send the data to the host computer to analyze and use farther for microcomputer systems with plenty of data to be collected and processed .The welcome method is serial communication to realize the data communication with the host computer. In different operation systems there are different methods and efficiency. In this paper, we mainly research the programming method with the use of Microsoft controls in windows operation system. Because serial communication programming is difficult and complex, at the beginning we introduce the work mode, properties and events of the MSComm control. Then we provide the programming method using the example of the Data Glove communicating with mainframe in Artillery Company Virtual Reality Training System. At last, we make a conclusion of programming serial communication . From our practice, our method is efficient and convenient for the management and maintenance of program.
Keywords:Virtual reality  Microsoft controls  Serial communication  Operation mode
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号