In LabVIEW programming, we often need to click certain buttons to control the corresponding output values or keep the main interface on a certain interface and maintain this state. The interface maintenance is similar to the tab control commonly used in LabVIEW. The event structure and shift register are mainly used here. Below I will design such a program to explain in detail.
2.
This article is going to design a program that can output corresponding values by clicking two groups of buttons on the main interface, as shown in the figure below. When you click the horizontal x, y, and z buttons above, the values of x in x+y are output respectively, and the corresponding values are 100, 200, and 300 respectively; when you click the four vertical buttons on the left, the values of y in x+y are output, and the corresponding values are 0, 5, 10, and 15 respectively. And the original values and button states are kept unchanged until the next click of a button.
3.
After designing the front panel as shown above, we start to design the back panel program, which can be mainly divided into three parts: initialization, event response, and state maintenance.
1.
2.
3.
4.
After starting, the program runs normally, proving that the program maintains the Boolean state very well.
Previous article:Use of polymorphic VIs and display of multiple fonts in strings
Next article:Data Transfer Progress Subpanel
- 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
- RISC-V Manual Chinese Version
- Say goodbye to 2018 and welcome 2019. See how the three pillars of China Mobile IoT dominate the field
- Using MakeCode Driver on BrainPad Development Board
- Please tell me the function of STM32 WWDG window value
- 2. Sensors used in previous "Control" competitions
- The left side is connected to the microcontroller, and the right side is the button. Why is the IO port always at a high level?
- Quickly obtain TI industrial motor drive resources and answer questions to win prizes
- Power consumption optimization design in embedded DSP design
- Activity/Inactivity recognition of LSM6DSL
- EEWORLD University - What you don't know about C language