LabVIEW Common Tips

Source: Internet
Author: User

1, the front panel in the Run button that row of the right side there are combination and ungroup buttons, multiple controls together can be combined, but also to form a different control of the habit of forming clusters.


2, View-"tool palette, the bottom is the color board, you can modify the control style."


3, every time the design of a front panel, you need to customize the size, in the file-"VI" properties can be set the front panel size, run-time position, style and so on.


4, whenever do not know what type should be entered, right-click Create constant for reference.


5, help and examples are very useful!


6, the front panel calls the problem of sub-VI, first create a container control, and then display and to run the function. As for how to remove the scroll bar inside the container, there must be two conditions:

A, sub vi in the VI attribute to design the scroll bar style (custom button);

b, you must run the function.


7. When you need to pop up a simple dialog box, you can call the application encapsulated function directly.


8, Boolean to number is very useful, especially with the creation of array functions, can achieve similar to the 3-8 decoder part of the judgment is very simple.


9, for the button, if it is level trigger, use if on the line. If it is an edge trigger, use the event structure (value change).


10, in a main thread, while the structure must be placed outside the event structure, will always be waiting. If you do not want to cause the crash wait, there are the following scenarios:

A, set the timeout event, such as setting 50, then within 50MS if the event structure is not triggered, then the timeout event will be executed in the program;

b, (recommended) a while is a thread, if the event structure needs to intervene, then other services can be placed in another while loop, the event structure of a single loop, to achieve multi-threaded effect (parallel).


11, involving network programming problems, first ensure that Windows comes with a firewall off, and then can ping. LocalHost can be used to test the local first.


Cond... 2015_4_25

LabVIEW Common Tips

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.