Table of contents
UI Design: A Lost Art?
1. Customize the UI appearance
2. Reasonably organize complex UI
3. Tell the user when the program is running slowly
More related resources
If you’re still filling the default gray front panel with modern or classic controls, you haven’t even really touched the user interface (UI) design yet.
If a well-structured and fully functional program flowchart is like the meat of a sandwich, then a beautiful and practical UI is the upper and lower layers of bread. Maybe you will ask if it is indispensable? Maybe not, but it is this appearance that makes it different.
Figure 1. Small changes lead you to design a more beautiful and easy-to-use UI step by step
UI Design: A Lost Art?
If you ask NI LabVIEW developers what they like most about LabVIEW, they will give you a variety of answers, such as the convenience of processing real-world signals, the efficiency improvement of using advanced tools, or the very natural programming method of graphical data flow. Developers often overlook the "graphical" advantage of LabVIEW. It is these graphical interface front panels that constitute the "half of the country" of each VI.
Writing beautiful code is an important part of every application. After all, a program that doesn’t work is a worthless investment. As LabVIEW continues to expand and is used in more and more complex applications, developers must invest more effort in improving the aesthetics of application development, because even a perfectly functional program is less valuable if its interface confuses users.
Figure 2. Although the two VIs have the same functionality, the stopwatch-shaped control makes it easier for users to identify the stopwatch function.
Here are three LabVIEW tips to help you improve your program so that it has a UI that looks and functions better.
1. Customize the UI appearance
The easiest way to improve the appearance of the UI is to replace the LabVIEW default gray front panel background and the "new control panel" with other elements. Simply change the background color of the front panel, use external resource images to beautify your UI, or simply use the system control template. You can get a unique interface appearance without investing a lot of time in customization. In addition, system input controls and display controls are very familiar to most users because they are specially designed to have the style of the operating system. This allows users to quickly become familiar with the functions, making them easier to use. [page]
Customizing controls adds richness and flexibility. Using the LabVIEW Control Editor, you can dissect each control to separate and modify each of the underlying graphical components that make up the control. This technique makes each control more stylized, recognizable, or more representative of the real-world signal it represents. From adding model textures to buttons to modifying instrument background images, control customization is one of the most popular ways to improve the appearance of the LabVIEW UI.
2. Reasonably organize complex UI
However, as your application expands in scope, you often have to add a lot of information to your LabVIEW front panel. Fortunately, if you don't need to display all the controls at the same time, LabVIEW has two simple tricks to simplify the work of dealing with complex UIs.
Tab controls are a commonly used UI component that effectively encapsulates UI functionality into several different parts. They are easy to use and more flexible than most people think. Add a tab control to your front panel, and then fill the tabs with other input and display controls. You can increase and decrease the number of tabs, change the transparency of the tabs, select the physical position of the tabs to display categories vertically, and even add pictures to the tabs.
However, the ease of use gained by using tabs comes at the expense of scalability. Because of the size of the user's monitor, the number of tab controls that can be added is limited. You should consider this detail carefully before developing. In addition, although most of the content is not visible, the tab control loads all input and display controls into memory at once. This may have an adverse effect on the performance of the program.
An extensible UI organization method is to use LabVIEW subpanel technology. With subpanels, you can create countless subVIs, so that you can dynamically fill the subpanel controls with specific subVI content when appropriate. With LabVIEW subpanels, you can decide when to load the display content into memory or release it, which allows you to better control the program.
3. Tell the user when the program is running slowly
Nothing is more frustrating than a program that is stuck while performing a large number of long operations. For a long operation, it is very important to inform the user of its start, end, and progress in a timely manner.
LabVIEW comes with built-in busy cursor and progress bar controls that can be used to easily notify users when the program is processing tasks in the background. When you know the detailed flow of program execution—such as frequent iterations of various For loops—using a system horizontal progress bar is an effective choice.
Your application may have a long loading process when the user first starts it. You can create a splash screen to let your users know that your program has successfully started while informing them of the loading process. By taking advantage of front panel transparency and centered splash screens, LabVIEW can easily create a professional product with only a few minor changes to properties.
Figure 3. You can easily create and use a splash screen to notify the user of slow loading.
Previous article:Power Quality Analysis Platform Based on NI CompactRIO
Next article:NIPAC Nuclear Power Plant Maintenance and Monitoring Control System Solutions
Recommended ReadingLatest update time:2024-11-16 23:36
- Popular Resources
- Popular amplifiers
- 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
- Sensor data processing algorithm in single chip microcomputer development
- 12 must-know details about using an oscilloscope
- [Pingtou Ge RVB2601 creative application development] Weather broadcaster based on Pingtou Ge RVB2601
- The problem of increasing the driving capability of the oscillation circuit
- Antenna Design Solutions for Next Generation Mobile Devices
- Which big shot can surpass the design in the picture and realize fingerless touch screen?
- 【bk7231N】First experience with firmware upload platform
- Bluetooth cannot discover CHAR1
- LLAKG: Arduino automatic watering system (Episode 3: C language program upgrade and function optimization)
- [NXP Rapid IoT Review] - NXP Rapid IOT Studio Experience