09-22-2011 06:48 AM
I need to make a display that can show which button I am pressing. Meaning there are 10 buttons and the display then has to show if it is button 1,2,3,4,5,6,7,8,9 or 10 I have pressed down
Any suggestions?
Solved! Go to Solution.
09-22-2011 06:51 AM
Your best bet is to make an array of these buttons. Place an event structure on this array, such that everytime its value changes (by click of one of the buttons) you can read in the new value, and index the array to find which button has changed. Display that number.
Does this help?
09-22-2011 07:02 AM
I have made the array of buttons and placed an event structure on this array but dont get what you mean with the rest. How do I make a button correspond to a value?
09-22-2011 07:18 AM
That's great,
All you need to do now is:
1. Add an event on the event structure to point to "value change" of this array.
2. Compare old and new values to find which element has changed.
3. Increment index since it starts with 0.
I wrote a VI for you 🙂
09-22-2011 07:26 AM
That is so great. It is my first time using the program so have spend a lot of time on the same problem. I will try to analyze your solution 🙂
Thank you for your help
09-22-2011 07:28 AM
At your service!