Anyone familiar with VC knows that WM_USER is a message reserved by Microsoft specifically for users, through which various commands and data can be sent to the main window.
Now, LABVIEW also has this capability. I wonder if you have used it.
If a project controls several devices and they work in parallel, how do the parallel control loops exchange data with the main loop? You can do this through global variables, shared variables, control references, and queues.
Today I'll introduce a new method to make full use of USER EVENT.
First, use Custom Control to create a strict type def cluster. The example I gave is to simulate a WINDOWS message, but it can actually be of any type. Using variant data may be more appropriate.
Here I define 50 kinds of messages
The information that each event needs to pass is:
1. Message number (50 types, which can be understood as 50 commands)
2. String, used to transmit information
3.4 are two data, simulating wParam and lParam of WINDOWS
The next step is to use the Action Engine method to encapsulate all operations in a SUBVI
First, a user event is generated in First call=TRUE, and a reference is returned and stored in SHIFT REGISTER.
[page]
There are three commands defined here: GetRef (get reference) Fire (generate event) Release (release)
Such a complete AE is formed, and the specific calling method is as follows:
Specific effect demonstration:
Previous article:Event structure--the meaning of basic parameters.
Next article:Property Node Series--Owner and OwningVI
- New IsoVu™ Isolated Current Probes: Bringing a New Dimension to Current Measurements
- Modern manufacturing strategies drive continuous improvement in ICT online testing
- Methods for Correlation of Contact and Non-Contact Measurements
- 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
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- EEWORLD University - What is an antenna vibrator?
- Selling new and second-hand Xilinx development boards, both high-end and low-end
- [RISC-V MCU CH32V103 Review] First Look at CH32V103
- May was quite busy, and my hand broke.
- Important parameters of Rfid technology
- Pre-registration for the prize-winning live broadcast | Infineon system solutions make electric motorcycle design more reliable and efficient!
- Embedded systems and real-time software development
- What methods do you generally use to recruit or find jobs? Which platform is used more often?
- Summary of the points to note when using CCS8.0 to program MSP430G2553
- picture