1. Regarding the timeout connection of the event structure: The event structure has an input for the timeout event. When it is not connected, it means that it will never time out. You should pay attention to this because sometimes your event will be placed in a while loop with other structures, such as the following figure:
Our ideal situation is that other service programs run normally in a loop (the small light flashes), and when the mouse is pressed, the event structure is processed. However, if it is written like this, since the event structure never times out, the while loop will only run once, and the second loop will only start when the mouse button is pressed. The result of this program is that the small light changes once the mouse is pressed.
2. Regarding the soft trigger of the event structure: There is a button on the front panel. It is very simple and commonly used to trigger after pressing it. However, sometimes it involves the issue of soft triggering, which is to use the program (rather than the controls on the front panel) to trigger an event. Let's take a look at the following example:
The "service program" software changes the value of the "soft trigger". Our ideal goal is that each time the service program value is changed to true, the small sign light will change once. However, the actual program running result is that no matter how many times it is pressed, the small sign light does not change. This is because direct assignment can only change the value of the variable, but cannot cause the event trigger of the secondary variable.
The solution is: to trigger an event by software, you must right-click the variable -> Create -> Property Node -> Value (Signal) and assign a value to it, so that the event structure can be triggered. For example, the figure below.
(When setting the event structure, uncheck the lock front panel.) Program running results: When the "service program" pops up, the small light does not change, but the event will be triggered all the time. You can see it in highlight mode. If you assign F to the "soft trigger" twice in a row, the event will also be triggered. In other words, as long as the value is assigned, the event will be triggered, not when the value changes. So a conditional structure is added to the event structure. When the "service program" is pressed, the "soft trigger" is continuously assigned T, the event structure keeps running, and the small light flashes.
Event structure is the essence of LV
Previous article:Labview event structure learning
Next article:Labview loop - shift register magic
Recommended ReadingLatest update time:2024-11-16 15:26
- 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
- Circuit Design of Robot Positioning System Based on MSP430
- Schedule of the 2019 National Undergraduate Electronic Design Competition
- [NXP Rapid IoT Review] +1. Data preparation, first look at NXP Rapid IoT
- Is this the Keil5 that STM32 needs?
- Upload two photosensitive detection circuits. The target detects different voltages according to different light exposure. Which one is correct?
- MSP430F149, HC_SR04 distance measurement
- MM32F103 BUG reminder to avoid pitfalls
- Will MakeCode support Python?
- What are the specific differences between triodes and MOS tubes?
- How to set the GND pin of a separate component as a flower pad in PADS?