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?