LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resetting buttons

Solved!
Go to solution

Hello,

 

I was just wandering. I have a button whose mechanical function is set to "switch until released". Is there a way I could hit the button and have it on "switch when pressed" then when a particular function or event has occurred have it reset to the default "false" state?

 

Cheers

 

K

0 Kudos
Message 1 of 9
(4,104 Views)
Yes, this is one of the few good places to use a local variable.  The local variable is a better choice here than using a property node.
Message 2 of 9
(4,103 Views)
Here is a good link for why the local variable is a better solution here, if you are interested.
Message 3 of 9
(4,097 Views)

hey there,

 

not sure what i'm supposed to be looking at.

 

could you point out a few things? isn't using a local gonna be the same at the current true/false of the button?

 

 

0 Kudos
Message 4 of 9
(4,085 Views)
Solution
Accepted by topic author Kamilan
Just write a false in the local variable, after the button is pressed
Message 5 of 9
(4,069 Views)
Precisely, sorry I wasn't more descriptive.
Message 6 of 9
(4,032 Views)

Hi there,

 

Thats for the picture. That did the trick 🙂

 

Cheers

0 Kudos
Message 7 of 9
(4,001 Views)

Picture attached 🙂

Chris Bolin
LabVIEW Partner Program, CLA
Message 8 of 9
(3,971 Views)
Thank you for the picture CXB!
0 Kudos
Message 9 of 9
(3,838 Views)