Common tips for labview and tips for labview

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.