The preface has been written for years by the LabVIEW program, are you facing such problems
Always doing some repetitive work, feeling very mean, always keep on writingcode, do similar controls, achieve the same function, no sense of accomplishment;Always overtime in the day, no time to improve themselves;
You also know that simple repetition does not bring about the improvement of efficiency, but do not know where to go, helpless and anxious?
little Black to talk to you today. LabVIEW Star Dafa, let you in the work more and more efficient, experience all can control the wonderful feeling ~
Remember, our slogan is: Farewell to the repetition of the car, you are mine, all things are used for me ~
IntroductionAfter the introduction of the first two articles, I believe that you have learned some basic knowledge of reuse and accumulation in contact with LabVIEW.
Today's next article is also in the accumulation and reuse of the direction of continuation, but this time do not talk about technology, we come to talk about feelings.
Small black contact LabVIEW is actually very simple, because the virtual instrument and measurement and control technology and instrument name-related, feeling and professional relevance, so reported to the community to learn.
Slowly, when LabVIEW came into contact, it had already said goodbye to a tool, becoming a manifestation of his obsessive-compulsive disorder. As a programmer, more and more can not tolerate ugly code, so I started from the icon design, always ask to write beautiful programs, rather than simple implementation functions.
Nice program.readabilityadded, and the basis for readability is the subvi icon. So, today we're talking about the UI icon reuse.
What is the UI icon reuse? UI icon Multiplexing refers to the rapid and batch design of icons through the Template,ui icon multiplexing of the UI to accelerate LabVIEW development. is a small black UI Template, often used to quickly design a framework for the UI
It's a little black icon gallery.
Why is the UI icon library reused? If you use the PDCA process to examine the process of LabVIEW Programmer Development Program, it is easy to find such a phenomenon. If you design your program quickly for diagrams, simplify the design of the icons as much as possible, resulting in a large number of default icons in the program, which is very poorly readable. If you spend a lot of time designing icons to improve the readability of your program, the icon design will waste a lot of time when a lot of VI needs to be developed.
Therefore, the rapid design of LabVIEW icon will greatly improve the development speed of LabVIEW. With simple reuse accumulation, the work of the icon design will be simplified to the minimum, and you will set aside more time for the design and thinking of the software architecture.
Before reusing icons, you have to understand the following questions
1. Which icons need to be reused
it turns out that in a software program, VI can always be divided into different categories according to different standards. In particular, the same functionality of the API should keep the same icon template as possible to facilitate subsequent reading easily distinguishable.
2. When to use what kind of iconthe reuse of icons is an art, you only know how to reuse the icon, how to design the icon is easy to understand, will write a good readability of the program (at least to write that you can easily understand the program). If the program you write is hard to see, let alone others. Who is going to reuse the UI icon? Design the LabVIEW program all the people, or the person who reads the code, or the pit left by others, as long as you want to read the code quickly, good icon design will bring great benefits to the programming.
How do i reuse a UI icon? The UI icon reuse allows you to spend a little time saving a lot of development time, and your program readability will be greatly improved. How is it done? Small black summed up the following three points for your reference. Star-sucking Dafa-accumulationstar-Sucking Dafa-archive
star-Sucking Dafa -making use of tools
Accumulate
In three star-sucking Dafa, little black has been emphasizing a concept, accumulation and reuse. In the UI icon reuse, the accumulation of the same necessary, small black introduce their work habits, for your reference only.
when encountering a class of drivers, try to design a template as much as possible, since the driver is likely to include initialize,action,read,write,close, so using the same template will allow you to maintain a consistent program style.
Small black icon design always with a self-designed benchmark icon to start (haha, all Sub VI has been playing Elton logo, as long as a look at these procedures I wrote ...)When I was designing a robotic actuation, I spoke on the benchmark icon, adding some icons related to the main concept, so that all my robot-related icons had templates.
If I design the initialization and shutdown of the robot, I can set the following icon in the glyphs, is not simple and good-looking (think not good-looking can be self-designed, here is just the author's narcissism ...)
So, the entire process consists of two key points 1. When designing series SUBVI, store the template in advance
2. You can use the Quick Search to find the icon you need (I have to persuade the Chinese version of the LabVIEW developers, using the Chinese version will never feel the thrill of search) After the archive template and the glyphs accumulate, you will have a large number of icon libraries, if you carefully organize, you will again benefit from the collation. Some of the template shown in the figure is the icon used in different designs (some icons are used from the Unclad where the star-sucking Dafa is concerned, and here the admiration of the Light God)
Icon head for design class for designing FGV iconsicons for some drivesThe icon used to represent the file type is used to design the tree's icon library and so on ..... Use tools if you don't have nice icons to do 1. Can not do their own to do, the Internet grilled a steak, there are a lot of 2. If you do not like the online icon, you can design, recommend an icon design software Iconcraft, I was to make very comfortable. Much more complicated than LabVIEW's icon editor, you can design some fine icons. 3. If you do not know the tool bag you are out, icon design in VIPM and NI community is a lot of icon tools, here I very much like a GDS (can self-Baidu, test everyone's search ability), specific functions to show you. In the project, directly edit the icon of the class can automatically generate the icon according to the VI name, and can automatically color (in most cases, although the color is very ugly ....) ) can quickly modify the line of the class
Powerful, more convenient than their own configuration, you can easily design the icon harness ~
PostScript LabVIEW Star Dafa, will be your icon fine design, you will write a more beautiful program, in efficiency and aesthetics, we can do both, as long as you are willing to do the effort.
If this article touches you, sincerely hope you can try, experience the accumulated value, farewell to blind overtime, so that work more effective rate ~
The operation industry has specialized, the smell Tao has successively, in the knowledge front door, we may glimpse one or two, but does not know heavens beyond heavens, the person outside someone. Keep a humble heart, focus on the improvement of technology, Excellence ~
-----This article dedicated to fall into the LabVIEW pit but still do not give up, we are not professional software engineers, but there is a progressive heart.
LabVIEW Star Dafa-good things to see are mine (next)