From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,976 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,962 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,940 Views)