Abstract: This paper uses LabVIEW to design common experimental modules in circuit courses. Each module gives a specific program design plan and is finally successfully run and debugged. The introduction of virtual instruments can not only save costs, but also update and adjust experimental methods and means to keep the laboratory teaching equipment advanced, improve the quality and efficiency of experimental teaching and scientific research, and is a new development direction of experimental teaching, which promotes the progress of laboratory technology.
Traditional experimental teaching equipment is old and backward, and can no longer keep up with the needs of educational development. It has largely restricted the development of experimental teaching and the improvement of talent training quality. In addition, ordinary laboratories involve instrument debugging, management, and easy damage. LabVIEW programming language is flexible, open, and uses software to replace instrument functions. It has the advantages of good user interface and simple operation. Having a virtual instrument system is equivalent to having a personal laboratory. Circuit courses are an important part of the learning of students majoring in electrical engineering. The course is highly theoretical. By establishing a virtual laboratory on the computer and using the virtual experimental instruments designed by the LabVIEW development platform, common experiments in the course can be realized, including the design of modules such as branch current method, first-order dynamic circuit analysis, and second-order dynamic circuit analysis. This can improve students' interest in learning, make up for the shortcomings of experimental teaching in the hardware environment, improve the teaching quality of circuit course experimental teaching, improve teaching effects, expand students' practical platform, and provide a new auxiliary means for experimental teaching of basic electrical courses, that is, an experimental teaching method that combines actual operation with computer simulation with virtual instruments as the core.
1 Virtual Instrument Programming Platform
Virtual instruments are a new achievement that has been bred together with the close combination of testing technology and instrumentation technology in the process of intensive penetration of increasingly developed computer hardware, software and bus technology into other technical fields. According to the World Instrumentation and Automation magazine, virtual instruments will become the development direction of electrical measuring instruments in this century.
LabVIEW is a laboratory virtual instrument engineering platform. Its full name is Laboratory Virtual Instrument Engineering Workbeneh (laboratory virtual instrument integrated environment). It is a virtual instrument development tool based on G language (Graphies Language) developed by National Instruments of the United States. It is the world's first 32-bit compiled program development system for instruments that uses graphical programming technology. It is currently the most widely used, fastest-growing and most powerful graphical software development integrated environment.
The core of LabVIEW to create virtual instruments is VI, which includes the program front panel (Front Panel), block diagram program (Diagram) and icons/connectors.
2 Experimental design of branch current method
2.1 Front panel design
The front panel of the circuit is built through custom controls, as shown in Figure 1. The five resistors and three power supply components are all numerical input controls, and the values are adjustable; the five numerical display controls are used to represent the five branch currents.
2.2 Flowchart Design
Apply Kirchhoff's law to the circuit and write the equations into a linear equation system in matrix form, that is,
Use the Unit Conversion node to convert between unit data and unitless data, use the MathScript node to generate the coefficient matrix and known vectors of the linear equations, and use the Solve Linear Equations.vi to solve the linear equations.
The flowchart of the branch current method circuit analysis program written according to the matrix equation group is shown in Figure 2.
Run the program and the result is shown in the front panel of Figure 1.
3 First-order dynamic circuit design
When a dynamic circuit switches from one steady state to another, a dynamic circuit transition occurs. The purpose of dynamic circuit analysis is to analyze the circuit operation rules during the transition process. Using LabVIEW to simulate the dynamic process of the circuit can display the parameter change curve, which helps to deepen the understanding of the transition process rules.
3.1 Front panel design
Build the circuit diagram, and display the currents IL, I1, and I2 in an XY diagram. The front panel is shown in Figure 3.
3.2 Block Diagram
Write the expressions for each current according to the three-element method:
According to the above formula, IL, I1 and I2 are calculated respectively using formula nodes. The flowchart is shown in Figure 4.
The running result is shown in Figure 3. The variable in the formula node is R2. You can change the value of R2 and re-observe the program running result.
4 Second-order dynamic circuit design
The zero-input response of the RLC series circuit is taken as an example to discuss the transient process of the second-order circuit.
Given L=0.4 H, C=0.1 F, uC(0-)=1 V, iL(0-)=0, and the switch is closed at t=0, discuss the zero input response of uC at different resistance values and draw waveforms for comparison.
4.1 Front panel design
Create a circuit diagram and send the result to the waveform display. The front panel of the RLC second-order dynamic circuit is shown in Figure 5.
4.2 Block Diagram
After the switch is closed, write the second-order differential equation for the capacitor voltage uC.
The second-order differential equation (5) is Laplace transformed and the difference equation is solved considering the initial conditions.
If the denominator polynomial has two unequal roots p1 and p2, we have
Call the partial fraction expansion VI, PaaiM Fraction Expansion.vi, in the function palette "Math-Polynomial" to solve the root P and the coefficient A.
When writing a program, you first need to determine the multiplicity of the roots. The multiplicity of the roots can be obtained from the output parameters of the partial fraction expansion VI. The "residue" array is a two-dimensional array. When there are two unequal roots, the coefficient array obtained is an array with two rows and one column. The elements in the first row and the second row are the coefficients A1 and A2 corresponding to the two roots respectively; when there are two repeated roots, the coefficient array obtained is an array with one row and two columns. The elements in the first column and the second column are the first-order and second-order coefficients A1 and A2 of the root respectively.
Write the program flowchart for unequal roots and double roots based on equations (7) and (9).
Take different R values and run the program respectively, and the corresponding waveforms under various damping conditions can be observed, as shown in Figure 5. It can be seen that when R>4 Ω, it is an oscillating waveform, when R4 Ω, it is a monotonically decaying waveform, and when R=4 Ω, it is the critical case of the two, which is consistent with the theory.
5 Conclusion
In this paper, combined with the existing conditions, virtual instrument technology is used to realize the design of circuit experiments based on LabVIEW, providing a new solution to the shortage of experimental teaching equipment in colleges and universities, making the experimental teaching methods more advanced and the experimental results more intuitive. With the continuous updating of the software, the performance and functions of the experimental system can be improved, which has broad application prospects in the future development of laboratories.
Previous article:Design and real-time analysis of a real-time monitoring software based on LabVIEW 7.0
Next article:Design of wireless temperature sensor based on WiFi technology
Recommended ReadingLatest update time:2024-11-16 11:48
- 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
- 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!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Sharing experience - the legendary RF self-oscillation appears again
- DIY mini desktop clock using RTT Studio (Part 1) | Create a HelloWorld project based on the STM32 chip
- Share two children's poems, guess how old the author is
- Let’s talk about digital filtering algorithms. Reply to get points!
- GaN power amplifiers revolutionize radar design
- This is an equalizer. I bought it but never used it. I want to share it with you.
- Join the thread and have a chat: If I give you a motor board, what would you want to do?
- 【China Academy of Electronics Science】Recruitment of embedded/algorithm engineers
- Create a healthy life and achieve powerful tools
- Help with the synchronization of the power supply LMZ34002