05-08-2017 01:51 AM
Hi,
Is there any function available in LabVIEW which pause the execution untill the button is pressed?
I mean at a stage, i need my program to wait untill the button is pressed, so is there any function available to achieve this.
Kindly guide.
Regards
05-08-2017 01:57 AM
05-08-2017 05:36 AM
Something like this?
05-08-2017 10:22 AM
I usually just do this:
05-08-2017 11:04 AM
05-08-2017 02:28 PM
@cbutcher wrote:
I meant something like this.
I do that as well but make sure the "Lock FP ..." option is NOT selected in that event case. If they hit the button twice the FP will lock-up.
Ben
05-08-2017 03:42 PM
What you need is a state machine. One state waits for button presses.
05-09-2017 03:01 PM
05-09-2017 03:31 PM - edited 05-09-2017 03:33 PM
@paul_cardinale wrote:
That would misfire nearly 100% of the time. assuming there are other controls on the front panel. Also, are you sure that the button state is read after the activity is detected. Most likely you read the stale state from when the loop started.
05-09-2017 04:24 PM
@altenbach wrote:
@paul_cardinale wrote:
That would misfire nearly 100% of the time. assuming there are other controls on the front panel. Also, are you sure that the button state is read after the activity is detected. Most likely you read the stale state from when the loop started.
It works fine. I've used it many times.