I have wanted to make something similar for a long time. I happened to learn LabVIEW this semester, and I handed in this as my homework, a "serial oscilloscope" host computer based on LabVIEW.
1. Program interface:
Function introduction: The upper left is the serial port receiving area, and the lower part is the serial port character sending area. The right side is a waveform chart. Each time the data sent from the serial port is formatted with f% inside the program, it is displayed on the waveform chart.
Button introduction: From left to right, send button; clear count button; open/close serial port button; clear receiving area data; clear waveform chart; save waveform; exit program.
2. Main program flowchart:
Introduction to the main program flowchart: The main program flowchart mainly consists of three states: program initialization, response to program events, and program exit.
State Init: Program initialization, mainly set the OpenCom button, serial port status, serial port receive string, waveform icon, TX/RX count and other controls to False or clear. The initialization state is executed only once, and then enter the Event state.
State Event: Program event response, consisting of an event structure, a total of 8 events need to be responded: Open/CloseCom button event; serial port number or baud rate change event; send button event; clear count button event; clear receiving area button event; clear waveform area button event; save waveform button event; menu selection event; exit button event. If you press the exit button in this state, you will enter the state Exit, otherwise the program will always run in this state.
Status Exit: The program exits. The opened VISA handle must be closed before exiting.
3. Serial port receiving program block diagram:
Serial port receiving program flowchart introduction: When the serial port status is true, call the serial port property node "Bytes at Port". If there are X bytes of data in the serial port buffer, receive X bytes of data. Finally, use a state machine to implement the judgment of two adjacent strings. If the serial port receives the time between two adjacent strings for more than 50ms, it is judged as two independent strings; if it is less than 50ms, the two strings are automatically spliced.
Previous article:The basic framework of LabVIEW graphical programming
Next article:LabVIEW VI Properties
Recommended ReadingLatest update time:2024-11-17 10:45
- Popular Resources
- Popular amplifiers
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Arduino Nano collects temperature and humidity data through LabVIEW and DHT11
- Modern Testing Technology and System Integration (Liu Junhua)
- Computer Control System Analysis, Design and Implementation Technology (Edited by Li Dongsheng, Zhu Wenxing, Gao Rui)
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Seizing the Opportunities in the Chinese Application Market: NI's Challenges and Answers
- Tektronix Launches Breakthrough Power Measurement Tools to Accelerate Innovation as Global Electrification Accelerates
- Not all oscilloscopes are created equal: Why ADCs and low noise floor matter
- Enable TekHSI high-speed interface function to accelerate the remote transmission of waveform data
- How to measure the quality of soft start thyristor
- How to use a multimeter to judge whether a soft starter is good or bad
- What are the advantages and disadvantages of non-contact temperature sensors?
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- New breakthrough! Ultra-fast memory accelerates Intel Xeon 6-core processors
- New breakthrough! Ultra-fast memory accelerates Intel Xeon 6-core processors
- Consolidating vRAN sites onto a single server helps operators reduce total cost of ownership
- Consolidating vRAN sites onto a single server helps operators reduce total cost of ownership
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- How should a fast charging decoy be evaluated?
- "Python Programming: From Beginners to Practice"
- The hierarchical wordline structure can improve the SRAM read and write speed and reduce the circuit dynamic power consumption
- What is your career plan for electronic engineering?
- The Differences and Working Principles of Digital Oscilloscopes and Analog Oscilloscopes
- TMS320F28335 ADC Learning Notes
- RGB Hexagonal Keyboard
- I am a newbie, where can I find the required package?
- 3D Printer Project - Introduction to the Main Modules of STM32F750 (Part 4)
- Today at 10 am, Beineng International will broadcast [New Glass Breakage Detection Solution] (Must-see for security and smart home)