The first method (VISA) program is shown in the figure
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
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.
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
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- Apple faces class action lawsuit from 40 million UK iCloud users, faces $27.6 billion in claims
- Apple faces class action lawsuit from 40 million UK iCloud users, faces $27.6 billion in claims
- The US asked TSMC to restrict the export of high-end chips, and the Ministry of Commerce responded
- The US asked TSMC to restrict the export of high-end chips, and the Ministry of Commerce responded
- ASML predicts that its revenue in 2030 will exceed 457 billion yuan! Gross profit margin 56-60%
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- Unattended Brushless DC Motor System
- Tina ti cannot simulate LC oscillation circuit!
- How to output multiple pulses?
- Network port control output TTL module
- 【ufun learning】Part 1: Unboxing and drafting
- Can this diode be removed?
- FPGA soft core, hard core, solid core
- Please help, how does this circuit work?
- EEWORLD University ---- PLC Programming Introduction Video Tutorial
- After pressing the left mouse button to select a section of content, after releasing the left mouse button, you will find that the selected area is still changing with the cursor position.