|
Re: Java to Labview, using "if else" statements and pressing buttons
I'm assuming you know about case structures.
To make an else if statement, you just go to the false case of the case structure and put another case structure inside that.
There are also other ways to do it, like taking all your inputs and making them into a number (with a boolean array to number function, if you're interested) and wiring that one number to the structure. However, it's easiest (although ugliest) to just nest the case structures.
I attached an optimized program for you.
|