LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My goal is to create a button that the user must hold onto so my while loop can perform. Once the user lets go of this button the function should stop. How can I do this ?

Highlighted

Sort of like a dead mans switch 

0 Kudos
Message 1 of 2
(1,239 Views)
Highlighted

Hi Mangg,

 

use a button and set it's switching behaviour to "switch until released".

Then you can use an event structure to detect each value change event and use them to en-/disable your "function"…

 

General recommendation: Put more text into the message body and less into the thread title!

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
Message 2 of 2
(1,219 Views)