LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help for Process Priority (STOP buttons)

Solved!
Go to solution

I , I have a problem with my program.

I make the acquisition with a device connected to GPIB.
I want to have my main program with 2 For Loop and a stop button which stop the program and the device.

The problem is that, if the program is doing an acquisition and is in a For loop, I can press stop button and nothing happens until the end of the for loop.
I can stop with main stop red button but my device is not Off.

I tried an event structure but it don’t works.
The goal is to have a stop process priority to the acquisition process.

I attached my structure of program. I only need to keep the 2 For Loop.
Event structure and while Loop can be removed.



I use LV2012 sp1f5 but I can upgrade to LV2014 if really necessary


thanks in advance for your help.


Download All
0 Kudos
Message 1 of 3
(2,863 Views)
Solution
Accepted by topic author Minikisscool

Rigth click on the border of the loop you want to leave and add the conditional terminal.

Place the Stop button inside the loop.

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 3
(2,846 Views)

it works, Thanks

0 Kudos
Message 3 of 3
(2,821 Views)