View Single Post
  #4   Spotlight this post!  
Unread 23-02-2011, 00:31
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
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.
Attached Thumbnails
Click image for larger version

Name:	Program Example.JPG
Views:	150
Size:	16.0 KB
ID:	10276  
Reply With Quote