ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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,274 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,273 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,267 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,255 Views)
Solution
Accepted by Kamilan
Just write a false in the local variable, after the button is pressed
Message 5 of 9
(4,239 Views)
Precisely, sorry I wasn't more descriptive.
Message 6 of 9
(4,202 Views)

Hi there,

 

Thats for the picture. That did the trick 🙂

 

Cheers

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

Picture attached 🙂

Chris Bolin
LabVIEW Partner Program, CLA
Message 8 of 9
(4,141 Views)
Thank you for the picture CXB!
0 Kudos
Message 9 of 9
(4,008 Views)