|
Re: Multiple outputs
Read each button and put into a binary array. Then convert the array to a number. Your select case can then test for which number shows up. If you are watching four buttons, there would be a possible 16 cases. But since you probably only need to detect if one button is pressed, your test cases would be 1, 2, 4, 8. A very similar technique is being used in the sample line follower code that came with LabView this year.
If you need sample code, let me know. I will be at the lab tonight and can make it real quick.
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire
|