Showing results for 
Search instead for 
Did you mean: 

last action performed

I have a set of four boolean buttons. I want to know which button is pressed last? in this way, i want to track on user's last performed action
0 Kudos
Message 1 of 4
You can use exor, basic boolean maths.
0 Kudos
Message 2 of 4
Just to show you there is more than one way to skin the proverbial cat...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 4
I could not see how your code was written but there seems to be a loop. Put a shift register on the loop (right click on the border of the loop and select add shift register). The shift register allow information (which toggle was clicked) to be passed from the previous iterations of the loop to the present. Then all you need is some logic for passing the appropriate which toggle was clicked information. See the shipping example code under loops for some examples of the shift register in action. Also look at the state machine in the vi templates.
Good luck with the project.
Jeremy Braden
National Instruments
0 Kudos
Message 4 of 4