摘要
本文介绍了ActiveX控件的特点,阐述了LabVIEW7.1下ActiveX控件的使用原理及其事件回调的注册方法,解决了事件回调编程中的数据传递难题,保证了数据的实时传输和数据处理,避免了数据的丢失和数据覆盖。本文以MSCOMM32控件为例,介绍了MSCOMM32在LabVIEW下的事件回调和数据传递技巧,具有技术的通用性,对扩展LabVIEW自身功能具有应用价值和参考价值。
The property of activeX control is introduced, the principle of using ActiveX control and the method of register event callback are both elaborated. And the problem of data transfer in event callback programming is solved, as a resuit, the real-time data transfer and data processing is ensured. The data lost or data covered is avoided. The MScomm32 ActiveX control is taken as an example to introduce how to program to solve the event callback and data transfer in Lab- VIEW7. 1. The method is universal and common used, which can enlarge the LabVIEW itself.
出处
《国外电子测量技术》
2008年第3期7-9,23,共4页
Foreign Electronic Measurement Technology