NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Execution in new thread

I have a Sequence File composed of a Mainsequence & Subsequence.

 

Inside of the MainSequence, I called a Subsequence in a new thread.

 

Now, I want to run Subsequence until the Mainsequence triggers stopping of this Subsequence.

 

Any suggestion on how to do this? By notification, passing of variables, etc.?

0 Kudos
Message 1 of 3
(3,971 Views)

@xxxNOAHxxx wrote:
[...]

Now, I want to run Subsequence until the Mainsequence triggers stopping of this Subsequence.

 [...]


Your subsequence contains a loop?

Does the "trigger" only prevent the subsequence from further looping or does it immediatly terminate the subsequence?

How about reporting?

How long does it usually take the MainSequence to generate the "trigger"? How many steps execute in the subsequence till that moment (referring to memory issues because of result collection)?

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 3
(3,957 Views)

You can pass a boolean variable into the async sequence as a byref parameter and your subsequence can check it periodically and your mainsequence can set it. You can also use notification steps similarly. Either way should work.

 

-Doug

0 Kudos
Message 3 of 3
(3,935 Views)