Notes and suggestions for using events in LabVIEW

Publisher:王岚枫Latest update time:2015-09-09 Source: eefocusKeywords:LabVIEW Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Because LabVIEW is a graphical programming interface, its event handling is different from event handling in other programming languages. The following list provides instructions and suggestions for using events in LabVIEW applications.
  • Avoid using event structures outside of loops.
  • Remember to read the terminal of the trigger Boolean control in the Value Change event case.
  • Use the Case structure to handle the undo operation of a triggered Boolean control.
  • Use caution when configuring a conditional branch to handle actions for multiple notification events.
  • Do not configure a branch to process multiple filter events with different event data.
  • If a While Loop containing an Event structure terminates based on the value of a Triggered Stop Boolean control, remember to handle the Triggered Stop Boolean control in the Event structure.
  • If you do not need to monitor specific front panel objects programmatically, consider using the Wait On Front Panel Activity function.
  • UI events are only available for direct user interaction.
  • Avoid using both dialog boxes and "mouse down?" filter events in the same event branch.
  • Avoid placing two Event structures in a loop.
  • When using dynamic registration, make sure each Event structure has a Register Events function.
  • When you use a subpanel control, the top-level VI that contains the subpanel control handles the events.
  • If you need to generate or handle other events while processing the current event, consider using the event callback registration function.
  • Choose notification or filter events carefully. You use an event case to handle notification events and will not affect how LabVIEW handles user interactions. Use filter events to change whether or how LabVIEW handles user interactions.
  • Do not use the Panel Close Notification event in critical shutdown code unless you take steps to ensure that the VI does not abort when the front panel closes. For example, make sure that the application opens a reference to the VI before the user closes the front panel. Alternatively, use the Panel Close? filter event, which occurs before the panel closes.
Keywords:LabVIEW Reference address:Notes and suggestions for using events in LabVIEW

Previous article:The corresponding relationship between the type output value and its event name in the labview event structure
Next article:Outputting an image from a graph using an Invoke Node

Recommended ReadingLatest update time:2024-11-23 08:39

Temperature measurement and control system composition and temperature signal generation and processing
When we developed the nitrogen oxide chemiluminescence analyzer, the entire system required temperature measurement and control in three places: the reaction chamber, the molybdenum conversion chamber, and the photon counter PMT. The temperature in the reaction chamber has a certain impact on the chemical reaction (ni
[Test Measurement]
Temperature measurement and control system composition and temperature signal generation and processing
Intelligent UHV tester system based on UV detection method
Abstract: A design scheme of intelligent UHV tester system based on DSP and LabVIEW is proposed. DSP is used as the core of the on-site intelligent UHV tester system, LabVIEW is used as the development platform for the host computer management system software, and the field bus CAN is used to transmit the data colle
[Power Management]
Intelligent UHV tester system based on UV detection method
Interface Design of Handheld Digital Waveform Table Based on LabVIEW
The virtual instrument program designed by LabVIEW is transplanted to the portable handheld device running WindowsCE. It can greatly improve the efficiency of embedded system software development. Specifically, an interface design that effectively solves the problem of alternating display of data waveforms is propos
[Test Measurement]
Interface Design of Handheld Digital Waveform Table Based on LabVIEW
LabVIEW VI Properties
The VI framework discussed above is displayed to developers, and developers can also directly set and modify the content in the framework. This part of the content is finally recorded and saved in the form of .vi. In fact, this file also records and saves a lot of other information about the VI. These information that
[Test Measurement]
Elevator upward overspeed protection device detection system based on virtual instrument
0 Introduction Elevators are widely used in various places as a kind of lifting and transportation equipment for people. It is very important to ensure the safety and reliability of elevators. According to the working principle of traction elevators, more than half of the time in the operation of the elevator is
[Test Measurement]
Elevator upward overspeed protection device detection system based on virtual instrument
Using LabVIEW to implement synchronous measurement
Whether you are working with different subsystems within a single data acquisition device or need to synchronize multiple data acquisition devices in a high-channel-count system, NI LabVIEW 2010 makes synchronization of data acquisition and generation simple. Timing and synchronization techniques relate or coordinate
[Test Measurement]
Using LabVIEW to implement synchronous measurement
Implement application solutions for instrument drive systems in the LabVIEW development environment
The virtual instrument development platform LabVIEW (LaboratoryVirtual Instrument Engineering Work bench) launched by the American NI Company is currently the most widely used, fastest growing, and most powerful graphical software development environment. LabVIEW has significant advantages in instrument control, data
[Test Measurement]
Implement application solutions for instrument drive systems in the LabVIEW development environment
LabVIEW Serial Port Debugging Notes
Use the Simplified Chinese version of LabVIEW 2011, and then you need to install the VISA driver (you can download the driver and LabVIEW software on eMule, but the LabVIEW on eMule is the English version. If you need the Simplified Chinese version, you can download it here http://ftp.ni.com/evaluation/labview/ekit/oth
[Test Measurement]
Latest Test Measurement Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号