Common tips for labview and tips for labview
1. the right side of the front panel is a combination or cancel combination button. Multiple controls can be combined together, and different controls can form the habit of forming a cluster.
2. View-> tool palette. The bottom is the color palette. You can modify the control style.
3. Each time you design a front panel, you need to customize the size. In the file-vi attribute, you can set the front panel size, runtime location, style, and so on.
4. When you do not know the type of input, right-click to create a constant for reference.
5. Help and examples are useful!
6. To call sub-vi on the front panel, first create a container control and then display and run the function. Two conditions are required for removing the scroll bar in the container:
A. subvi should design the scroll bar style (Custom button) in the vi attribute );
B. You must run this function.
7. When you need to bring up a simple dialog box, you can directly call the function encapsulated by the application.
8. Boolean-to-number conversion is very useful, especially when combined with the creation of array functions, it is very easy to implement the Judgment part similar to the 3-8 decoder.
9. if the button is triggered at a level, use if. If edge is triggered, use the event structure (value change ).
10. Within a main thread, the while structure must be placed outside the event structure, and will be waiting. If you do not want to cause a crash wait, the following solutions are available:
A. Set a timeout event. For example, if 50 is set, if the event structure is not triggered within 50 ms, the program in the timeout event will be executed;
B. (recommended) a while statement is a thread. If event structure intervention is required, you can place other service programs in another while loop. The event structure is a separate loop, implement multi-threaded effect (parallel ).
11. If network programming is involved, ensure that the firewall of windows is disabled and ping the firewall. You can use localhost for local testing.
To be continued... 2015_4_25