From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
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
(2,274 Views)
You can use exor, basic boolean maths.
0 Kudos
Message 2 of 4
(2,274 Views)
Just to show you there is more than one way to skin the proverbial cat...


Mike...

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
(2,274 Views)
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
(2,274 Views)