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: 

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 ?


Sort of like a dead mans switch 

0 Kudos
Message 1 of 2
(2,403 Views)

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 LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(2,383 Views)