摘要
LabVIEW是NI公司开发的图形化编程开发平台,具备强大的实时数据处理功能与显示功能。通常情况下,在Lab-VIEW开发环境中进行串口通信使用VISA和ActiveX控件两种方式均可以进行,通过结合实例比较,发现VISA方式只能提供查询缓冲区方式接收数据,这需要占用大量的CPU时间,且实时性不佳。相对而言,使用微软提供的MSCOMM32控件的中断函数处理功能,可以实现中断方式的接收数据。同时,MSCOMM32控件可以单独设置串口的每一个引脚,便于实现高级的用户自定义功能。
LabVIEW is the NI company's graphic programming language that is able to fulfill ability on handling real-time data and showing. Generally, either VISA or ActiveX control could realize the communication with serial ports under LabVIEW language environment, but the ways that they received data are different. The way based on VISA receive data only through query buffer of serial ports, so it impropriate a lot of time of CPU and not have good re.al time capability. In relative terms, the MSCOMM32 control could offer query interrupt function that achieve receive data through querying interrupt. At the same time, the latter could define every pin of a serial port,so the senior users realize the user-defined functions conveniently.
出处
《国外电子测量技术》
2009年第12期27-30,42,共5页
Foreign Electronic Measurement Technology