|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Java to Labview, using "if else" statements and pressing buttons
x=reader.nextInt();
claw = !x; There you go, I optimized it. Last edited by davidthefat : 22-02-2011 at 23:26. Reason: I forgot x=reader.nextInt(); |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
Re: Java to Labview, using "if else" statements and pressing buttons
Oh wow, thanks! I've tested both of them, but I need to discuss with my driver and team which they would prefer.
Much appreciated ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|