节点文献
用VC实现PC机对激光位移传感器的通信控制
Application of Visual C++ in Communication Control of Laser Distance Sensor
【摘要】 为实现弹翼廓形测量系统中激光位移传感器测量值的采集,介绍了用VC实现异步串行通信的基本原理。讨论了VC用于串口通信的几种方法,给出Win32API汇集在一起所构成的类Win32Port,并且利用该类实现了主机程序与激光位移传感器的串行通信。应用实例表明,该方法通过利用异步串行通信可方便地实现工控机对激光位移传感器的控制,有较高的可应用性。
【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.
【Key words】 wing’s cross section measuring system; serial communication; class Win32Port; laser distance sensor;
- 【文献出处】 控制工程 ,Control Engineering of China , 编辑部邮箱 ,2005年S1期
- 【分类号】TP273.5
- 【被引频次】3
- 【下载频次】247