Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does this program not stop when not highlighted.

When I highlight the execution of this program it runs through and stops. However when I take off the highlight then the program does not quit running. I have encountered this problem on other programs as well. What causes it?
0 Kudos
Message 1 of 2
(2,599 Views)
Hello,

Thank you for contacting National Instruments.

I took a look at your VI. I think the problem may be that you are using a Continue if True loop condition in your first While Loop. If you press the stop button wired to this condition or if an error is generated in your VI, that first loop will continue to run indefinitely. Try right clicking the loop conditional and changing it to Stop if True. You may then need to change your Less? function to a Greater? function within that same loop to preserve the intended behavior of your program

I hope this solves your problem. If not, let me know.

Matthew C
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,599 Views)