View Single Post
  #5   Spotlight this post!  
Unread 30-01-2010, 23:39
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: Best way to check multiple Boolean values?

Quote:
Originally Posted by RoboMaster View Post
Is there maybe a way to put all the button values into an array, search for a true or 1, and return which index it was? I don't think there's a "search array" VI.
I think Luke already suggested an excellent way to do this, but to answer your question--yes you can do as you suggest and use Build Array to make an array of Booleans and then use Search 1D Array to search for a True (or False) value in the Boolean array. Both of these functions are found in the LabVIEW Array palette.
Reply With Quote