LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

any function to trace user input

Hi all,

 

I have 4 buttons.is there any fuction to find out which button is pressed( like switch case)

 

thanks

0 Kudos
Message 1 of 2
(1,868 Views)

Are they in an array?  Then you can search the array for a True.  Or you can convert the boolean array to a number and know which button, or combination of buttons, based on the binary value of the boolean array.

 

If you use and event structure, you can create an event case for each button, or use a single case for all the buttons and use the Control Reference terminal to get a reference to which button was pressed.

0 Kudos
Message 2 of 2
(1,867 Views)