Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop/ Terminate doesn't work

Hi ,

I have attached my code. I am not sure why the STOP does not terminate my program. I tried placing it outside while loop and case structure. Nothing worked.

 

Thanks for any help,

Sahana

0 Kudos
Message 1 of 2
(5,370 Views)

Hi Sshenoy,

 

I can't run your code on my system so it's difficult to see exactly what is happening. After pressing the stop button do you wait a few seconds? Depending on what part of your code is being executed it might take some time to get to where the stop button is evaluated. You can try running your application in highlight execution to see if your application is getting stuck executing a certain VI and never making it to where your block diagram evaluates the stop button.

 

As well, it might help to change the mechanical action of your button. You want to make sure that the button is still pressed when your application reaches your stop logic. Right-click on your stop button on the front panel to change the mechanical action from Latch to Switch.

 

I hope this helps!

 

 

Emily C
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(5,345 Views)