LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

converting boolean into number

How to convert a boolean button into the number that i wanted? For example, i have 3 boolean button,when the first button pressed, number 1 will show up, second button -> number 3, last button -> number 4 i have tried to use boolean array into number, but the number that show up was not like what i have expected any help??
0 Kudos
Message 1 of 6
(6,627 Views)

Hai mahe,

what u gave as the input for 'boolean array to number' ?

 

Message 2 of 6
(6,610 Views)
Hi Mahe,
 
Please see the attached vi for getting the results as required by u.
 
Regards,
Alifiya
Message 3 of 6
(6,608 Views)
Obviously
  • first button --> 1
  • second button --> 3
  • third button --> 4
can't be resolved with a boolean array to number function !

Did you mean 1, 2, 4 ?
Could more than one button be pressed at a time ? If yes, what would the expected numbers be ?



Message Edité par JB le 04-24-2008 08:05 AM
0 Kudos
Message 4 of 6
(6,605 Views)
and here is much simpler one
Message 5 of 6
(6,600 Views)
ya,, it is something like the button on the calculator.. when u pressed 1, it will show 1.. just like tat.. seems like the example given almost get the result of what i want.. thnks to both of you.. really appreciate it
0 Kudos
Message 6 of 6
(6,579 Views)