摘要
串行通信以其技术简单成熟、性能可靠而在测控系统中得到广泛应用。主要介绍了LabWindows/CVI环境下串口通信的实现技术,首先简要介绍了几种常用的通信实现方式,然后着重对LabWindows/CVI 7.0下实现串口通信的两种方法进行了详细介绍,分别为API方式和库函数方式。API方式实现灵活、应用范围广,但原理复杂,而库函数方式实现简单,并有强大的函数库支持,可有效提高系统的设计效率。对主要的编程函数进行详细说明,并给出了关键程序的实现代码。
The serial communication is widely used in measurement and control system for its simpleness and reliability. The implementation of serial communication in measurement and control system under the LabWin- dows/CVI fiat is introduced. The several applications are introduced in brief at first. These two methods API mode and function library mode based on CVI are described particularly. The API mode is flexible and applica- ble but complex while the function library mode is simple and can improve the efficiency of design for its pow- erful functions. The primary programming functions are introduced and the codes of key processes are dis- played.
出处
《测控技术》
CSCD
北大核心
2012年第9期88-91,共4页
Measurement & Control Technology