NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop a thread "New execution/thread" from main thread?

Solved!
Go to solution

Hello,

in my sequence i am calling a subsequence with new thread "New execution/thread" where a yes/no popup is shown.

If something in the main program occurs then the user can click on the yes button to execute special steps in the thread sequence, otherwise he presses no. In both cases the new thread is finished after this.

 

Now the question is: Is there a way to stop/close this running execution/thread (where the yes/no popup is shown) from my main program?

Currently the only workaroun is to loop the popup and set a variable in the main sequence when the loop can be stopped. But this produces a blinking popup...

 

Thanks

0 Kudos
Message 1 of 6
(4,491 Views)
Solution
Accepted by topic author OnlyOne

Check out this example and let me know if this is close to what you are looking for.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 6
(4,460 Views)

Exactly.

Thank you

0 Kudos
Message 3 of 6
(4,452 Views)

Hi all ; 

I face a problem very similar  to this , the only differrence is the I add a Subsequence to the first Subsequence ( main sequence --> Subsequence-1 --> Subsequence_2 ) .

the Subsequence_2  is works in "NewThread" and it must be stoped from the main sequence.

Any solution please . 

0 Kudos
Message 4 of 6
(3,101 Views)

I'm assuming subsequence 1 is also in a new thread?  Otherwise your request makes no sense.

 

Attached a revised sequence file.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 5 of 6
(3,091 Views)

thank you 

 

0 Kudos
Message 6 of 6
(3,085 Views)