LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FORCE STOP WHILE LOOP WITH TIME DELAY

Solved!
Go to solution
Solution
Accepted by topic author dragonknight255

I would suggest you to try out the following approach. It is like making the time delay into small chunks of time delay within which you want your VI to respond for Stop button press.

 

Capture.PNG

Message 11 of 13
(1,674 Views)
Solution
Accepted by topic author dragonknight255

Or like this (less efficient, maybe(?) a easier to grasp):

Wait Arduino.png

Note that this will still work when the U32 reaches it's maximum value.

0 Kudos
Message 12 of 13
(1,665 Views)

The OP is using the LIFA toolkit running on the host computer to talk with the "sketch" (code) through serial. If I remember correctly it is set up at 9600 baud rate. Without knowing what his timing requirements are it is kind of hard to answer due to the overhead of serial comms. If it is not too demanding he could split the timing up into smaller chunks to make the user vi more responsive. 

Now Using LabVIEW 2019SP1 and TestStand 2019
Message 13 of 13
(1,651 Views)