摘要
介绍了Labview环境下串口通讯的实现方法,利用89C51单片机作为下位机采集卡,进行数据采集,PC机作为上位机,二者之间通过串口实现数据通讯.为此,设计了单片机采集和通讯电路,编制了相应的C语言程序,该电路利用8位A/D转换器ADC0808采集电位器输出的电压信号,把转换出的数字量通过RS-232串口通讯送给上位机,同时在Labview开发平台上,设计了串口通讯、数据处理和电压显示的前面板和框图程序,开发了虚拟数字电压表.
This article introduces realization method of serial communication based on Labview,the lower computer with 89C51 SCM collects data as acquisition card,then by the serial port,it sends data to upper PC.In order to do this,this article designs circuit of data acquisition and communication with SCM and writes relevant program file in C;the circuit contains analog-to-digital converter ADC0808;it can measure voltage from the movable arm of a potentiometer and send 8-bit digital signal to upper PC by RS 232.Moreover,this article designs front panel and block diagram by Labview for purpose of serial communication,data processing and displaying,then develops virtual digital voltmeter.
出处
《三峡大学学报(自然科学版)》
CAS
2010年第2期81-83,88,共4页
Journal of China Three Gorges University:Natural Sciences