Serial communication between Labview and C51 microcontroller

Publisher:Xiaoxue666Latest update time:2015-09-07 Source: eefocusKeywords:Labview Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
There are two methods of Labview serial communication, one is to use visa (virtual instrument software framework), and the other is to call activeX control.

The first method (VISA) program is shown in the figure

[Reprint] Labview and C51 MCU to realize serial communication

First, set the serial port parameters, initialize the serial port, use VISA WITE in the loop to write to the serial port, delay 200 milliseconds, use VISA READ to read, and there is a port property node in the middle to calculate the total number of bytes in the port. It's very simple, but it took me a day to figure it out.

The second method calls the active X    program diagram as shown below

[Reprint] Labview and C51 MCU to realize serial communication

The biggest advantage of ACTIVE X serial communication is that it can use interrupts to achieve data transmission or control of the lower computer. The MSCOMM32 control implements serial communication mainly by setting its property nodes. It also uses the event callback method to implement the interrupt program.

Keywords:Labview Reference address:Serial communication between Labview and C51 microcontroller

Previous article:AT89C2051 controls the voice chip recording and playback system circuit
Next article:How to create multiple C files and precautions for 51 single chip microcomputer KEIL

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号