基于LabVIEW的双机串口通信的设计
Design of two-machine serial communication based on LabVIEW
-
摘要: 给出了一种基于LabVIEW的双机串口通信的设计:采用串口线来设计2个计算机之间的通信,并通过LabVIEW中的VISA库实现了一个能够自动收发的通信系统,即将串行通信中所需要的控件模块按照逻辑时序搭建起来,同时配合循环等待、条件判断等语句,将数据或仪器控制命令转换为LabVIEW平台的数据传输格式.该设计具有硬件接口简单、软件编程方便、实用的特点,在实际近距离通信中具有一定的参考价值.Abstract: A realization method of two-machine serial communication based on LabVIEW was presented,using serial line to design the communication between two computers,and a communications system which can automatically send and receive had been realized through LabVIEW's VISA library.The serial communication control module was built up in a logical sequence,at the same time,looping statements,condition judgment statements and other statements were used and the data transfer format or instrument control command is converted to LabVIEW platform.The method is practical with a simple hardware interface,convenient software programming and practice.It has some reference value in the actual close communication.
-
Key words:
- LabVIEW /
- VISA /
- serial communication
计量
- PDF下载量: 28
- 文章访问数: 806
- 引证文献数: 0