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

用VC实现PC机对激光位移传感器的通信控制
引用本文:肖定国,宣华.用VC实现PC机对激光位移传感器的通信控制[J].控制工程,2005(Z1).
作者姓名:肖定国  宣华
作者单位:北京理工大学机械与车辆工程学院 北京100081 (肖定国),北京理工大学机械与车辆工程学院 北京100081(宣华)
摘    要:为实现弹翼廓形测量系统中激光位移传感器测量值的采集,介绍了用VC实现异步串行通信的基本原理。讨论了VC用于串口通信的几种方法,给出Win32API汇集在一起所构成的类Win32Port,并且利用该类实现了主机程序与激光位移传感器的串行通信。应用实例表明,该方法通过利用异步串行通信可方便地实现工控机对激光位移传感器的控制,有较高的可应用性。

关 键 词:弹翼廓形测量系统  串行通信  类Win32Port  激光位移传感器

Application of Visual C++ in Communication Control of Laser Distance Sensor
XIAO Ding-guo,XUAN Hua.Application of Visual C++ in Communication Control of Laser Distance Sensor[J].Control Engineering of China,2005(Z1).
Authors:XIAO Ding-guo  XUAN Hua
Abstract:For data acquisition of laser distance sensor in wing's cross section measuring system, the principle of asynchronous serial communication realized by Visual C + + is introduced. Several serial communication programming methods in Visual C + + are discussed. The class Win32Port which is composed of the serial communication Win32 API is given, the serial communciation between PC and laser distance sensor is achieved by this class. The example show that the method is convennient to realize control of laser distance sensor and has good applicability.
Keywords:wing's cross section measuring system  serial communication  class Win32Port  laser distance sensor
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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