[LabVIEW tips] if… nested by LabVIEW... Else... This implementation

Source: Internet
Author: User
A few years ago, I wrote an article on GSDzone and recalled it. Implement if… in LabVIEW... Else... Use the case structure box to implement an if... Else... But if... If... if... else... else... else... even more often, there will be a case with a case. Previously, I saw a maximum of 10 cases together.

A few years ago, I wrote an article on GSDzone and recalled it. Implement if… in LabVIEW... Else... Use the case structure box to implement an if... Else... But if... If... if... else... else... else... even more often, there will be a case with a case. Previously, I saw a maximum of 10 cases together.

A few years ago, I wrote an article on GSDzone and recalled it.


Implement if… in LabVIEW... Else... Use the case structure box to implement


One if... Else... Okay.
However, if...
If...
If...
Else...
Else...
Else...
Even more often, a case will be nested with a case.
In the past, I saw a maximum of 10 cases. Many people may have encountered this problem. Is it a headache? Look at the following code and it feels like a maze.




Now I will tell you how to solve this problem, and you can solve it with only one case box.
A button represents an if... else..., represented by 0 and 1
First, these buttons are used as an array and then converted to a value (the "binary display" method of the value can be found in the attribute)

Enter the case structure box, right-click the case box, and select base --> binary. As shown in



In this way, you can organize and program the corresponding if... else. Is it out of the maze?


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.